pyopensn.solver.SteadyStateSourceSolver

class pyopensn.solver.SteadyStateSourceSolver

Steady state solver.

Wrapper of opensn::SteadyStateSourceSolver.

Advance(self: pyopensn.solver.Solver) None

Advance time values function.

ComputeBalanceTable(self: pyopensn.solver.SteadyStateSourceSolver) dict

Compute and return the global balance table using the solver’s normalization. This is a collective operation and must be called on all ranks.

Returns:

Dictionary with the following entries:

  • absorption_rate: Global absorption rate, approximately integral sigma_a * phi dV summed over groups and the full domain.

  • production_rate: Global volumetric production/source rate used by the solver, approximately integral Q dV summed over groups and the full domain.

  • inflow_rate: Global incoming boundary contribution integrated over incoming angular flux on boundaries.

  • outflow_rate: Global outgoing boundary contribution accumulated from face outflow tallies.

  • balance: Rate balance, production_rate + inflow_rate - absorption_rate - outflow_rate.

Return type:

dict

Notes

This solver applies no extra normalization to the balance table.

Execute(self: pyopensn.solver.Solver) None

Execute the solver.

Initialize(self: pyopensn.solver.Solver) None

Initialize the solver.

__init__(self: pyopensn.solver.SteadyStateSourceSolver, **kwargs) None

Construct a steady state solver.

Parameters:

pyopensn.solver.LBSProblem (LBSProblem) – Existing LBSProblem instance.