mathcomp.assemble.minimalsurface
Class L2Interpolation

java.lang.Object
  extended by mathcomp.monitor.DefaultReportable
      extended by mathcomp.monitor.DefaultAlgorithm
          extended by mathcomp.assemble.Assembler
              extended by mathcomp.assemble.LagrangeLinearAssembler
                  extended by mathcomp.assemble.minimalsurface.MinimalSurfaceAssembler
                      extended by 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


Field Summary
 
Fields inherited from class mathcomp.assemble.LagrangeLinearAssembler
gradVector
 
Fields inherited from class mathcomp.assemble.Assembler
dirichletBoundaryValues, solScale
 
Constructor Summary
L2Interpolation()
           
 
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.minimalsurface.MinimalSurfaceAssembler
evalApproxGradient, evalExactGradient, evalExactInitial, evalF, getPreferredGridFileName
 
Methods inherited from class mathcomp.assemble.LagrangeLinearAssembler
createDofExport, evalApproxGradient, evalApproxSolution, evalBasisFuncOnRef, evalGradXBasisFuncOnRef, evalGradYBasisFuncOnRef
 
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 mathcomp.monitor.DefaultAlgorithm
algoAbortIfNeeded, algoCancel, algoClear, algoCount, algoIncrement, algoMax, isAlgoCancel, setAlgoCount, setAlgoMax
 
Methods inherited from class mathcomp.monitor.DefaultReportable
getReport, setReport
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mathcomp.monitor.Reportable
getReport, setReport
 

Constructor Detail

L2Interpolation

public L2Interpolation()
Method Detail

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 grid
dof - 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 Matrixm. 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