-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from smpark7/vacuum-bc
Add Mark and Milne vacuum BCs
- Loading branch information
Showing
11 changed files
with
252 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
@article{placzek_milnes_1947, | ||
title = {Milne's {Problem} in {Transport} {Theory}}, | ||
volume = {72}, | ||
url = {https://link.aps.org/doi/10.1103/PhysRev.72.550}, | ||
doi = {10.1103/PhysRev.72.550}, | ||
abstract = {A modified derivation of the Wiener-Hopf solution of Milne's problem is given in a form suitable for application to problems in the theory of neutron diffusion.}, | ||
number = {7}, | ||
urldate = {2024-05-31}, | ||
journal = {Physical Review}, | ||
author = {Placzek, G. and Seidel, W.}, | ||
month = oct, | ||
year = {1947}, | ||
note = {Publisher: American Physical Society}, | ||
pages = {550--555}, | ||
file = {APS Snapshot:C\:\\Users\\Sun Myung\\Zotero\\storage\\IJVWPMDS\\PhysRev.72.html:text/html;Full Text PDF:C\:\\Users\\Sun Myung\\Zotero\\storage\\TVUWZQ6J\\Placzek and Seidel - 1947 - Milne's Problem in Transport Theory.pdf:application/pdf}, | ||
} | ||
|
||
@article{rulko_variational_1995, | ||
title = {Variational {P1} {Approximations} of {General}-{Geometry} {Multigroup} {Transport} {Problems}}, | ||
volume = {121}, | ||
issn = {0029-5639}, | ||
url = {https://doi.org/10.13182/NSE121-393}, | ||
doi = {10.13182/NSE121-393}, | ||
abstract = {A variational approximation is developed for general-geometry multigroup transport problems with arbitrary anisotropic scattering. The variational principle is based on a functional that approximates a reaction rate in a subdomain of the system. In principle, approximations that result from this functional “optimally”determine such reaction rates. The functional contains an arbitrary parameter α and requires the approximate solutions of a forward and an adjoint transport problem. If the basis functions for the forward and adjoint solutions are chosen to be linear functions of the angular variable Ω, the functional yields the familiar multigroup P1 equations for all values of α. However, the boundary conditions that result from the functional depend on α. In particular, for problems with vacuum boundaries, one obtains the conventional mixed boundary condition, but with an extrapolation distance that depends continuously on α. The choice α = 0 yields a generalization of boundary conditions derived earlier by Federighi and Pomraning for a more limited class of problems. The choice α = 1 yields a generalization of boundary conditions derived previously by Davis for mono-energetic problems. Other boundary conditions are obtained by choosing different values of α. We discuss this indeterminancy of a in conjunction with numerical experiments.}, | ||
number = {3}, | ||
urldate = {2024-05-31}, | ||
journal = {Nuclear Science and Engineering}, | ||
author = {Rulko, Robert P. and Tomašević, Djordje and Larsen, Edward W.}, | ||
month = dec, | ||
year = {1995}, | ||
note = {Publisher: Taylor \& Francis | ||
\_eprint: https://doi.org/10.13182/NSE121-393}, | ||
pages = {393--404}, | ||
file = {Full Text PDF:C\:\\Users\\Sun Myung\\Zotero\\storage\\8NHDX7DM\\Rulko et al. - 1995 - Variational P1 Approximations of General-Geometry .pdf:application/pdf}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,47 @@ | ||
[Tests] | ||
[./coupled_bc] | ||
[coupled_bc] | ||
type = 'Exodiff' | ||
input = 'coupled_bc_test.i' | ||
exodiff = 'coupled_bc_test_out.e' | ||
[../] | ||
requirement = 'The system shall be able to impose PostprocessorCoupledInflowBC and | ||
CoupledOutflowBC for advection with flow from coupled velocity variables.' | ||
[] | ||
[vacuum_bc] | ||
type = 'Exodiff' | ||
input = 'vacuum_bc.i' | ||
exodiff = 'vacuum_bc_out.e' | ||
requirement = 'The system shall impose Marshak vacuum boundary conditions by default if | ||
`vacuum_bc_type` is not set.' | ||
[] | ||
[vacuum_bc_marshak] | ||
type = 'Exodiff' | ||
input = 'vacuum_bc.i' | ||
# Left boundary value = 1 + 2 * 0.001 = 1.002 | ||
# Right boundary value = 2 * 0.001 = 0.002 | ||
cli_args = 'BCs/vacuum/vacuum_bc_type=marshak' | ||
exodiff = 'vacuum_bc_out.e' | ||
requirement = 'The system shall impose Marshak vacuum boundary conditions.' | ||
[] | ||
[vacuum_bc_mark] | ||
type = 'Exodiff' | ||
input = 'vacuum_bc.i' | ||
# Left boundary value = 1 + sqrt(3) * 0.001 = 1.0017320508 | ||
# Right boundary value = sqrt(3) * 0.001 = 0.0017320508 | ||
cli_args = 'BCs/vacuum/vacuum_bc_type=mark | ||
BCs/dirichlet/value=1.0017320508 | ||
Outputs/out/file_base=vacuum_bc_mark_out' | ||
exodiff = 'vacuum_bc_mark_out.e' | ||
requirement = 'The system shall impose Mark vacuum boundary conditions.' | ||
[] | ||
[vacuum_bc_milne] | ||
type = 'Exodiff' | ||
input = 'vacuum_bc.i' | ||
# Left boundary value = 1 + 3 * 0.710446 * 0.001 = 1.002131338 | ||
# Right boundary value = 3 * 0.710446 * 0.001 = 0.002131338 | ||
cli_args = 'BCs/vacuum/vacuum_bc_type=milne | ||
BCs/dirichlet/value=1.0017320508 | ||
Outputs/out/file_base=vacuum_bc_milne_out' | ||
exodiff = 'vacuum_bc_milne_out.e' | ||
requirement = 'The system shall impose Milne vacuum boundary conditions.' | ||
[] | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[GlobalParams] | ||
use_exp_form = false | ||
[] | ||
|
||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[flux] | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diffusion] | ||
type = GroupDiffusion | ||
variable = flux | ||
group_number = 1 | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[dirichlet] | ||
type = DirichletBC | ||
variable = flux | ||
boundary = 'left' | ||
value = 1.002 | ||
[] | ||
[vacuum] | ||
type = VacuumConcBC | ||
variable = flux | ||
boundary = 'right' | ||
vacuum_bc_type = marshak | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[mat] | ||
type = MoltresJsonMaterial | ||
base_file = 'xsdata.json' | ||
material_key = 0 | ||
interp_type = none | ||
num_groups = 1 | ||
num_precursor_groups = 1 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = PJFNK | ||
[] | ||
|
||
[Postprocessors] | ||
[boundary_value] | ||
type = SideAverageValue | ||
variable = flux | ||
boundary = 'right' | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
[out] | ||
type = Exodus | ||
[] | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"0": { | ||
"900": { | ||
"BETA_EFF": [ | ||
0.0 | ||
], | ||
"CHI_D": [ | ||
0.0 | ||
], | ||
"CHI_P": [ | ||
0.0 | ||
], | ||
"CHI_T": [ | ||
0.0 | ||
], | ||
"DECAY_CONSTANT": [ | ||
0.0 | ||
], | ||
"DIFFCOEF": [ | ||
1e-3 | ||
], | ||
"FISSE": [ | ||
0.0 | ||
], | ||
"FISSXS": [ | ||
0.0 | ||
], | ||
"GTRANSFXS": [ | ||
0.0 | ||
], | ||
"NSF": [ | ||
0.0 | ||
], | ||
"RECIPVEL": [ | ||
0.0 | ||
], | ||
"REMXS": [ | ||
0.0 | ||
] | ||
}, | ||
"temp": [ | ||
900 | ||
] | ||
} | ||
} |