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, approximatelyintegral sigma_a * phi dVsummed over groups and the full domain.production_rate: Global volumetric production/source rate used by the solver, approximatelyintegral Q dVsummed 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:
problem (pyopensn.solver.LBSProblem) – Existing LBSProblem instance.
Notes
If
problem.options.read_restart_pathis set, restart data is read duringInitialize(). Ifproblem.options.restart_writes_enabledis true, a restart dump is written afterExecute()completes. problem : pyopensn.solver.DiscreteOrdinatesProblemExisting discrete ordinates problem instance.