# proteus.NumericalSolution module¶

A hierarchy of classes for managing comlete numerical solution implementations

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.

allocateModels()[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]