mathcomp.assemble.laplace
Class MiniLaplaceAssembler
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.MiniAssembler
mathcomp.assemble.laplace.MiniLaplaceAssembler
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
public class MiniLaplaceAssembler
- extends MiniAssembler
A Laplace Problem test class that uses the assemble.MiniAssembler
with homogeneous Dirichlet boundary.
- Author:
- ch.wust
Method Summary |
double[] |
evalExactGradient(Node n)
For H1 error calculations we need to know the exact gradient of a problem. |
double |
evalExactSolution(Node n)
For error calculations we need to know the exact solution of a problem. |
double |
evalF(Node n)
Evaluates the right hand side function f on the Node n |
java.lang.String |
toString()
Set the name of your assembler by overwriting this method in your
assembler class. |
Methods inherited from class mathcomp.assemble.Assembler |
addDirichletNodes, assembleGlobal, calcDirichletBoundary, createSurfaces, createSurfaces, getDof, getElementMatrix, getEpsilon, getErrorCalculator, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getPreferredGridFileName, getSolScale, getY, report, run, setEpsilon, setGrid, setM, setTauIndex, setY |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MiniLaplaceAssembler
public MiniLaplaceAssembler()
evalF
public double evalF(Node n)
- Description copied from class:
Assembler
- Evaluates the right hand side function f on the Node n
- Specified by:
evalF
in class Assembler
- Parameters:
n
- the Node where f is evaluated
- Returns:
- the evaluation value
evalExactSolution
public double evalExactSolution(Node n)
- Description copied from class:
Assembler
- For error calculations we need to know the exact solution of a problem.
If we don't know that, return 0.0 for every node n.
- Overrides:
evalExactSolution
in class Assembler
- Parameters:
n
- node where the exact solution should be evaluated
evalExactGradient
public double[] evalExactGradient(Node n)
- Description copied from class:
Assembler
- For H1 error calculations we need to know the exact gradient of a problem.
If we don't know that, return [0.0,0.0] for every node n.
TODO this should become abstract.
- Overrides:
evalExactGradient
in class Assembler
- Parameters:
n
- node where the exact gradient should be evaluated
toString
public java.lang.String toString()
- Description copied from class:
Assembler
- Set the name of your assembler by overwriting this method in your
assembler class.
- Specified by:
toString
in class Assembler
- Returns:
- the name of the assembler