fhm.edu.fem.calc
Class FEMCalc

java.lang.Object
  extended by fhm.edu.fem.calc.FEMCalc
Direct Known Subclasses:
FEMCalcGauss

public class FEMCalc
extends java.lang.Object

Class Description: This class executes the calculation itself

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
static int APPROACH_LINEAR
           
static int APPROACH_QUADRATIC
           
protected  Matrix completeStiffnessMatrix
           
protected static FEMManager femManager
           
protected static Logger localLogger
           
protected  long startTime
           
protected  long tmpTime
           
protected  long totalTime
           
 
Constructor Summary
FEMCalc()
          Create a new FEM Calculator with the given approach
 
Method Summary
protected  boolean calculate(Calculation calc)
          Do the calculation
protected  boolean compilation()
          Do the compilation
 Matrix getCompleteStiffnessMatrix()
          Retrieve the complete stiffness matrix at the current point of the calculation
 long getTotalTime()
          Retrieve the time needed to complete all calculations
 boolean start()
          Call this method to start the calculation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPROACH_LINEAR

public static final int APPROACH_LINEAR
See Also:
Constant Field Values

APPROACH_QUADRATIC

public static final int APPROACH_QUADRATIC
See Also:
Constant Field Values

completeStiffnessMatrix

protected Matrix completeStiffnessMatrix

femManager

protected static FEMManager femManager

localLogger

protected static Logger localLogger

startTime

protected long startTime

tmpTime

protected long tmpTime

totalTime

protected long totalTime
Constructor Detail

FEMCalc

public FEMCalc()
Create a new FEM Calculator with the given approach

Method Detail

calculate

protected boolean calculate(Calculation calc)
Do the calculation

Parameters:
calc, - the calculation object
Returns:
true if all went well, false otherwise

compilation

protected boolean compilation()
Do the compilation

Returns:
true if all went well, false otherwise

getCompleteStiffnessMatrix

public Matrix getCompleteStiffnessMatrix()
Retrieve the complete stiffness matrix at the current point of the calculation

Returns:
Returns the completeStiffnessMatrix.

getTotalTime

public long getTotalTime()
Retrieve the time needed to complete all calculations

Returns:
Returns the totalTime.

start

public boolean start()
Call this method to start the calculation

Returns:
true if all went well, false otherwise