Beam3DL2 Class Reference
[Solid Mechanics]
#include <Beam3DL2.h>

Detailed Description
To build element equations for 3-D beam equations using 2-node lines.This class enables building finite element arrays for 3-D beam elements using 6 degrees of freedom per node and 2-Node line elements.
Public Member Functions | |
| T_ * | A () |
| Return element matrix as a C-array. | |
| double | AxialForce () const |
| Return axial force in element. | |
| T_ * | b () |
| Return element right-hand side as a C-array. | |
| Beam3DL2 (Mesh &ms, const NodeVect< double > &u, NodeVect< double > &d) | |
| Constructor to determine displacements. | |
| Beam3DL2 (Element *el, double A, double I1, double I2, const Vect< double > &u, const double &time=0) | |
| Constructor for dynamic problems. | |
| Beam3DL2 (Element *el, double A, double I1, double I2) | |
| Constructor using element data. | |
| Beam3DL2 () | |
| Default Constructor. | |
| Point< double > | BendingMoment () const |
| Return bending moment in element. | |
| virtual void | Deviator (double coef=1) |
| Add deviator matrix to left-hand side taking into account time integration scheme. | |
| virtual void | DeviatorToRHS (double coef=1) |
| Add deviator matrix to right-hand side taking into account time integration scheme. | |
| void | DiagBC (int dof_type=NODE_DOF, int dof=0) |
| Update element matrix to impose bc by diagonalization technique. | |
| LocalMatrix< T_, NEE_, NEE_ > & | EA () |
| Return element matrix as a LocalMatrix instance. | |
| LocalVect< T_, NEE_ > & | Eb () |
| Return element right-hand side as a LocalVect instance. | |
| void | ElementVector (const Vect< T_ > &b, int dof=0, int dof_type=NODE_DOF) |
| Localize Element Vector. | |
| LocalVect< T_, NEE_ > & | Ep () |
| Return element matrix as a C-array. | |
| LinearSolver< T_ > & | getLinearSolver () |
| Return reference to linear solver instance. | |
| size_t | getNbEq () const |
| Return number of element equations. | |
| size_t | getNbNodes () const |
| Return number of element nodes. | |
| void | LMassToLHS (double coef=1.) |
| Add element lumped Mass contribution to matrix after multiplication by coef. | |
| void | LMassToRHS (double coef=1.) |
| Add element lumped Mass contribution to RHS after multiplication by coef. | |
| void | Load (const NodeVect< double > &f) |
| Add contributions for loads. | |
| void | LocalNodeVector (AbsVect< T_ > *b) |
| Localize Element Vector from a NodeVect instance. | |
| void | MassToLHS (double coef=1.) |
| Add element consistent Mass contribution to matrix after multiplication by coef (not implemented). | |
| void | MassToRHS (double coef=1.) |
| Add element consistent Mass contribution to RHS after multiplication by coef (not implemented). | |
| T_ * | Prev () |
| Return element matrix as a C-array. | |
| LocalMatrix< T_, NSE_, NSE_ > & | SA () |
| Return side matrix as a LocalMatrix instance. | |
| void | setAxial () |
| Set axial contribution to stiffness. | |
| void | setBending () |
| Set bending contribution to stiffness. | |
| void | setDeviator () |
| Add deviator matrix to left and/or right-hand side taking into account time integration scheme. | |
| void | setInitialSolution (const Vect< T_ > &u) |
| Set initial solution (previous time step). | |
| void | setLumpedMass () |
| Add lumped mass contribution to left and right-hand sides taking into account time integration scheme. | |
| void | setMass () |
| Add consistent mass contribution to left and right-hand sides taking into account time integration scheme. | |
| double | setMaterialProperty (const string &exp, const string &prop) |
| Define a material property by an algebraic expression. | |
| void | setMesh (class Mesh &m) |
| Define mesh and renumber DOFs after removing imposed ones. | |
| void | setNoAxial () |
| Set no axial contribution. | |
| void | setNoBending () |
| Set no bending contribution. | |
| void | setNoShear () |
| Set no shear contribution. | |
| void | setNoTorsion () |
| Set no torsion contribution. | |
| void | setReducedIntegration () |
| Set reduced integration. | |
| void | setShear () |
| Set shear contribution to stiffness. | |
| void | setStiffness () |
| Add convection contribution to left and/or right-hand side taking into account time integration scheme. | |
| void | setTorsion () |
| Set torsion contribution to stiffness. | |
| Point< double > | ShearForce () const |
| Return shear force in element. | |
| void | SideVector (const Vect< T_ > &b) |
| Localize Side Vector. | |
| void | Stiffness (double coef=1.) |
| Add element stiffness to left hand side. | |
| virtual void | StiffnessToRHS (double coef=1) |
| Add stiffness matrix to right-hand side taking into account time integration scheme. | |
| double | TwistingMoment () const |
| Return twisting moment in element. | |
| void | updateBC (const Vect< T_ > &bc) |
| Update Right-Hand side by taking into account essential boundary conditions. | |
| ~Beam3DL2 () | |
| Destructor. | |
Protected Member Functions | |
| void | Density (const char *exp) |
| Set density given by an algebraic expression. | |
| void | Density (const double &rho) |
| Set (constant) density. | |
| void | Init (const Side *sd) |
| Set side arrays to zero. | |
| void | Init (const Element *el) |
| Set element arrays to zero. | |
| void | Poisson (const char *exp) |
| Set Poisson ratio given by an algebraic expression. | |
| void | Poisson (const double &nu) |
| Set (constant) Poisson ratio. | |
| void | setMaterial () |
| Set material properties. | |
| void | Young (const char *exp) |
| Set Young modulus given by an algebraic expression. | |
| void | Young (const double &E) |
| set (constant) Young modulus | |
Constructor & Destructor Documentation
Constructor using element data.
- Parameters:
-
[in] el Pointer to Element [in] A Section area of the beam [in] I1 first (x) momentum of inertia [in] I2 second (y) momentum of inertia
| Beam3DL2 | ( | Element * | el, | |
| double | A, | |||
| double | I1, | |||
| double | I2, | |||
| const Vect< double > & | u, | |||
| const double & | time = 0 | |||
| ) |
Constructor for dynamic problems.
- Parameters:
-
el Pointer to Element [in] A Section area of the beam [in] I1 first (x) momentum of inertia [in] I2 second (y) momentum of inertia [in] u Vector containing previous solution (at previous time step) [in] time Current time value
Member Function Documentation
| void DiagBC | ( | int | dof_type = NODE_DOF, |
|
| int | dof = 0 | |||
| ) | [inherited] |
Update element matrix to impose bc by diagonalization technique.
- Parameters:
-
[in] dof_type DOF type option. To choose among the enumerated values: - = NODE_DOF, DOFs are supported by nodes [ default ]
- = ELEMENT_DOF, DOFs are supported by elements
- = SIDE_DOF, DOFs are supported by sides
[in] dof DOF setting: - = 0, All DOFs are taken into account [ default ]
- != 0, Only DOF No. dof is handled in the sustem
References Side::getCode(), Node::getCode(), and Node::getLabel().
| void ElementVector | ( | const Vect< T_ > & | b, | |
| int | dof = 0, |
|||
| int | dof_type = NODE_DOF | |||
| ) | [inherited] |
Localize Element Vector.
- Parameters:
-
[in] b Global vector to be localized [in] dof_type DOF type option. To choose among the enumerated values: - = NODE_DOF, DOFs are supported by nodes [ default ]
- = ELEMENT_DOF, DOFs are supported by elements
- = SIDE_DOF, DOFs are supported by sides
[in] dof DOF setting: - = 0, All DOFs are taken into account [ default ]
- != 0, Only DOF No. dof is handled in the sustem
References Equation::b(), Side::getDOF(), Node::getDOF(), Side::getNbDOF(), and Node::getNbDOF().
| void LocalNodeVector | ( | AbsVect< T_ > * | b | ) | [inherited] |
Localize Element Vector from a NodeVect instance.
- Parameters:
-
[in] b Pointer to global vector to be localized. The resulting local vector can be accessed by attribute ePrev. This member function is to be used if a constructor with Element was invoked.
References Node::getLabel(), and Node::getNbDOF().
| double setMaterialProperty | ( | const string & | exp, | |
| const string & | prop | |||
| ) | [inherited] |
Define a material property by an algebraic expression.
- Parameters:
-
[in] exp Algebraic expression [in] prop Property name
- Return values:
-
ret Return value in expression evaluation: - ret=0, Normal evaluation
- ret!=0, An error message is displayed.
Referenced by Equa_Therm< double, 4, 4, 3, 3 >::Conduc(), Equa_Solid< double, 4, 8, 2, 4 >::Density(), Equa_Fluid< double, 4, 8, 2, 4 >::Density(), Equa_Electromagnetics< complex< double >, 3, 3, 2, 2 >::ElectricConductivity(), Equa_Electromagnetics< complex< double >, 3, 3, 2, 2 >::ElectricResistivity(), Equa_Electromagnetics< complex< double >, 3, 3, 2, 2 >::MagneticPermeability(), Equa_Solid< double, 4, 8, 2, 4 >::Poisson(), Equa_Therm< double, 4, 4, 3, 3 >::RhoCp(), Equa_Fluid< double, 4, 8, 2, 4 >::ThermalExpansion(), Equa_Fluid< double, 4, 8, 2, 4 >::Viscosity(), and Equa_Solid< double, 4, 8, 2, 4 >::Young().
| void SideVector | ( | const Vect< T_ > & | b | ) | [inherited] |
Localize Side Vector.
- Parameters:
-
[in] b Global vector to be localized - = NODE_DOF, DOFs are supported by nodes [ default ]
- = ELEMENT_DOF, DOFs are supported by elements
- = SIDE_DOF, DOFs are supported by sides
References Equation::b(), Node::getDOF(), and Node::getNbDOF().
| void updateBC | ( | const Vect< T_ > & | bc | ) | [inherited] |
Update Right-Hand side by taking into account essential boundary conditions.
Init solution.
- Parameters:
-
[in] bc Vector that contains imposed values at all DOFs