pyopensn.diffusion.DiffusionSolverBase

class pyopensn.diffusion.DiffusionSolverBase

Base class for diffusion solvers.

Wrapper of opensn::DiffusionSolverBase.

Advance(self: pyopensn.solver.Solver) None

Advance time values function.

Execute(self: pyopensn.solver.Solver) None

Execute the solver.

GetFieldFunctions(self: pyopensn.diffusion.DiffusionSolverBase) list[pyopensn.fieldfunc.FieldFunctionGridBased]

Get the field functions associated with the solver.

Initialize(self: pyopensn.solver.Solver) None

Initialize the solver.

SetDCoefFunction(self: pyopensn.diffusion.DiffusionSolverBase, func: pyopensn.math.ScalarSpatialMaterialFunction) None

???

Parameters:

func (pyopensn.math.ScalarSpatialMaterialFunction) –

???

SetOptions(self: pyopensn.diffusion.DiffusionSolverBase, **kwargs) None

???

Parameters:

boundary_conditions (List[Dict]) – An array contain dictionaries for each boundary specification.

SetQExtFunction(self: pyopensn.diffusion.DiffusionSolverBase, func: pyopensn.math.ScalarSpatialMaterialFunction) None

???

Parameters:

func (pyopensn.math.ScalarSpatialMaterialFunction) –

???

SetSigmaAFunction(self: pyopensn.diffusion.DiffusionSolverBase, func: pyopensn.math.ScalarSpatialMaterialFunction) None

???

Parameters:

func (pyopensn.math.ScalarSpatialMaterialFunction) –

???

Step(self: pyopensn.solver.Solver) None

Step the solver.

UpdateFieldFunctions(self: pyopensn.diffusion.DiffusionSolverBase) None

Updates the field functions with the latest data.