public class LinearMaterialCache
extends java.lang.Object
Constructor and Description |
---|
LinearMaterialCache(int numNodes)
Initializes empty cache
|
Modifier and Type | Method and Description |
---|---|
void |
addInitialStiffness(FemElement3d e,
AuxiliaryMaterial mat)
Computes and stores the initial stiffness K0 and force f0 terms
|
void |
addInitialStiffness(FemElement3d e,
FemMaterial mat)
Computes and stores the initial stiffness K0 and force f0 terms
|
void |
clearInitialStiffness()
Sets all stiffness and force values to zero
|
boolean |
epsilonEquals(LinearMaterialCache cache,
double eps) |
boolean |
equals(LinearMaterialCache cache) |
Vector3d |
getInitialForce(int i)
Retrieves the stiffness-induced initial force on node i
|
Vector3d[] |
getInitialForces()
Retries all stiffness-induced initial forces
|
Matrix3d[][] |
getInitialStiffness()
Retrieves all local stiffness contributions
|
Matrix3d |
getInitialStiffness(int i,
int j)
Retrieves the local stiffness contribution between nodes i and j
|
double |
maxDistance(LinearMaterialCache cache) |
public LinearMaterialCache(int numNodes)
numNodes
- number of nodes in associated elementpublic void clearInitialStiffness()
public void addInitialStiffness(FemElement3d e, FemMaterial mat)
e
- elementmat
- linear materialpublic void addInitialStiffness(FemElement3d e, AuxiliaryMaterial mat)
e
- elementmat
- linear materialpublic Matrix3d getInitialStiffness(int i, int j)
i
- first node indexj
- second node indexpublic Matrix3d[][] getInitialStiffness()
public Vector3d getInitialForce(int i)
i
- node indexpublic Vector3d[] getInitialForces()
public boolean equals(LinearMaterialCache cache)
public boolean epsilonEquals(LinearMaterialCache cache, double eps)
public double maxDistance(LinearMaterialCache cache)