fhm.edu.fem.calc
Class CalcEigenvalues

java.lang.Object
  extended by fhm.edu.fem.calc.CalcEigenvalues

public class CalcEigenvalues
extends java.lang.Object

Class Description: This class executes the calculation of the exact eigenvalues

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

Field Summary
protected  double lengthOfSideA
           
protected  double lengthOfSideB
           
protected static Logger localLogger
           
protected  double piSquared
           
protected  double sideASquared
           
protected  double sideBSquared
           
protected  long startTime
           
 
Constructor Summary
CalcEigenvalues(double a, double b)
          Create a new Calculator to get the exact Eigenvalues
 
Method Summary
protected  double calcEigenvalueAt(int i, int j, double a, double b)
          Calculate the eigenvalue using the formula (using the values stored in this class) : lambda(i,j) = pi^2 * [ (i^2/a^2) + (j^2/b^2) ]
 java.util.List getEigenvalueList()
          Retrieve the list of all found eigenvalues
 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

lengthOfSideA

protected double lengthOfSideA

lengthOfSideB

protected double lengthOfSideB

localLogger

protected static Logger localLogger

piSquared

protected double piSquared

sideASquared

protected double sideASquared

sideBSquared

protected double sideBSquared

startTime

protected long startTime
Constructor Detail

CalcEigenvalues

public CalcEigenvalues(double a,
                       double b)
Create a new Calculator to get the exact Eigenvalues

Parameters:
double, - the positive length of side A
double, - the positive length of side B
Method Detail

calcEigenvalueAt

protected double calcEigenvalueAt(int i,
                                  int j,
                                  double a,
                                  double b)
Calculate the eigenvalue using the formula (using the values stored in this class) : lambda(i,j) = pi^2 * [ (i^2/a^2) + (j^2/b^2) ]

Parameters:
i, - the current i index
j, - the current j index
Returns:
double, the calculated exact eigenvalue lambda(i,j)

getEigenvalueList

public java.util.List getEigenvalueList()
Retrieve the list of all found eigenvalues

Returns:
List, the eigenvalue list

start

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

Returns:
true if all went well, false otherwise