mathcomp.assemble.laplace
Class SquareLaplaceAssembler

java.lang.Object
  extended by mathcomp.monitor.DefaultReportable
      extended by mathcomp.monitor.DefaultAlgorithm
          extended by mathcomp.assemble.Assembler
              extended by mathcomp.assemble.LagrangeSquareAssembler
                  extended by mathcomp.assemble.laplace.SquareLaplaceAssembler
All Implemented Interfaces:
java.lang.Runnable, Algorithm, Reportable

public class SquareLaplaceAssembler
extends LagrangeSquareAssembler

A Laplace Problem test class that uses the assemble.LagrangeSquareAssembler with homogeneous Dirichlet boundary.

Author:
ch.wust

Field Summary
 
Fields inherited from class mathcomp.assemble.Assembler
dirichletBoundaryValues, solScale
 
Constructor Summary
SquareLaplaceAssembler()
           
 
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.LagrangeSquareAssembler
createDof, createDofExport, evalApproxGradient, evalApproxSolution, evalBasisFuncOnRef, evalGradXBasisFuncOnRef, evalGradYBasisFuncOnRef, getLdof, getLocalNodeNumber
 
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 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

SquareLaplaceAssembler

public SquareLaplaceAssembler()
Method Detail

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