Assembles the global stiffness matrix.
More...
#include <threed_beam_fea.h>
Assembles the global stiffness matrix.
fea::GlobalStiffAssembler::GlobalStiffAssembler |
( |
| ) |
|
|
inline |
Default constructor.
Initializes all entries in member matrices to 0.0.
void fea::GlobalStiffAssembler::calcAelem |
( |
const Eigen::Vector3d & |
nx, |
|
|
const Eigen::Vector3d & |
nz |
|
) |
| |
Updates the rotation and transposed rotation matrices.
The rotation matrices Aelem
and AelemT
are updated based on the 2 specified unit normal vectors along the local x and y directions.
- Parameters
-
[in] | nx | Eigen::Matrix3d . Unit normal vector in global space parallel to the beam element's local x-direction. |
[in] | ny | Eigen::Matrix3d . Unit normal vector in global space parallel to the beam element's local y-direction. |
void fea::GlobalStiffAssembler::calcKelem |
( |
unsigned int |
i, |
|
|
const Job & |
job |
|
) |
| |
Updates the elemental stiffness matrix for the ith
element.
- Parameters
-
[in] | i | unsigned int . Specifies the ith element for which the elemental stiffness matrix is calculated. |
[in] | job | Job . Current fea::Job to analyze contains node, element, and property lists. |
Returns the currently stored rotation matrix.
- Returns
- Rotation matrix
fea::LocalMatrix
.
Returns the currently stored elemental stiffness matrix.
- Returns
- Elemental stiffness matrix
fea::LocalMatrix
.
void fea::GlobalStiffAssembler::operator() |
( |
SparseMat & |
Kg, |
|
|
const Job & |
job, |
|
|
const std::vector< Tie > & |
ties |
|
) |
| |
Assembles the global stiffness matrix.
The input stiffness matrix is modified in place to contain the correct values for the given job. Assumes that the input stiffness matrix has the correct dimensions and all values are initially set to zero.
- Parameters
-
| Kg | fea::GlobalStiffMatrix . Modified in place. After evaluation, Kg contains the correct values for the global stiffness matrix due to the input Job. |
[in] | job | fea::Job . Current Job to analyze contains node, element, and property lists. |
[in] | ties | std::vector<fea::Tie> . Vector of ties that apply to attach springs of specified stiffness to all nodal degrees of freedom between each set of nodes indicated. |
The documentation for this class was generated from the following files: