mathcomp.assemble.cfd
Class NSTimeDrivenCavity

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.NSTimeOseenSIAssembler
                              extended by mathcomp.assemble.cfd.NSTimeDrivenCavity
All Implemented Interfaces:
java.lang.Runnable, Algorithm, Reportable

public class NSTimeDrivenCavity
extends NSTimeOseenSIAssembler


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
NSTimeDrivenCavity()
           
 
Method Summary
 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 getDirichletValueAt(mathcomp.assemble.stokes.StokesNode s, java.lang.String info)
           
 java.lang.String getPreferredGridFileName()
          Every Assembler has a preferred grid.
 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.NSTimeOseenSIAssembler
assembleGlobal, init, setTime, setTimeStep
 
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, getErrorCalculator, getPaintNodes, getViscosity, setViscosity
 
Methods inherited from class mathcomp.assemble.Assembler
createSurfaces, evalApproxGradient, evalExactGradient, getDof, getElementMatrix, getEpsilon, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, 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

NSTimeDrivenCavity

public NSTimeDrivenCavity()
Method Detail

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

getDirichletValueAt

public double getDirichletValueAt(mathcomp.assemble.stokes.StokesNode s,
                                  java.lang.String info)
Overrides:
getDirichletValueAt in class mathcomp.assemble.stokes.StokesAssembler

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

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

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

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

getPreferredGridFileName

public java.lang.String getPreferredGridFileName()
Description copied from class: Assembler
Every Assembler has a preferred grid. If this method is not implemented in the specific assembler class, "square.grid" is default.

Overrides:
getPreferredGridFileName in class Assembler
Returns:
the file name of the preferred grid as a String object.

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