Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions OpenSn_Logo_CAD/opensn.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@
{"block_ids": [2], "xs": xs_block},
],
scattering_order=0,
options={
"volumetric_sources": [src],
}
volumetric_sources=[src],
)
ss_solver = SteadyStateSolver(lbs_problem=phys)
ss_solver.Initialize()
Expand Down
18 changes: 8 additions & 10 deletions Six_1g_spherical_benchmarks/Problem_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@
{"block_ids": [1], "xs": xs_mat},
],
scattering_order=0,
options={
"boundary_conditions": [
{"name": "xmin", "type": "isotropic", "group_strength": bsrc},
{"name": "xmax", "type": "isotropic", "group_strength": bsrc},
{"name": "ymin", "type": "isotropic", "group_strength": bsrc},
{"name": "ymax", "type": "isotropic", "group_strength": bsrc},
{"name": "zmin", "type": "isotropic", "group_strength": bsrc},
{"name": "zmax", "type": "isotropic", "group_strength": bsrc},
],
},
boundary_conditions=[
{"name": "xmin", "type": "isotropic", "group_strength": bsrc},
{"name": "xmax", "type": "isotropic", "group_strength": bsrc},
{"name": "ymin", "type": "isotropic", "group_strength": bsrc},
{"name": "ymax", "type": "isotropic", "group_strength": bsrc},
{"name": "zmin", "type": "isotropic", "group_strength": bsrc},
{"name": "zmax", "type": "isotropic", "group_strength": bsrc},
],
)

ss_solver = SteadyStateSolver(lbs_problem=phys)
Expand Down
21 changes: 9 additions & 12 deletions Six_1g_spherical_benchmarks/Problem_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,15 @@
{"block_ids": [1, 2], "xs": xs_void},
],
scattering_order=0,
options={
"volumetric_sources": [mg_src],
"boundary_conditions": [
{"name": "xmin", "type": "vacuum"},
{"name": "xmax", "type": "vacuum"},
{"name": "ymin", "type": "vacuum"},
{"name": "ymax", "type": "vacuum"},
{"name": "zmin", "type": "vacuum"},
{"name": "zmax", "type": "vacuum"}
]
},

volumetric_sources=[mg_src],
boundary_conditions=[
{"name": "xmin", "type": "vacuum"},
{"name": "xmax", "type": "vacuum"},
{"name": "ymin", "type": "vacuum"},
{"name": "ymax", "type": "vacuum"},
{"name": "zmin", "type": "vacuum"},
{"name": "zmax", "type": "vacuum"}
],
)

ss_solver = SteadyStateSolver(lbs_problem=phys)
Expand Down
20 changes: 9 additions & 11 deletions Six_1g_spherical_benchmarks/Problem_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,15 @@
{"block_ids": [1, 2, 3], "xs": xs_void},
],
scattering_order=0,
options={
"volumetric_sources": [mg_src],
"boundary_conditions": [
{"name": "xmin", "type": "vacuum"},
{"name": "xmax", "type": "vacuum"},
{"name": "ymin", "type": "vacuum"},
{"name": "ymax", "type": "vacuum"},
{"name": "zmin", "type": "vacuum"},
{"name": "zmax", "type": "vacuum"},
],
},
volumetric_sources=[mg_src],
boundary_conditions=[
{"name": "xmin", "type": "vacuum"},
{"name": "xmax", "type": "vacuum"},
{"name": "ymin", "type": "vacuum"},
{"name": "ymax", "type": "vacuum"},
{"name": "zmin", "type": "vacuum"},
{"name": "zmax", "type": "vacuum"},
],
)

ss_solver = SteadyStateSolver(lbs_problem=phys)
Expand Down
18 changes: 8 additions & 10 deletions Six_1g_spherical_benchmarks/Problem_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,14 @@
{"block_ids": [2], "xs": xs_void},
],
scattering_order=0,
options={
"boundary_conditions": [
{"name": "xmin", "type": "isotropic", "group_strength": bsrc},
{"name": "xmax", "type": "isotropic", "group_strength": bsrc},
{"name": "ymin", "type": "isotropic", "group_strength": bsrc},
{"name": "ymax", "type": "isotropic", "group_strength": bsrc},
{"name": "zmin", "type": "isotropic", "group_strength": bsrc},
{"name": "zmax", "type": "isotropic", "group_strength": bsrc},
],
},
boundary_conditions=[
{"name": "xmin", "type": "isotropic", "group_strength": bsrc},
{"name": "xmax", "type": "isotropic", "group_strength": bsrc},
{"name": "ymin", "type": "isotropic", "group_strength": bsrc},
{"name": "ymax", "type": "isotropic", "group_strength": bsrc},
{"name": "zmin", "type": "isotropic", "group_strength": bsrc},
{"name": "zmax", "type": "isotropic", "group_strength": bsrc},
],
)

ss_solver = SteadyStateSolver(lbs_problem=phys)
Expand Down
18 changes: 8 additions & 10 deletions Six_1g_spherical_benchmarks/Problem_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,14 @@
{"block_ids": [1, 3], "xs": xs_void},
],
scattering_order=0,
options={
"boundary_conditions": [
{"name": "xmin", "type": "isotropic", "group_strength": bsrc},
{"name": "xmax", "type": "isotropic", "group_strength": bsrc},
{"name": "ymin", "type": "isotropic", "group_strength": bsrc},
{"name": "ymax", "type": "isotropic", "group_strength": bsrc},
{"name": "zmin", "type": "isotropic", "group_strength": bsrc},
{"name": "zmax", "type": "isotropic", "group_strength": bsrc},
],
},
boundary_conditions=[
{"name": "xmin", "type": "isotropic", "group_strength": bsrc},
{"name": "xmax", "type": "isotropic", "group_strength": bsrc},
{"name": "ymin", "type": "isotropic", "group_strength": bsrc},
{"name": "ymax", "type": "isotropic", "group_strength": bsrc},
{"name": "zmin", "type": "isotropic", "group_strength": bsrc},
{"name": "zmax", "type": "isotropic", "group_strength": bsrc},
],
)

ss_solver = SteadyStateSolver(lbs_problem=phys)
Expand Down
20 changes: 9 additions & 11 deletions Six_1g_spherical_benchmarks/Problem_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,15 @@
{"block_ids": [2], "xs": xs_void},
],
scattering_order=0,
options={
"volumetric_sources": [mg_src],
"boundary_conditions": [
{"name": "xmin", "type": "vacuum"},
{"name": "xmax", "type": "vacuum"},
{"name": "ymin", "type": "vacuum"},
{"name": "ymax", "type": "vacuum"},
{"name": "zmin", "type": "vacuum"},
{"name": "zmax", "type": "vacuum"},
],
},
volumetric_sources=[mg_src],
boundary_conditions=[
{"name": "xmin", "type": "vacuum"},
{"name": "xmax", "type": "vacuum"},
{"name": "ymin", "type": "vacuum"},
{"name": "ymax", "type": "vacuum"},
{"name": "zmin", "type": "vacuum"},
{"name": "zmax", "type": "vacuum"},
],
)

ss_solver = SteadyStateSolver(lbs_problem=phys)
Expand Down
4 changes: 1 addition & 3 deletions Urban_Source/urban_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
{"block_ids": [3], "xs": xs_air},
],
scattering_order=0,
options={
"volumetric_sources": [src],
}
volumetric_sources=[src],
)
ss_solver = SteadyStateSolver(lbs_problem=phys)
ss_solver.Initialize()
Expand Down