You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/user/usage.rst
+29-23Lines changed: 29 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,31 +48,35 @@ workflows.
48
48
Units
49
49
~~~~~
50
50
51
-
To handle codes that use different unit systems, WATTS relies on `Astropy <https://www.astropy.org>`_ to perform unit conversion on parameters to ensure that the correct units are used for each code. For instance, MOOSE-based codes use the SI units while OpenMC uses the CGS units. With the built-in unit-conversion capability, a parameter needs only to be set once in any unit system and WATTS can automatically convert it to the correct unit for different codes. To use the unit-conversion capability, parameters need to be set to the ``astropy.units.quantity.Quantity`` class
52
-
as follows::
53
-
54
-
from astropy import units as u
55
-
56
-
Quantity = u.Quantity
51
+
To handle codes that use different unit systems, WATTS relies on the
52
+
:class:`~astropy.units.Quantity` class from :mod:`astropy.units` to perform unit
53
+
conversion on parameters to ensure that the correct units are used for each
54
+
code. For instance, MOOSE-based codes use the SI units while OpenMC uses the CGS
55
+
units. With the built-in unit-conversion capability, a parameter needs only to
56
+
be set once in any unit system and WATTS can automatically convert it to the
57
+
correct unit for different codes. To use the unit-conversion capability,
58
+
parameters need to be set using the :class:`~astropy.units.Quantity` class as
Using a particular code within WATTS requires a "plugin" that controls input file
71
-
generation, execution, and post-processing. Three plugin classes,
72
-
:class:`~watts.PluginMOOSE`, :class:`~watts.PluginOpenMC`, and :class:`~watts.PluginPyARC`, have already been added to WATTS and are available for your use.
72
+
Using a particular code within WATTS requires a "plugin" that controls input
73
+
file generation, execution, and post-processing. Three plugin classes,
74
+
:class:`~watts.PluginMOOSE`, :class:`~watts.PluginOpenMC`, and
75
+
:class:`~watts.PluginPyARC`, have already been added to WATTS and are available
76
+
for your use.
73
77
74
78
MOOSE Plugin
75
-
~~~~~~~~~~
79
+
~~~~~~~~~~~~
76
80
77
81
The :class:`~watts.PluginMOOSE` class enables MOOSE simulations using a
78
82
templated input file. This is demonstrated here for a SAM application, but other
@@ -96,7 +100,8 @@ follows:
96
100
Tsolid_sf = 1e-3
97
101
[]
98
102
99
-
If the templated input file is ``sam_template.inp``, the SAM code will rely the general MOOSE plugin that can be created as::
103
+
If the templated input file is ``sam_template.inp``, the SAM code will rely on
0 commit comments