mathcomp.assemble
Class AssemblerPair
java.lang.Object
mathcomp.monitor.DefaultReportable
mathcomp.monitor.DefaultAlgorithm
mathcomp.assemble.Assembler
mathcomp.assemble.AssemblerPair
- All Implemented Interfaces:
- java.lang.Runnable, Algorithm, Reportable
public abstract class AssemblerPair
- extends Assembler
Helper class, if you assemble the Matrix by pairs of
Dofs.
- Author:
- pht
Method Summary |
void |
assembleGlobal()
The main assemble method generally called from outside. |
abstract double |
assemblePair(Grid g,
Triangle t,
Matrix m,
java.lang.Object u1,
java.lang.Object v1)
The concrete matrix-entry-assemble method returning the double value to
the two DOF Objects u1 and v1. |
Methods inherited from class mathcomp.assemble.Assembler |
addDirichletNodes, calcDirichletBoundary, createDof, createSurfaces, createSurfaces, evalApproxGradient, evalApproxSolution, 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AssemblerPair
public AssemblerPair()
assemblePair
public abstract double assemblePair(Grid g,
Triangle t,
Matrix m,
java.lang.Object u1,
java.lang.Object v1)
- The concrete matrix-entry-assemble method returning the double value to
the two DOF Objects u1 and v1. Basically it returns only the pre-
calculated values from the local element matrix.
- Parameters:
grid
- the current gridt
- the current trianglem
- the global matrixu1
- the first DOF objectu2
- the second DOF object
- Returns:
- the calculated value for the objects u1 and u2
assembleGlobal
public void assembleGlobal()
- 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 Assembler