pyopensn.diffusion.DFEMDiffusionSolver
- class pyopensn.diffusion.DFEMDiffusionSolver
DFEM diffusion solver.
Diffusion solver using discontinuous finite-element method.
Wrapper of
opensn::DFEMDiffusionSolver
.- 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.
- __init__(self: pyopensn.diffusion.DFEMDiffusionSolver, **kwargs) None
Construct a DFEM diffusion solver.
- Parameters:
mesh (pyopensn.mesh.MeshContinuum) – Input mesh.
residual_tolerance (float, default=1.0e-2) – Solver relative tolerance.
max_iters (int, default=500) – Solver relative tolerance.