mathcomp.assemble.convdiff
Class CDH_WBF

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.convdiff.AbstractCDA
                      extended by mathcomp.assemble.convdiff.AbstractCDA_cV
                          extended by mathcomp.assemble.convdiff.ConvDiffHomogen
                              extended by mathcomp.assemble.convdiff.CDH_WBF
All Implemented Interfaces:
java.lang.Runnable, Algorithm, Reportable

public class CDH_WBF
extends ConvDiffHomogen

Author:
chwust

Field Summary
 
Fields inherited from class mathcomp.assemble.convdiff.AbstractCDA
area, aSixth, aThird, d0, d1, epsilon, tau, tauIndex
 
Fields inherited from class mathcomp.assemble.LagrangeLinearAssembler
gradVector
 
Fields inherited from class mathcomp.assemble.Assembler
dirichletBoundaryValues, solScale
 
Constructor Summary
CDH_WBF()
           
 
Method Summary
 double approxLHS(Triangle t, Node u, Node v)
           
 double[] evalApproxGradient(Node n, Triangle t, Vector x)
          TODO adjust linear to weighted gradients
 double evalApproxSolution(Node n, Triangle t, Vector x)
          Evaluates the FEM solution in a Node.
 double evalWeightedBasisFunc(Triangle t, Node n, int local)
           
 double[] getAverageFlux(Triangle t, int local)
           
 java.lang.String toString()
          Set the name of your assembler by overwriting this method in your assembler class.
 
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.convdiff.AbstractCDA
approxConvectionIntegral, getEpsilon, getFlowSegment, getTau, getTauIndex, setEpsilon, setTauIndex, zeta
 
Methods inherited from class mathcomp.assemble.LagrangeLinearAssembler
createDof, createDofExport, evalBasisFuncOnRef, evalGradXBasisFuncOnRef, evalGradYBasisFuncOnRef
 
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 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

CDH_WBF

public CDH_WBF()
Method Detail

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 evaluated
t - the triangle that contains the Node n
x - 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