mathcomp.assemble.convdiff
Class CDH_EF_Flux

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_EF_Flux
All Implemented Interfaces:
java.lang.Runnable, Algorithm, Reportable

public class CDH_EF_Flux
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_EF_Flux()
           
 
Method Summary
 double approxLHS(Triangle t, Node u, Node v)
           
 double evalExactSolution(Node n)
          For error calculations we need to know the exact solution of a problem.
 double evalWeightedBasisFuncOnRef(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, 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, evalApproxGradient, evalApproxSolution, 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_EF_Flux

public CDH_EF_Flux()
Method Detail

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 ConvDiffHomogen
Parameters:
n - node where the exact solution should be evaluated

approxLHS

public double approxLHS(Triangle t,
                        Node u,
                        Node v)
Overrides:
approxLHS in class AbstractCDA_cV

evalWeightedBasisFuncOnRef

public double evalWeightedBasisFuncOnRef(Node n,
                                         int local)

getAverageFlux

public double[] getAverageFlux(Triangle t,
                               int local)

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