-
Notifications
You must be signed in to change notification settings - Fork 622
Implementation of migration area score #3810
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
base: develop
Are you sure you want to change the base?
Changes from all commits
fe77e3f
566c383
c81063b
d749e0c
2ca3342
d35a8f9
e43e6e7
86a7b8f
9365b67
148c914
aa6adfa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,16 +32,20 @@ extern "C" double k_col_abs; //!< sum over batches of k_collision * k_absorption | |
| extern "C" double | ||
| k_col_tra; //!< sum over batches of k_collision * k_tracklength | ||
| extern "C" double | ||
| k_abs_tra; //!< sum over batches of k_absorption * k_tracklength | ||
| k_abs_tra; //!< sum over batches of k_absorption * k_tracklength | ||
| extern bool | ||
| migration_present; //! Does an active tally contains a migration score | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this global variable is justifiable because we need it during the simulation at every BC |
||
| extern double log_spacing; //!< lethargy spacing for energy grid searches | ||
| extern "C" int n_lost_particles; //!< cumulative number of lost particles | ||
| extern "C" bool need_depletion_rx; //!< need to calculate depletion rx? | ||
| extern "C" int restart_batch; //!< batch at which a restart job resumed | ||
| extern "C" bool satisfy_triggers; //!< have tally triggers been satisfied? | ||
| extern int ssw_current_file; //!< current surface source file | ||
| extern "C" int total_gen; //!< total number of generations simulated | ||
| extern double total_weight; //!< Total source weight in a batch | ||
| extern int64_t work_per_rank; //!< number of particles per MPI rank | ||
| extern bool | ||
| nonvacuum_boundary_present; //!< Does the geometry contain non-vacuum b.c. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one is not, it's a setup item it should be handled with a check over all surfaces not the setting of a global boolean
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This variable is set when reading surfaces and used when setting tallies.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you would just need to not set it when reading surfaces, then when setting tallies you can loop over the geometry/surfaces if migration tallies are used to check their type
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In general it is not recommended to iterate over cells or surfaces twice because there are models with alot of cells and surfaces.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @paulromano, what do you think? This issue can affect performance. |
||
| extern "C" int restart_batch; //!< batch at which a restart job resumed | ||
| extern "C" bool satisfy_triggers; //!< have tally triggers been satisfied? | ||
| extern int ssw_current_file; //!< current surface source file | ||
| extern "C" int total_gen; //!< total number of generations simulated | ||
| extern double total_weight; //!< Total source weight in a batch | ||
| extern int64_t work_per_rank; //!< number of particles per MPI rank | ||
|
|
||
| extern const RegularMesh* entropy_mesh; | ||
| extern const RegularMesh* ufs_mesh; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <?xml version='1.0' encoding='utf-8'?> | ||
| <model> | ||
| <materials> | ||
| <material id="1" name="Hydrogen"> | ||
| <density value="1.0" units="g/cm3"/> | ||
| <nuclide name="H1" ao="1.0"/> | ||
| <sab name="c_H_in_H2O"/> | ||
| </material> | ||
| </materials> | ||
| <geometry> | ||
| <cell id="1" material="1" region="-1" universe="1"/> | ||
| <surface id="1" type="sphere" boundary="reflective" coeffs="0.0 0.0 0.0 10.0"/> | ||
| </geometry> | ||
| <settings> | ||
| <run_mode>fixed source</run_mode> | ||
| <particles>10000</particles> | ||
| <batches>20</batches> | ||
| <source type="independent" strength="1.0" particle="neutron"/> | ||
| </settings> | ||
| <tallies> | ||
| <filter id="1" type="energy"> | ||
| <bins>0.0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.042 0.05 0.058 0.067 0.08 0.1 0.14 0.18 0.22 0.25 0.28 0.3 0.32 0.35 0.4 0.5 0.625 0.78 0.85 0.91 0.95 0.972 0.996 1.02 1.045 1.071 1.097 1.123 1.15 1.3 1.5 1.855 2.1 2.6 3.3 4.0 9.877 15.968 27.7 48.052 75.501 148.73 367.26 906.9 1425.1 2239.5 3519.1 5530.0 9118.0 15030.0 24780.0 40850.0 67340.0 111000.0 183000.0 302500.0 500000.0 821000.0 1353000.0 2231000.0 3679000.0 6065500.0 20000000.0</bins> | ||
| </filter> | ||
| <tally id="1"> | ||
| <filters>1</filters> | ||
| <scores>migration-area flux total</scores> | ||
| </tally> | ||
| </tallies> | ||
| </model> |
Uh oh!
There was an error while loading. Please reload this page.