mathcomp.assemble
Class AssemblerPair

java.lang.Object
  extended by mathcomp.monitor.DefaultReportable
      extended by mathcomp.monitor.DefaultAlgorithm
          extended by mathcomp.assemble.Assembler
              extended by 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

Field Summary
 
Fields inherited from class mathcomp.assemble.Assembler
dirichletBoundaryValues, solScale
 
Constructor Summary
AssemblerPair()
           
 
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 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

AssemblerPair

public AssemblerPair()
Method Detail

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 grid
t - the current triangle
m - the global matrix
u1 - the first DOF object
u2 - 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