Commit graph

213 commits

Author SHA1 Message Date
YoungHui Park
073f5704b3 Update src/simulation.cpp
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-01-18 14:36:04 -06:00
YoungHui Park
065d65d3a5 Cleanup 2021-01-18 14:36:04 -06:00
YoungHui Park
f388ac2e1e Rename variables for better readability 2021-01-18 14:36:04 -06:00
YoungHui Park
82606011c0 Properly trigger surface source reading 2021-01-18 14:36:04 -06:00
YoungHui Park
03a4c1dc56 Initialize source when surface source file is provided 2021-01-18 14:36:04 -06:00
YoungHui Park
10e3e83f90 Set maximum bank size inside write_source_bank 2021-01-18 14:36:04 -06:00
YoungHui Park
09863806df Add comments and minor changes 2021-01-18 14:36:04 -06:00
YoungHui Park
5091418d71 Add a new variable to store maximum bank size 2021-01-18 14:36:04 -06:00
YoungHui Park
9fd222f483 Revise query_surf_src_size 2021-01-18 14:36:04 -06:00
YoungHui Park
5d9655256b Add new variables and functions to query global surface source bank size and index 2021-01-18 14:36:04 -06:00
YoungHui Park
74cae60a58 Use max_surf_banks for surface source bank allocation 2021-01-18 14:36:04 -06:00
YoungHui Park
5ad6cfc4dc Switching to arbitrary source bank depending on surface source bank boolean 2021-01-18 14:36:04 -06:00
YoungHui Park
feb4af6149 Revise bank allocation 2021-01-18 14:36:04 -06:00
YoungHui Park
d849014391 Switch surf_src_bank from vector to SharedArray 2021-01-18 14:36:04 -06:00
YoungHui Park
c362ba5ef4 Write surface source only at the last batch, hard-code number of surfaces for surface_source.h5 sizing 2021-01-18 14:36:04 -06:00
YoungHui Park
2e49a1d6de Add section to write surface source into a separate file 2021-01-18 14:36:04 -06:00
YoungHui Park
209394082e Add a new bank type surf_src_bank for surface source banking 2021-01-18 14:36:04 -06:00
Paul Romano
3f62fab565 Add wrapper class for custom sources 2020-10-22 15:50:30 -05:00
Paul Romano
96a66789b1 Activate need_depletion_rx for reaction rate-based depletion only 2020-09-15 10:23:31 -05:00
Andrew Johnson
f1b7cd7938
Use templated write_message in a few more places
From review suggestions

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-06 08:19:03 -04:00
Andrew Johnson
9bb219af8e
Apply templated write_message to simulation.cpp 2020-08-06 07:05:01 -04:00
Andrew Johnson
b6276ea9e4
Reduce number of string concats with fmt::format 2020-08-06 07:04:59 -04:00
Paul Romano
ea9ff22805 Change data::elements to a vector of unique_ptr 2020-06-18 16:21:26 -05:00
Paul Romano
c8b99514b7 Make sure data gets initialized for particle restarts 2020-06-18 16:21:26 -05:00
Paul Romano
e579168969 Calculate min/max energies during simulation_init 2020-06-18 13:37:50 -05:00
Paul Romano
6aed017837 Call Nuclide::init_grid during simulation_init 2020-06-18 13:37:50 -05:00
Paul Romano
9dab8bf507 Use references consistently in geometry functions 2020-04-23 16:37:23 -05:00
Paul Romano
2c923f9f5c Changes in output.cpp from PullRequest Inc. review 2020-04-23 16:37:23 -05:00
Paul Romano
dd283875a8 Remove restart_timers and have openmc_init/run start/stop total timer 2020-04-07 13:49:10 -05:00
davidjohnlong
ce135cc4a9 Refactor fixed source sampling so call to custom library is made from call to sample_external_source() 2020-03-12 17:02:22 +00:00
davidjohnlong
c5aee746e8
Correct formatting in src/simulation.cpp
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 08:00:49 +00:00
davidjohnlong
f61fad5f75
Adjust setting of boolean variable "b"
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 08:00:13 +00:00
davidjohnlong
edb9cbc69f
Update formatting in src/simulation.cpp
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 07:42:58 +00:00
davidjohnlong
8556b8b681 Further correction to formatting 2020-03-10 12:07:01 +00:00
davidjohnlong
3cc7ae4618 Use correct style guide formatting for indentation in modifications 2020-03-10 09:22:31 +00:00
davidjohnlong
907459d02f Implement new fixed source bank model for custom library source. Additional non-member functions in source.cpp with function pointer saved in model namespace allow custom library to be opened, sampled as needed in initialize_history and closed. 2020-03-06 16:03:15 +00:00
davidjohnlong
0ae1077a39 Implement the new fixed source bank model. For a fixed source calcultion the primary source bank is not allocated memory and source particles can not be read/written to files. The source particles for each history are now sampled at the start of initialize_history() through call to sample_external_source() with the appropriate seed. The timing stats for sampling has been removed from the output since this processing is now part of the transport timer 2020-03-05 19:23:51 +00:00
John Tramm
02470bc630 Incorporation of comments from code review. 2020-01-27 17:02:39 +00:00
John Tramm
05e39fb9e4 first pass on adding event_based and in_flight_particles as xml and python options. 2020-01-23 22:50:51 +00:00
John Tramm
56e314d724 Converted fission bank to SharedArray type. 2020-01-23 20:28:55 +00:00
John Tramm
6bf15297ec converted event based queues and particle buffer into SharedArrays 2020-01-23 20:08:28 +00:00
John Tramm
e450eb82d2 fixed indentation in simulation function. 2020-01-23 17:30:34 +00:00
John Tramm
10a6d152de
Merge branch 'develop' into event_based_update 2020-01-22 09:06:38 -06:00
Gavin Ridley
b9bf4fc65b few more changes to make the develop merge work 2020-01-21 14:52:35 -05:00
Gavin Ridley
7df7fc280b
Merge branch 'develop' into add_enums2 2020-01-21 13:13:50 -05:00
Gavin Ridley
1d33aca9bd incorporate recommended name changes 2020-01-21 13:04:39 -05:00
John Tramm
c0a1056e55 added setting to control the maximum number of in flight particles. Also simplified enqueing procedure after XS lookup events to drop atomic usage there. 2020-01-21 17:40:54 +00:00
John Tramm
9d79cdc2d5 added some comments and cleaned things up 2020-01-20 18:20:02 +00:00
John Tramm
3641a6632f added timers 2020-01-20 18:19:59 +00:00
John Tramm
b3821256cb Moved redundant particle queuing code into its own function. 2020-01-20 18:19:58 +00:00