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
3 changes: 1 addition & 2 deletions HEU_MET_FAST_003/HEU_MET_FAST_003.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
{"block_ids": [1], "xs": xs_oralloy},
{"block_ids": [2], "xs": xs_tuballoy},
],
scattering_order=3,
options={
"use_precursors": False,
"verbose_inner_iterations": True,
Expand All @@ -129,7 +128,7 @@
print(f"Computed k-eigenvalue: {k}")

# export
fflist = phys.GetScalarFieldFunctionList(only_scalar_flux=False)
fflist = phys.GetScalarFluxFieldFunction(only_scalar_flux=False)
vtk_basename = "HEU_MET_FAST_003"
# export only the flux of group g (first []), moment 0 (second [])
FieldFunctionGridBased.ExportMultipleToPVTU(
Expand Down
3 changes: 1 addition & 2 deletions OpenSn_Logo_CAD/opensn.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@
{"block_ids": [1], "xs": xs_source},
{"block_ids": [2], "xs": xs_block},
],
scattering_order=0,
volumetric_sources=[src],
)
ss_solver = SteadyStateSourceSolver(problem=phys)
ss_solver.Initialize()
ss_solver.Execute()

# Export results to VTK
fflist = phys.GetScalarFieldFunctionList()
fflist = phys.GetScalarFluxFieldFunction()
FieldFunctionGridBased.ExportMultipleToPVTU(fflist, "flux")
3 changes: 1 addition & 2 deletions Six_1g_spherical_benchmarks/Problem_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
xs_map=[
{"block_ids": [1], "xs": xs_mat},
],
scattering_order=0,
boundary_conditions=[
{"name": "sphere_surface", "type": "isotropic", "group_strength": bsrc},
],
Expand All @@ -113,7 +112,7 @@
ss_solver.Execute()

# Export
fflist = phys.GetFieldFunctions()
fflist = phys.GetScalarFluxFieldFunction()

# Compute the average flux over a logical volume
def average_flx_logvol(logvol):
Expand Down
3 changes: 1 addition & 2 deletions Six_1g_spherical_benchmarks/Problem_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
xs_map=[
{"block_ids": [1, 2], "xs": xs_void},
],
scattering_order=0,
volumetric_sources=[mg_src],
)

Expand All @@ -75,7 +74,7 @@
ss_solver.Execute()

# export
fflist = phys.GetFieldFunctions()
fflist = phys.GetScalarFluxFieldFunction()
"""
vtk_basename = "Problem_2_"
# export only the scalar flux of group g
Expand Down
3 changes: 1 addition & 2 deletions Six_1g_spherical_benchmarks/Problem_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
xs_map=[
{"block_ids": [1, 2, 3], "xs": xs_void},
],
scattering_order=0,
volumetric_sources=[mg_src],
)

Expand All @@ -72,7 +71,7 @@
ss_solver.Execute()

# Export
fflist = phys.GetFieldFunctions()
fflist = phys.GetScalarFluxFieldFunction()

# Compute the average flux over a logical volume
def average_flx_logvol(logvol):
Expand Down
3 changes: 1 addition & 2 deletions Six_1g_spherical_benchmarks/Problem_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
{"block_ids": [1], "xs": xs_mat},
{"block_ids": [2], "xs": xs_void},
],
scattering_order=0,
boundary_conditions=[
{"name": "sphere_surface", "type": "isotropic", "group_strength": bsrc},
],
Expand All @@ -77,7 +76,7 @@
ss_solver.Execute()

# Export
fflist = phys.GetFieldFunctions()
fflist = phys.GetScalarFluxFieldFunction()

# Compute the average flux over a logical volume
def average_flx_logvol(logvol):
Expand Down
3 changes: 1 addition & 2 deletions Six_1g_spherical_benchmarks/Problem_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
{"block_ids": [2], "xs": xs_mat},
{"block_ids": [1, 3], "xs": xs_void},
],
scattering_order=0,
boundary_conditions=[
{"name": "sphere_surface", "type": "isotropic", "group_strength": bsrc},
],
Expand All @@ -77,7 +76,7 @@
ss_solver.Execute()

# Export
fflist = phys.GetFieldFunctions()
fflist = phys.GetScalarFluxfieldFunction()

# Compute the average flux over a logical volume
def average_flx_logvol(logvol):
Expand Down
3 changes: 1 addition & 2 deletions Six_1g_spherical_benchmarks/Problem_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
{"block_ids": [1], "xs": xs_mat},
{"block_ids": [2], "xs": xs_void},
],
scattering_order=0,
volumetric_sources=[mg_src],
)

Expand All @@ -75,7 +74,7 @@
ss_solver.Execute()

# Export
fflist = phys.GetFieldFunctions()
fflist = phys.GetScalarFluxFieldFunction()

# Compute the average flux over a logical volume
def average_flx_logvol(logvol):
Expand Down
3 changes: 1 addition & 2 deletions Urban_Source/urban_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@
{"block_ids": [2], "xs": xs_source},
{"block_ids": [3], "xs": xs_air},
],
scattering_order=0,
volumetric_sources=[src],
)
ss_solver = SteadyStateSourceSolver(problem=phys)
ss_solver.Initialize()
ss_solver.Execute()

# Export results to VTK
fflist = phys.GetScalarFieldFunctionList()
fflist = phys.GetScalarFluxFieldFunction()
FieldFunctionGridBased.ExportMultipleToPVTU(fflist, "flux")