mathcomp.assemble.convdiff
Class SkewAdvection
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.LagrangeLinearAssembler
mathcomp.assemble.convdiff.AbstractCDA
mathcomp.assemble.convdiff.AbstractCDA_cV
mathcomp.assemble.convdiff.SkewAdvection
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
- Direct Known Subclasses:
- SkewAdvection_RFB, SkewAdvection_SUPG
public class SkewAdvection
- extends AbstractCDA_cV
Methods inherited from class mathcomp.assemble.Assembler |
addDirichletNodes, assembleGlobal, calcDirichletBoundary, createSurfaces, createSurfaces, evalExactGradient, getDof, getElementMatrix, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getSolScale, getY, report, run, setGrid, setM, setY |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SkewAdvection
public SkewAdvection()
evalBX
public double evalBX(Node n)
- Specified by:
evalBX
in class AbstractCDA
evalBY
public double evalBY(Node n)
- Specified by:
evalBY
in class AbstractCDA
evalF
public double evalF(Node u)
- Description copied from class:
Assembler
- Evaluates the right hand side function f on the Node n
- Specified by:
evalF
in class Assembler
- Parameters:
u
- the Node where f is evaluated
- Returns:
- the evaluation value
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.
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
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
getErrorCalculator
public ErrorCalculator getErrorCalculator()
- Overrides:
getErrorCalculator
in class Assembler