proteus.NumericalSolution module

A hierarchy of classes for managing comlete numerical solution implementations

Inheritance diagram of proteus.NumericalSolution

class proteus.NumericalSolution.NS_base(so, pList, nList, sList, opts, simFlagsList=None)[source]

The base class for managing the numerical solution of PDE’s.

The constructor must build all the objects required by a numerical method to approximate the solution over a sequence of time intervals.

calculateSolution(runName) carries out the numerical solution.

digraph NumericalSolutionHasA { node [shape=record, fontname=Helvetica, fontsize=12]; NS [label="NumericalSolution" URL="\ref NumericalSolution", style="filled", fillcolor="gray"]; mList [label="MultilevelTranportModel [n]" URL="\ref proteus::Transport::MultilevelTransport"]; nsList [label="NonLinearSolver [n] " URL="\ref proteus::NonLinearSolver"]; lsList [label="LinearSolver [n] " URL="\ref proteus::LinearSolver"]; pList [label="Problem Specification [n]" URL="\ref proteus::default_p"]; nList [label="Numerics Specifiation [n]" URL="\ref proteus::default_n"]; sList [label="Output Specification [n]" URL="\ref proteus::SimTools"]; so [label="Coupling Specification " URL="\ref proteus::SO_base"]; ar [label="Archiver" URL="\ref proteus::AR_base"]; NS -> pList [arrowhead="normal", style="dashed", color="purple"]; NS -> nList [arrowhead="normal", style="dashed", color="purple"]; NS -> so [arrowhead="normal", style="dashed", color="purple"]; NS -> sList [arrowhead="normal", style="dashed", color="purple"]; NS -> mList [arrowhead="normal", style="dashed", color="purple"]; NS -> nsList [arrowhead="normal", style="dashed", color="purple"]; NS -> lsList [arrowhead="normal", style="dashed", color="purple"]; NS -> ar [arrowhead="normal", style="dashed", color="purple"]; }

allocateModels()[source]
PUMI2Proteus(mesh)[source]
PUMI_estimateError()[source]

Estimate the error using the classical element residual method by Ainsworth and Oden and generates a corresponding error field.

PUMI_adaptMesh()[source]

Uses a computed error field to construct a size field and adapts the mesh using SCOREC tools (a.k.a. MeshAdapt)

calculateSolution(runName)[source]

Cacluate the PDEs numerical solution.

Parameters:runName (str) – A name for the calculated solution.
preStep(model)[source]
postStep(model)[source]
setWeakDirichletConditions(model)[source]
restrictFromFineMesh(model)[source]
archiveInitialSolution(model, index)[source]
archiveSolution(model, index, t=None)[source]
closeArchive(model, index)[source]
initializeViewSolution(model)[source]
viewSolution(model, initialCondition=False)[source]
finalizeViewSolution(model)[source]