org.jscience.physics.solids
Class SolutionMatrices

java.lang.Object
  extended by org.jscience.physics.solids.SolutionMatrices

public class SolutionMatrices
extends java.lang.Object

Collection of matrices used in the solution sequence. This contains: A stiffness matrix. A loads matrix. A mass matrix A differential stiffness matrix.

These are grouped together into a single class so that the constraints, etc.. only have to be set once.


Constructor Summary
SolutionMatrices(AtlasNode[] nodes)
          Initializes all of the matrices to tge correct size.
 
Method Summary
 DoubleMatrix getDampingMatrix()
           
 DoubleMatrix getDisplacementMatrix()
           
 int getDOFIndex(AtlasNode node, int dof)
          Returns the internal location of a specified dof.
 AtlasDOF getExternalDOF(int loc)
          Returns the external dof for a location in the Matrix.
 DoubleMatrix getForceMatrix()
           
 DoubleMatrix getMassMatrix()
           
 int getRank()
          Returns the rank of the stiffness Matrix.
 DoubleMatrix getReducedDispMatrix()
          Returns the active portion of the force array.
 DoubleMatrix getReducedForceMatrix()
          Returns the active portion of the force array.
 DoubleMatrix getReducedMassMatrix()
          Returns the active portion of the mass array.
 DoubleMatrix getReducedStiffnessMatrix()
          Returns the active portion of the stiffness array.
 DoubleMatrix getStiffnessMatrix()
           
 AtlasDOF[] getUnconstrainedDOF()
          Returns all DOF that are not constrained.
 int getUnconstrainedRank()
          Counts the numbe of DOF that are not constrained.
 boolean isConstrained(AtlasDOF dof)
          Determines whether the specified DOF is constrinaed.
 boolean isSupported(AtlasDOF dof)
          Determines whether the specified DOF is supported.
 void partitionAll()
           
 void setConstrainedDOF(AtlasNode node, int dof, double value)
          Sets a DOF as contrained.
 void setDisplacements(DoubleMatrix Us)
          Sets the displacements.
 void setUnsupportedDOF(AtlasNode node, int dof)
          Sets a DOF as unsupported.
 boolean unSupported(AtlasDOF dof)
          Determine if specified DOF is unsupported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolutionMatrices

public SolutionMatrices(AtlasNode[] nodes)
Initializes all of the matrices to tge correct size.

Method Detail

getRank

public int getRank()
Returns the rank of the stiffness Matrix.


getUnconstrainedRank

public int getUnconstrainedRank()
Counts the numbe of DOF that are not constrained.


getUnconstrainedDOF

public AtlasDOF[] getUnconstrainedDOF()
Returns all DOF that are not constrained.


getStiffnessMatrix

public DoubleMatrix getStiffnessMatrix()

getMassMatrix

public DoubleMatrix getMassMatrix()

getDampingMatrix

public DoubleMatrix getDampingMatrix()

getForceMatrix

public DoubleMatrix getForceMatrix()

getDisplacementMatrix

public DoubleMatrix getDisplacementMatrix()

partitionAll

public void partitionAll()

getReducedStiffnessMatrix

public DoubleMatrix getReducedStiffnessMatrix()
Returns the active portion of the stiffness array.


getReducedMassMatrix

public DoubleMatrix getReducedMassMatrix()
Returns the active portion of the mass array.


getReducedForceMatrix

public DoubleMatrix getReducedForceMatrix()
Returns the active portion of the force array.


getReducedDispMatrix

public DoubleMatrix getReducedDispMatrix()
Returns the active portion of the force array.


setDisplacements

public void setDisplacements(DoubleMatrix Us)
Sets the displacements.


getDOFIndex

public int getDOFIndex(AtlasNode node,
                       int dof)
Returns the internal location of a specified dof.


getExternalDOF

public AtlasDOF getExternalDOF(int loc)
Returns the external dof for a location in the Matrix.


setConstrainedDOF

public void setConstrainedDOF(AtlasNode node,
                              int dof,
                              double value)
Sets a DOF as contrained.


setUnsupportedDOF

public void setUnsupportedDOF(AtlasNode node,
                              int dof)
Sets a DOF as unsupported.


isConstrained

public boolean isConstrained(AtlasDOF dof)
Determines whether the specified DOF is constrinaed.


isSupported

public boolean isSupported(AtlasDOF dof)
Determines whether the specified DOF is supported.


unSupported

public boolean unSupported(AtlasDOF dof)
Determine if specified DOF is unsupported.