mathcomp.assemble.convdiff
Class CDH_WBF
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.ConvDiffHomogen
mathcomp.assemble.convdiff.CDH_WBF
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
public class CDH_WBF
- extends ConvDiffHomogen
- Author:
- chwust
Methods inherited from class mathcomp.assemble.convdiff.ConvDiffHomogen |
evalBX, evalBY, evalExactSolution, evalF, evalU, evalV, getExactPartialU, getExactPartialV, getExactPartialX, getExactPartialY, getPreferredGridFileName, getSolScale |
Methods inherited from class mathcomp.assemble.Assembler |
addDirichletNodes, assembleGlobal, calcDirichletBoundary, createSurfaces, createSurfaces, evalExactGradient, getDof, getElementMatrix, getErrorCalculator, getGrid, getInfoUrl, getM, getY, report, run, setGrid, setM, setY |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CDH_WBF
public CDH_WBF()
approxLHS
public double approxLHS(Triangle t,
Node u,
Node v)
- Overrides:
approxLHS
in class AbstractCDA_cV
evalWeightedBasisFunc
public double evalWeightedBasisFunc(Triangle t,
Node n,
int local)
getAverageFlux
public double[] getAverageFlux(Triangle t,
int local)
evalApproxSolution
public double evalApproxSolution(Node n,
Triangle t,
Vector x)
- Description copied from class:
Assembler
- Evaluates the FEM solution in a Node. To do that we do need the triangle.
We need this method for an easy l2 and l\infty error calculation.
- Overrides:
evalApproxSolution
in class LagrangeLinearAssembler
- Parameters:
n
- Node where the solution has to be evaluatedt
- the triangle that contains the Node nx
- the solution vector
- Returns:
- the value of the solution in n
evalApproxGradient
public double[] evalApproxGradient(Node n,
Triangle t,
Vector x)
- TODO adjust linear to weighted gradients
- Overrides:
evalApproxGradient
in class LagrangeLinearAssembler
- Parameters:
n
- node where the approximated 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.
- Overrides:
toString
in class ConvDiffHomogen
- Returns:
- the name of the assembler