Paul Romano
226065160a
Add ability to specify remove_surfs from Model.export_to_xml
2022-04-01 07:29:36 -05:00
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
valeriogiusti
249c3618d4
Update funcs.py
...
This modification will eliminate the warning:
/home/valerio/.local/lib/python3.8/site-packages/openmc/surface.py:1510: FutureWarning: "ZCylinder(…) accepts an argument named ‘r’, not ‘R’. Future versions of OpenMC will not accept the capitalized version.
warn(_WARNING_UPPER.format(type(self).name, ‘r’, ‘R’)
2021-12-17 17:19:02 +01: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
b489cd628f
Support periodic boundaries in rectangular_prism
2021-04-14 09:44:12 -05:00
Patrick Shriwise
654d27a3e5
Typo fix in RectangularParallelepiped.__pos__ method.
2020-11-12 12:43:40 -06:00
Paul Romano
f3dd04ebcc
Add some value checks on parameters for composite surfaces
2020-07-09 16:07:56 -05:00
Paul Romano
0ce9490187
Remove (incomplete) Box composite surface
2020-07-08 21:21:51 -05:00
Paul Romano
f3a88bc3f9
Address @eepeterson comments on #1602
2020-07-08 21:21:43 -05:00
Paul Romano
9bbd63185b
Remove Surface as parent class of composite surfaces
2020-07-06 21:46:43 -05:00
Paul Romano
f24a058624
Fix rotate and add boundary_type property on composite surfaces
2020-07-06 10:32:10 -05:00
Paul Romano
df7b525306
Add docstrings to composite surface classes
2020-07-06 10:32:10 -05:00
Paul Romano
37ab9c7560
Add composite surfaces
2020-07-06 10:32:10 -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
4943ae9307
Alphabetize import ordering (and use relative imports in a few places)
2020-04-06 15:16:09 -05:00
Paul Romano
945b80f8fd
Address most @pshriwise comments on #1538
2020-04-06 13:24:20 -05:00
Paul Romano
d5b54e8cb5
Consistent use of ABC instead of ABCMeta where possible
2020-04-01 14:13:05 -05:00