mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Switched tabular_legendre to have a default of true
This commit is contained in:
parent
b41ec2178c
commit
826d5a43d8
9 changed files with 758 additions and 761 deletions
File diff suppressed because one or more lines are too long
|
|
@ -171,9 +171,7 @@ attributes/sub-elements required to describe the meta-data:
|
|||
provided via the ``scatt_type`` element above, is represented and thus used
|
||||
during the scattering process. Specifically, the options are to either
|
||||
convert the Legendre expansion to a tabular representation or leave it as
|
||||
a set of Legendre coefficients. Converting to a tabular representation will
|
||||
cost memory but can allow for a decrease in runtime compared to leaving as a
|
||||
set of Legendre coefficients. This element has the following
|
||||
a set of Legendre coefficients. Converting to a tabular representation will cost memory but can allow for a decrease in runtime compared to leaving as a set of Legendre coefficients. This element has the following
|
||||
attributes/sub-elements:
|
||||
|
||||
:enable:
|
||||
|
|
@ -181,7 +179,7 @@ attributes/sub-elements required to describe the meta-data:
|
|||
tabular format should be performed or not. A value of "true" means
|
||||
the conversion should be performed, "false" means it should not.
|
||||
|
||||
*Default*: "false"
|
||||
*Default*: "true"
|
||||
|
||||
:num_points:
|
||||
If the conversion is to take place the number of tabular points is
|
||||
|
|
|
|||
|
|
@ -784,8 +784,7 @@ class Library(object):
|
|||
representation by OpenMC. A value of `True` means that it is to be
|
||||
converted while a value of 'False' means that it will not be.
|
||||
Defaults to `None` which leaves the default behavior of OpenMC in
|
||||
place (the distribution is not converted to a tabular
|
||||
representation).
|
||||
place (the distribution is converted to a tabular representation).
|
||||
tabular_points : {int}
|
||||
This parameter is not used unless the `tabular_legendre` is set to
|
||||
`True`. In this case, this parameter sets the number of
|
||||
|
|
@ -954,8 +953,7 @@ class Library(object):
|
|||
representation by OpenMC. A value of `True` means that it is to be
|
||||
converted while a value of 'False' means that it will not be.
|
||||
Defaults to `None` which leaves the default behavior of OpenMC in
|
||||
place (the distribution is not converted to a tabular
|
||||
representation).
|
||||
place (the distribution is converted to a tabular representation).
|
||||
tabular_points : {int}
|
||||
This parameter is not used unless the `tabular_legendre` is set to
|
||||
`True`. In this case, this parameter sets the number of
|
||||
|
|
@ -1054,8 +1052,7 @@ class Library(object):
|
|||
representation by OpenMC. A value of `True` means that it is to be
|
||||
converted while a value of 'False' means that it will not be.
|
||||
Defaults to `None` which leaves the default behavior of OpenMC in
|
||||
place (the distribution is not converted to a tabular
|
||||
representation).
|
||||
place (the distribution is converted to a tabular representation).
|
||||
tabular_points : {int}
|
||||
This parameter is not used unless the `tabular_legendre` is set to
|
||||
`True`. In this case, this parameter sets the number of
|
||||
|
|
|
|||
|
|
@ -387,11 +387,13 @@ module mgxs_header
|
|||
|
||||
! Get scattering treatment information
|
||||
! Tabular_legendre tells us if we are to treat the provided
|
||||
! Legendre polynomials as tabular data (if enable is true) or leaving
|
||||
! them as Legendres (if enable is false, or the default)
|
||||
! Legendre polynomials as tabular data (if enable is true, default)
|
||||
! or leaving them as Legendres (if enable is false)
|
||||
|
||||
! Set the default (leave as Legendre polynomials)
|
||||
enable_leg_mu = .false.
|
||||
! Set the default (Convert to tabular format w/ 33 points)
|
||||
enable_leg_mu = .true.
|
||||
legendre_mu_points = 33
|
||||
! Get the user-provided values
|
||||
if (check_for_node(node_xsdata, "tabular_legendre")) then
|
||||
call get_node_ptr(node_xsdata, "tabular_legendre", node_legendre_mu)
|
||||
if (check_for_node(node_legendre_mu, "enable")) then
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
k-combined:
|
||||
1.033731E+00 4.974463E-02
|
||||
1.003952E+00 4.160185E-02
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
k-combined:
|
||||
1.055274E+00 1.715904E-02
|
||||
1.026398E+00 7.824554E-02
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
k-combined:
|
||||
1.033731E+00 4.974463E-02
|
||||
1.003952E+00 4.160185E-02
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,2 +1,2 @@
|
|||
k-combined:
|
||||
1.094839E+00 1.203524E-02
|
||||
1.151644E+00 3.044607E-02
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue