![]() |
MechSys
1.0
Computing library for simulations in continuum and discrete mechanics
|
#include <rod.h>
Public Member Functions | |
Rod (int NDim, Mesh::Cell const &Cell, Model const *Mdl, Model const *XMdl, SDPair const &Prp, SDPair const &Ini, Array< Node * > const &Nodes) | |
Connectivity. | |
void | GetLoc (Array< size_t > &Loc) const |
Get location vector for mounting K/M matrices. | |
void | CalcK (Mat_t &K) const |
Stiffness matrix. | |
void | CalcT (Mat_t &T, double &l) const |
Transformation matrix. | |
void | UpdateState (Vec_t const &dU, Vec_t *F_int=NULL) const |
void | StateKeys (Array< String > &Keys) const |
Get state keys. | |
void | StateAtNodes (Array< SDPair > &Results) const |
State at nodes. | |
void | Draw (std::ostream &os, MPyPrms const &Prms) const |
TODO: Move this to a Python script. Draw element with MatPlotLib. | |
Public Attributes | |
double | E |
Young modulus. | |
double | A |
Cross-sectional area. |
FEM::Rod::Rod | ( | int | NDim, |
Mesh::Cell const & | Cell, | ||
Model const * | Mdl, | ||
Model const * | XMdl, | ||
SDPair const & | Prp, | ||
SDPair const & | Ini, | ||
Array< Node * > const & | Nodes | ||
) | [inline] |
void FEM::Rod::CalcK | ( | Mat_t & | K | ) | const [inline, virtual] |
Stiffness matrix.
Reimplemented from FEM::Element.
void FEM::Rod::CalcT | ( | Mat_t & | T, |
double & | l | ||
) | const [inline] |
Transformation matrix.
void FEM::Rod::Draw | ( | std::ostream & | os, |
MPyPrms const & | Prms | ||
) | const [inline, virtual] |
TODO: Move this to a Python script. Draw element with MatPlotLib.
Reimplemented from FEM::Element.
void FEM::Rod::GetLoc | ( | Array< size_t > & | Loc | ) | const [inline, virtual] |
Get location vector for mounting K/M matrices.
Reimplemented from FEM::Element.
void FEM::Rod::StateAtNodes | ( | Array< SDPair > & | Results | ) | const [inline, virtual] |
State at nodes.
Reimplemented from FEM::Element.
void FEM::Rod::StateKeys | ( | Array< String > & | Keys | ) | const [inline, virtual] |
Get state keys.
Reimplemented from FEM::Element.
void FEM::Rod::UpdateState | ( | Vec_t const & | dU, |
Vec_t * | F_int = NULL |
||
) | const [inline, virtual] |
Reimplemented from FEM::Element.
double FEM::Rod::A |
Cross-sectional area.
double FEM::Rod::E |
Young modulus.