Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

155 fluka particle source #166

Merged
merged 15 commits into from
Nov 21, 2023
Merged

155 fluka particle source #166

merged 15 commits into from
Nov 21, 2023

Conversation

Bogdan2423
Copy link
Contributor

No description provided.

@Bogdan2423 Bogdan2423 linked an issue Nov 11, 2023 that may be closed by this pull request
3 tasks
@Bogdan2423
Copy link
Contributor Author

Manual testing results on colimator geometry, circular beam located 1.5 cm from colimator, 3 cm radius, energy 70 Mev/nucl

@Bogdan2423 Bogdan2423 marked this pull request as ready for review November 18, 2023 14:03
@Bogdan2423 Bogdan2423 requested a review from grzanka November 18, 2023 14:03
@grzanka grzanka added the Fluka Right now as the many-core CPUs are so popular we can switch to parallel compilation. label Nov 18, 2023
@grzanka
Copy link
Contributor

grzanka commented Nov 20, 2023

@Bogdan2423 I've tried with command line and got:

ubuntu@yap-dev:~/ui/src/libs/converter$ PYTHONPATH=. python3 converter/main.py editor\(2\).json fl fluka
WARN: number was truncated when converting: 6.123233995736766e-17 -> 0.0
WARN: number was truncated when converting: 6.123233995736766e-17 -> 0.0
File info.json:
{'version': 'unknown', 'label': '', 'simulator': 'fluka'}
File fl_sim.inp:
TITLE
proton beam simulation
* default physics settings for hadron therapy
DEFAULTS                                                              HADROTHE
* HEAVYION beam of energy 0.048 GeV
* flat circular shape with max radius=2.0 cm, min radius=2.0 cm
BEAM          -0.048       0.0       0.0       2.0       2.0      -1.0HEAVYION  
* heavy ion properties: a={self.data.heavy_ion_a}, z={self.data.heavy_ion_z}
HI-PROPE         4.0       2.0       0.0       0.0       0.0       0.0          
* beam position: (0.0, 0.0, 0.0) cm

are you sure that comments are printed correctly for heavy ions ?

@grzanka grzanka self-requested a review November 20, 2023 16:44
Copy link
Contributor

@grzanka grzanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments on PR

@Bogdan2423
Copy link
Contributor Author

@Bogdan2423 I've tried with command line and got:

ubuntu@yap-dev:~/ui/src/libs/converter$ PYTHONPATH=. python3 converter/main.py editor\(2\).json fl fluka
WARN: number was truncated when converting: 6.123233995736766e-17 -> 0.0
WARN: number was truncated when converting: 6.123233995736766e-17 -> 0.0
File info.json:
{'version': 'unknown', 'label': '', 'simulator': 'fluka'}
File fl_sim.inp:
TITLE
proton beam simulation
* default physics settings for hadron therapy
DEFAULTS                                                              HADROTHE
* HEAVYION beam of energy 0.048 GeV
* flat circular shape with max radius=2.0 cm, min radius=2.0 cm
BEAM          -0.048       0.0       0.0       2.0       2.0      -1.0HEAVYION  
* heavy ion properties: a={self.data.heavy_ion_a}, z={self.data.heavy_ion_z}
HI-PROPE         4.0       2.0       0.0       0.0       0.0       0.0          
* beam position: (0.0, 0.0, 0.0) cm

are you sure that comments are printed correctly for heavy ions ?

forgot f before string, should be working correctly now

@Bogdan2423 Bogdan2423 requested a review from grzanka November 21, 2023 18:21
@grzanka grzanka merged commit 54d029d into master Nov 21, 2023
9 checks passed
@grzanka grzanka deleted the 155-fluka-particle-source branch November 21, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fluka Right now as the many-core CPUs are so popular we can switch to parallel compilation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fluka particle source
2 participants