mathcomp.assemble.discontinuousgalerkin
Class TimeIndependentExample
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.discontinuousgalerkin.DGAssembler
mathcomp.assemble.discontinuousgalerkin.TimeIndependentAssembler
mathcomp.assemble.discontinuousgalerkin.TimeIndependentExample
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
public class TimeIndependentExample
- extends TimeIndependentAssembler
Method Summary |
double |
evalExactSolution(Node n)
For error calculations we need to know the exact solution of a problem. |
double |
evalG(Node n,
double time)
computes the value of the right hand side coefficient function of the convection-diffusion problem. |
double |
evalUd(Node n,
double time)
Computes the value of the time dependent Dirichlet data in the point (n, time) of the convection-diffusion problem. |
Methods inherited from class mathcomp.assemble.Assembler |
addDirichletNodes, calcDirichletBoundary, createSurfaces, evalApproxGradient, evalExactGradient, getDof, getElementMatrix, getEpsilon, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getPreferredGridFileName, getSolScale, getY, report, run, setEpsilon, setGrid, setM, setTauIndex, setY |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeIndependentExample
public TimeIndependentExample()
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 DGAssembler
- Parameters:
n
- node where the exact solution should be evaluated
evalG
public double evalG(Node n,
double time)
- Description copied from class:
DGAssembler
- computes the value of the right hand side coefficient function of the convection-diffusion problem.
- Specified by:
evalG
in class DGAssembler
evalUd
public double evalUd(Node n,
double time)
- Description copied from class:
DGAssembler
- Computes the value of the time dependent Dirichlet data in the point (n, time) of the convection-diffusion problem.
- Specified by:
evalUd
in class DGAssembler