|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.LagrangeLinearAssembler
public abstract class LagrangeLinearAssembler
An Assembler
class for piecewise linear lagrange basis-functions.
Field Summary | |
---|---|
Vector[] |
gradVector
Because the gradient of a linear basis function is constant, we can calculate this gradient for every element once in a pre-processing way. |
Fields inherited from class mathcomp.assemble.Assembler |
---|
dirichletBoundaryValues, solScale |
Constructor Summary | |
---|---|
LagrangeLinearAssembler()
|
Method Summary | |
---|---|
void |
createDof(Grid grid,
java.util.Set dof)
All global Objects, that represent a degreeOfFreedom are added to dof. |
void |
createDofExport(Triangle t,
java.lang.Object[] result)
|
double[] |
evalApproxGradient(Node n,
Triangle t,
Vector x)
For linear functions we add the gradients of the scaled basisfunction on real |
double |
evalApproxSolution(Node n,
Triangle t,
Vector x)
Evaluates the FEM solution in a Node. |
double |
evalBasisFuncOnRef(Node u,
int localBasisNumber)
Returns the value of the linear basis function with the local number localBasisNumber at the Node u on the standart-triangle. |
double |
evalGradXBasisFuncOnRef(Node n,
int localBasisNumber)
Returns the value of the partial derivation of the basis function with the local number localBasisNumber by x at the Node u on the
standart-triangle. |
double |
evalGradYBasisFuncOnRef(Node n,
int localBasisNumber)
Returns the value of the partial derivation of the basis function with the local number localBasisNumber by y at the Node u on the
standart-triangle. |
Methods inherited from class mathcomp.assemble.Assembler |
---|
addDirichletNodes, assembleGlobal, calcDirichletBoundary, createSurfaces, createSurfaces, evalExactGradient, evalExactSolution, evalF, getDof, getElementMatrix, getEpsilon, getErrorCalculator, getExactPartialX, getExactPartialY, getGrid, getInfoUrl, getM, getPreferredGridFileName, getSolScale, getY, report, run, setEpsilon, setGrid, setM, setTauIndex, 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 |
---|
public Vector[] gradVector
Constructor Detail |
---|
public LagrangeLinearAssembler()
Method Detail |
---|
public void createDof(Grid grid, java.util.Set dof)
Assembler
createDof
in class Assembler
grid
- the current griddof
- the Set where the DOFs have to be put inpublic void createDofExport(Triangle t, java.lang.Object[] result)
public double evalBasisFuncOnRef(Node u, int localBasisNumber)
localBasisNumber
at the Node u on the standart-triangle.
public double evalGradXBasisFuncOnRef(Node n, int localBasisNumber)
localBasisNumber
by x at the Node u on the
standart-triangle.
public double evalGradYBasisFuncOnRef(Node n, int localBasisNumber)
localBasisNumber
by y at the Node u on the
standart-triangle.
public double evalApproxSolution(Node n, Triangle t, Vector x)
Assembler
evalApproxSolution
in class Assembler
n
- Node where the solution has to be evaluatedt
- the triangle that contains the Node nx
- the solution vector
public double[] evalApproxGradient(Node n, Triangle t, Vector x)
evalApproxGradient
in class Assembler
n
- node where the approximated gradient should be evaluated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |