mathcomp.assemble.cfd
Class NSMiniTimeSI
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.stokes.StokesAssembler
mathcomp.assemble.cfd.NavierStokesAssembler
mathcomp.assemble.cfd.NSMiniAssembler
mathcomp.assemble.cfd.NSTimeOseenSIAssembler
mathcomp.assemble.cfd.NSMiniTimeSI
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
public class NSMiniTimeSI
- extends NSTimeOseenSIAssembler
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 |
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.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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NSMiniTimeSI
public NSMiniTimeSI()
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