mathcomp.assemble.minimalsurface
Class L2Interpolation
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.LagrangeLinearAssembler
mathcomp.assemble.minimalsurface.MinimalSurfaceAssembler
mathcomp.assemble.minimalsurface.L2Interpolation
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
public class L2Interpolation
- extends MinimalSurfaceAssembler
This class is used to initialize the iterative assemblers, giving the value for the first iteration
Method Summary |
void |
assembleElement(Triangle t)
The elementwise assemble method. |
void |
assembleGlobal()
The main assemble method generally called from outside. |
void |
createDof(Grid grid,
java.util.Set dof)
All global Objects, that represent a degreeOfFreedom are added to dof. |
double |
evalExactSolution(Node n)
For error calculations we need to know the exact solution of a problem. |
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, calcDirichletBoundary, createSurfaces, createSurfaces, getDof, getElementMatrix, getEpsilon, getErrorCalculator, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getSolScale, getY, report, run, setEpsilon, setGrid, setM, setTauIndex, setY |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
L2Interpolation
public L2Interpolation()
assembleGlobal
public void assembleGlobal()
- Description copied from class:
Assembler
- The main assemble method generally called from outside. It once
calculates the boundary, the global DOFs and the Dirichlet values. Then
Matrix m and right side Vector y are created. Finally an iteration over
all elements calls
assemble(Grid g, Triangle t, Matrix m)
for each element.
- Overrides:
assembleGlobal
in class Assembler
createDof
public void createDof(Grid grid,
java.util.Set dof)
- Description copied from class:
Assembler
- All global Objects, that represent a degreeOfFreedom are added to dof.
- Overrides:
createDof
in class LagrangeLinearAssembler
- Parameters:
grid
- the current griddof
- the Set where the DOFs have to be put in
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 MinimalSurfaceAssembler
- Parameters:
n
- node where the exact solution should be evaluated
assembleElement
public void assembleElement(Triangle t)
- Description copied from class:
Assembler
- The elementwise assemble method. It locally gets the element-matrices and
sorts them into the global
Matrix
m. Before that,
Dirichlet boundary values are handled.
- Parameters:
t
- the current triangle
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