mathcomp.assemble.minimalsurface
Class MinimalSurfaceAssembler
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.LagrangeLinearAssembler
mathcomp.assemble.minimalsurface.MinimalSurfaceAssembler
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
- Direct Known Subclasses:
- FixedPointAssembler, L2Interpolation, NewtonAssembler
public abstract class MinimalSurfaceAssembler
- extends LagrangeLinearAssembler
This class is used to ensure that the problem of minimal surface that is being solved it's
the same for the two iterative assemblers (NewtonAssembler and FixedPointAssembler) that extends this
class. Is also used to define the initial value for the iterative process
Methods inherited from class mathcomp.assemble.Assembler |
addDirichletNodes, assembleGlobal, calcDirichletBoundary, createSurfaces, createSurfaces, getDof, getElementMatrix, getEpsilon, getErrorCalculator, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getSolScale, getY, report, run, setEpsilon, setGrid, setM, setTauIndex, setY, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MinimalSurfaceAssembler
public MinimalSurfaceAssembler()
evalExactInitial
public double evalExactInitial(Node n)
- returns the initial value for the node n
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
evalApproxGradient
public double[] evalApproxGradient(Triangle t,
Vector x)
getPreferredGridFileName
public java.lang.String getPreferredGridFileName()
- Description copied from class:
Assembler
- Every
Assembler
has a preferred grid. If this method is
not implemented in the specific assembler class, "square.grid" is
default.
- Overrides:
getPreferredGridFileName
in class Assembler
- Returns:
- the file name of the preferred grid as a String object.
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
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