Paul Romano
3830a21093
Fix warnings in doc build
2022-02-04 07:19:42 -06:00
Paul Romano
5bb4b4bbdf
Implement Plots.from_xml classmethod
2022-01-20 22:28:03 -06:00
Paul Romano
6bd33602cc
Implement Tallies.from_xml classmethod
2022-01-20 22:28:01 -06:00
Paul Romano
424f26f697
Get starting time in Model.run based on filesystem. Closes #1939
2022-01-12 12:02:42 -06:00
Paul Romano
5395d32fde
Fix use of _{materials,cells}_by_id and _by_name attributes in Model
2022-01-10 08:06:16 -06:00
Paul Romano
0157dc219f
Merge pull request #1900 from nelsonag/model_lib_fix
...
Added the import to openmc.lib to model.py while leaving it optional
2021-11-10 09:17:54 -06:00
agnelson
579b0a8f2e
Removed the try/except clause around import openmc.lib
2021-11-09 09:19:50 -06:00
Paul Romano
176b148b6b
Merge pull request #1894 from pshriwise/model_deplete
...
Passing `openmc.Model` to depletion functions.
2021-11-09 06:51:09 -06:00
agnelson
4fe524ad25
Added appropriate try/import for openmc.lib around all places in Model where it is necessasry
2021-11-02 08:17:47 -05:00
agnelson
f3dee1fe00
Updated model per the review suggestions
2021-10-26 12:22:07 -05:00
agnelson
123fefe08d
Added the import to openmc.lib to model.py while leaving it optiona
...
l
2021-10-25 05:15:34 -05:00
Patrick Shriwise
ae0cdf4b0a
Chaning deplete.Operator to take in an openmc.Model object and set materials accordingly.
2021-10-08 09:20:29 -05:00
Paul Romano
7b070b7154
Remove convert arguments from Model.plot_geometry
2021-10-05 13:42:27 -05:00
agnelson
c9e91d42fb
Replacing manual absolute error tests with pytest.approx, improving documentation, and other small changes per the review by @paulroman.
2021-10-05 08:39:24 -05:00
agnelson
e4476fc0b7
Delayed mpi4py import until the user clearly indicated intent to use a communicator (or they already have created one and thus have already imported it); corrected versionchanged doc statements to include comments about what changed; added stackoverflow reference
2021-10-01 09:21:41 -05:00
Adam Nelson
e1365bd036
Applied suggested changes per @paulromano's code review
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-10-01 06:09:24 -05:00
agnelson
e8081207d7
Modified the C API to support setting material temperatures and to support setting the event based flag. Fixed failing MPI test.
2021-09-30 16:34:58 -05:00
agnelson
20c8043c1c
(1) Made OpenMC load plots.xml upon initialization even if not in the plot runmode; (2) Made the finalize method clear plotting data; (3) allowed the openmc.lib and openmc.model package to call plot_geometry now that plots.xml would have been loaded
2021-09-30 15:15:58 -05:00
agnelson
b335f82792
Made integrator quiet and fixed failing test caused by MPICommunicator types
2021-09-30 14:39:53 -05:00
agnelson
ad483b3fea
Moved the dummy communicator to being within openmc vice openmc.deplete, added test of model.calculate_volumes and model.deplete, fixed issues identified from those tests, and added a DLL quieting method (still needs to be propagated to integrator.integrate
2021-09-30 11:18:35 -05:00
agnelson
dc80b799ac
Resolving comments from @paulromano and updating tests accordingly
2021-09-29 18:51:00 -05:00
agnelson
d7bf830028
Added test of Model.plot_geometry and made changes to reflect that openmc.lib.plot_geometry wont work if openmc.lib.init wasnt told that the run mode is to plot because then plots.xml isnt read in
2021-09-29 08:22:16 -05:00
agnelson
e62ba9b85a
Upgrading tests of model, and adding better file management, Model.calculate_volumes method and Model.plot_geometry method. These last two still need to be tested as well as Model.deplete
2021-09-28 08:44:31 -05:00
agnelson
d45af5a4ef
Changes to the model.run interface again for clarity and for test passing
2021-09-27 13:45:31 -05:00
agnelson
f03b98ac0f
Updating model.init_C_api and model.run to handle the kwargs that have been assigned to model.run for the CLI interface. Also updated tests
2021-09-27 12:32:25 -05:00
agnelson
0d2f923be8
Added tests of the openmc.Model class. Still need to do tests of deplete and the methods which change python and C attributes. Pushing this now to verify the CI shows passes for the MPI configs
2021-09-27 08:18:54 -05:00
agnelson
24bca06310
Correcting application of Path.resolve
2021-09-25 08:17:02 -05:00
agnelson
b0bb2493b9
Added generic ability to update Models volumes, temperatures, rotations, translations, densities for cells and materials as applicable. Other various changes based on local testing to make sure Model.deplete works and that it works when called in separate instances while keeping the model in C-API memory
2021-09-24 16:33:47 -05:00
agnelson
3f24c3d4e1
Added a LIB_INIT module-level flag to openmc.lib. Began process of setting up model to be able to use the C-API instead of only working with XML files
2021-09-23 16:22:42 -05:00
Paul Romano
c9d84310d3
Merge branch 'develop' into properties-exim
2021-07-14 15:18:31 -05:00
Paul Romano
876bd925a3
Add check on num cells/materials for Model.import_properties
2021-07-12 06:58:04 -05:00
Paul Romano
8f26aeb471
Fix Model docstring
2021-06-24 15:02:32 +07:00
Paul Romano
fd2637cb48
Add Model.from_xml classmethod
2021-06-24 14:56:38 +07:00
Paul Romano
b63030a04f
Add Model.import_properties method
2021-06-24 14:50:05 +07:00
Patrick Shriwise
0f08cfe3d0
Now writing a geometry file regardless CSG/CAD geometry use.
2021-05-19 18:01:35 -05:00
Paul Romano
5547ecf88f
Add versionadded directive for new arguments/functions in 0.12
2020-04-10 21:52:43 -05:00
Paul Romano
070a83d773
Apply @pshriwise suggestion from code review
...
Co-Authored-By: Patrick Shriwise <pshriwise@gmail.com>
2020-03-27 11:21:18 -05:00
Paul Romano
3e36801ea3
Update docstring for Model.run
2020-03-27 07:49:53 -05:00
alex-lyons
a7e924e545
Fix typos and redundant line
2020-03-27 07:47:57 -05:00
alex-lyons
e98ddf9d8a
Model.run now returns last statepoint path rather than k_eff. Updated tests and search.
2020-03-27 07:47:54 -05:00
alex-lyons
1312a1cc63
Obtain last statepoint from a glob of output dir. Reverted regex filter in executor as this is no longer needed
2020-03-27 07:47:49 -05:00
alex-lyons
f98c34b7c9
fix comment description
2020-03-27 07:47:44 -05:00
alex-lyons
954154fa48
Changed PyAPI model and executor to read correct last statepoint after runs with trigger, including new test case
2020-03-27 07:46:47 -05:00
Paul Romano
cf6b67c05d
Remove explicit inheritance from object for Python classes
2020-03-23 12:12:31 -05:00
Paul Romano
bbb0b78383
Rename openmc.capi -> openmc.lib
2019-09-13 10:38:26 -05:00
Andrew Johnson
1e6f15236a
fiss_q_values -> fission_q for passing q values
2019-06-28 10:30:28 -05:00
Andrew Johnson
0e125b2548
Option to pass fission q values to Chain, Operator, Model
...
A dictionary of constant fission q values [eV] can be passed
into the initialization of deplete.Chain, deplete.Operator,
and model.Model objects. This can be used for direct
comparisons with other codes with readily available
constant Q-values.
Tests have been added on the Chain and Operator side.
The additional fiss_q_values passed into Model is forwarded
directly on to the Operator call.
2019-06-27 11:42:18 -05:00
Andrew Johnson
ed6c78a0e7
Fix documentation in openmc/model/model.py
2019-06-14 13:43:22 -04:00
Andrew Johnson
f1e930b8ba
Remove mention of OPENMC_DEPLETE_CHAIN in model.py
2019-06-13 19:06:07 -04:00
Paul Romano
17d778e57f
Allow export_to_xml methods to take a directory
2019-03-12 11:42:51 -05:00