mathcomp.assemble.cfd
Class StokesTimeTester

java.lang.Object
  extended by mathcomp.monitor.DefaultReportable
      extended by mathcomp.monitor.DefaultAlgorithm
          extended by mathcomp.assemble.Assembler
              extended by mathcomp.assemble.stokes.StokesAssembler
                  extended by mathcomp.assemble.cfd.NavierStokesAssembler
                      extended by mathcomp.assemble.cfd.NSMiniAssembler
                          extended by mathcomp.assemble.cfd.StokesTimeTester
All Implemented Interfaces:
java.lang.Runnable, Algorithm, Reportable

public class StokesTimeTester
extends NSMiniAssembler


Field Summary
 
Fields inherited from class mathcomp.assemble.cfd.NavierStokesAssembler
alpha, beta, BOUNDARY_FRICTION, BOUNDARY_GLUE, BOUNDARY_INFLOW, BOUNDARY_OUTFLOW, BOUNDARY_SLIP, INIT_ALPHA, INIT_BETA, INIT_DUCT_RADIUS, INIT_MAXITER, INIT_STARTTIME, INIT_STEPTIME, INIT_STOPTIME, INIT_TOLERANCE, INIT_VELOCITY, INIT_VISCOSITY, IS_ITERATIVE, IS_TIMEDEPENDANT, NO_BOUNDARY, type
 
Fields inherited from class mathcomp.assemble.stokes.StokesAssembler
gaussPoints, gaussWeights
 
Fields inherited from class mathcomp.assemble.Assembler
dirichletBoundaryValues, solScale
 
Constructor Summary
StokesTimeTester()
           
 
Method Summary
 void assembleGlobal()
          The main assemble method generally called from outside.
 double[] evalExactGradientU1(Node n)
          For H1 error calculations we need to know the gradient of the exact solution in a node n.
 double[] evalExactGradientU2(Node n)
          For H1 error calculations we need to know the gradient of the exact solution in a node n.
 double evalExactSolutionPressure(Node n)
          For error calculations we need to know the exact solution of a problem.
 double evalExactSolutionU1(Node n)
          For error calculations we need to know the exact solution of a problem.
 double evalExactSolutionU2(Node n)
          For error calculations we need to know the exact solution of a problem.
 double evalF1(Node n)
          Evaluates the first component of the right hand side function f on the Node n
 double evalF2(Node n)
          Evaluates the second component of the right hand side function f on the Node n
 double evalG(double z)
           
 void init()
           
 void setTime(double t, double end)
           
 void setTimeStep(double ts)
           
 java.lang.String toString()
          Set the name of your assembler by overwriting this method in your assembler class.
 
Methods inherited from class mathcomp.assemble.cfd.NSMiniAssembler
createDof, evalApproxGradientU1, evalApproxGradientU2, evalApproxSolutionPressure, evalApproxSolutionU1, evalApproxSolutionU2, evalBasisFuncOnRefPressure, evalBasisFuncOnRefVelocity, evalBasisGradOnRefVelocity, getLocalNodeNumber
 
Methods inherited from class mathcomp.assemble.cfd.NavierStokesAssembler
addDirichletNodes, addToM, addToY, calcDirichletBoundary, calcUnitNormals, getBoundaryNodes, getOldSolution, getParameterBox, getType, isFinalRun, setFP_parameters, setIterationState, setOldSolution, setParameterBox
 
Methods inherited from class mathcomp.assemble.stokes.StokesAssembler
createSurfaces, evalApproxSolution, evalExactSolution, evalF, getDirichletValueAt, getErrorCalculator, getPaintNodes, getViscosity, setViscosity
 
Methods inherited from class mathcomp.assemble.Assembler
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 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

StokesTimeTester

public StokesTimeTester()
Method Detail

assembleGlobal

public void assembleGlobal()
Description copied from class: Assembler
The main assemble method generally called from outside. It once calculates the boundary, the global DOFs and the Dirichlet values. Then Matrix m and right side Vector y are created. Finally an iteration over all elements calls assemble(Grid g, Triangle t, Matrix m) for each element.

Overrides:
assembleGlobal in class NavierStokesAssembler

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.

Specified by:
toString in class Assembler
Returns:
the name of the assembler

init

public void init()

setTime

public void setTime(double t,
                    double end)

setTimeStep

public void setTimeStep(double ts)

evalExactGradientU1

public double[] evalExactGradientU1(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
For H1 error calculations we need to know the gradient of the exact solution in a node n. This method returns the gradient of the exact solution of the first component of the velocity field, evaluated at the Node n.

Specified by:
evalExactGradientU1 in class mathcomp.assemble.stokes.StokesAssembler

evalExactGradientU2

public double[] evalExactGradientU2(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
For H1 error calculations we need to know the gradient of the exact solution in a node n. This method returns the gradient of the exact solution of the second component of the velocity field, evaluated at the Node n.

Specified by:
evalExactGradientU2 in class mathcomp.assemble.stokes.StokesAssembler

evalExactSolutionPressure

public double evalExactSolutionPressure(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
For error calculations we need to know the exact solution of a problem. This method returns the exact value of pressure for the node n

Specified by:
evalExactSolutionPressure in class mathcomp.assemble.stokes.StokesAssembler
Parameters:
n - node where the exact solution should be evaluated

evalExactSolutionU1

public double evalExactSolutionU1(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
For error calculations we need to know the exact solution of a problem. This method returns the exact value of the first component of the velocity field for the node n

Specified by:
evalExactSolutionU1 in class mathcomp.assemble.stokes.StokesAssembler
Parameters:
n - node where the exact solution should be evaluated

evalExactSolutionU2

public double evalExactSolutionU2(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
For error calculations we need to know the exact solution of a problem. This method returns the exact value of the second component of the velocity field for the node n

Specified by:
evalExactSolutionU2 in class mathcomp.assemble.stokes.StokesAssembler
Parameters:
n - node where the exact solution should be evaluated

evalF1

public double evalF1(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
Evaluates the first component of the right hand side function f on the Node n

Specified by:
evalF1 in class mathcomp.assemble.stokes.StokesAssembler
Parameters:
n - the Node where f1 is evaluated

evalF2

public double evalF2(Node n)
Description copied from class: mathcomp.assemble.stokes.StokesAssembler
Evaluates the second component of the right hand side function f on the Node n

Specified by:
evalF2 in class mathcomp.assemble.stokes.StokesAssembler
Parameters:
n - the Node where f2 is evaluated

evalG

public double evalG(double z)