mathcomp.assemble.convdiff
Class AbstractCDA

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
All Implemented Interfaces:
java.lang.Runnable, Algorithm, Reportable
Direct Known Subclasses:
AbstractCDA_cV, Nochetto, RotFlow

public abstract class AbstractCDA
extends LagrangeLinearAssembler

Special CDE Problem with variable velocity field b(x,y) on rect grid.

Author:
ch.wust

Field Summary
 double area
           
static double aSixth
           
static double aThird
           
static double d0
           
static double d1
           
 double epsilon
           
 double tau
           
 int tauIndex
           
 
Fields inherited from class mathcomp.assemble.LagrangeLinearAssembler
gradVector
 
Fields inherited from class mathcomp.assemble.Assembler
dirichletBoundaryValues, solScale
 
Constructor Summary
AbstractCDA()
           
 
Method Summary
 double approxConvectionIntegral(Triangle t, Node v, Node u)
          Important that to the (i,j) matrix entry we take the "i-th basisfunc for v" and "jth for u".
abstract  double evalBX(Node n)
           
abstract  double evalBY(Node n)
           
 double getEpsilon()
           
 double getFlowSegment(Triangle t)
           
 double getTau(Triangle t)
           
 int getTauIndex()
           
 void setEpsilon(double ep)
           
 void setTauIndex(int index)
           
 double zeta(double Pe)
           
 
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, evalExactSolution, evalF, getDof, getElementMatrix, getErrorCalculator, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getPreferredGridFileName, getSolScale, getY, report, run, setGrid, setM, setY, toString
 
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
 

Field Detail

epsilon

public double epsilon

d0

public static double d0

d1

public static double d1

tau

public double tau

area

public double area

aThird

public static final double aThird
See Also:
Constant Field Values

aSixth

public static final double aSixth
See Also:
Constant Field Values

tauIndex

public int tauIndex
Constructor Detail

AbstractCDA

public AbstractCDA()
Method Detail

approxConvectionIntegral

public double approxConvectionIntegral(Triangle t,
                                       Node v,
                                       Node u)
Important that to the (i,j) matrix entry we take the "i-th basisfunc for v" and "jth for u".

Parameters:
t - the current triangle
v - the test-function
u - the function to find
Returns:

setTauIndex

public void setTauIndex(int index)
Overrides:
setTauIndex in class Assembler

getTauIndex

public int getTauIndex()

getTau

public double getTau(Triangle t)

getFlowSegment

public double getFlowSegment(Triangle t)

zeta

public double zeta(double Pe)

evalBX

public abstract double evalBX(Node n)

evalBY

public abstract double evalBY(Node n)

setEpsilon

public void setEpsilon(double ep)
Overrides:
setEpsilon in class Assembler

getEpsilon

public double getEpsilon()
Overrides:
getEpsilon in class Assembler