72SpringElement :: giveInternalForcesVector(
FloatArray &answer,
TimeStep *tStep,
int useUpdatedGpRecord)
82SpringElement :: computeGtoLRotationMatrix(
FloatMatrix &answer)
90 answer.
at(1, 1) = answer.
at(2, 2) = 1.0;
93 answer.
at(1, 1) = this->
dir.at(1);
94 answer.
at(1, 2) = this->
dir.at(2);
95 answer.
at(2, 3) = this->
dir.at(1);
96 answer.
at(2, 4) = this->
dir.at(2);
99 answer.
at(1, 1) = this->
dir.at(1);
100 answer.
at(1, 2) = this->
dir.at(3);
101 answer.
at(2, 3) = this->
dir.at(1);
102 answer.
at(2, 4) = this->
dir.at(3);
105 answer.
at(1, 1) = this->
dir.at(1);
106 answer.
at(1, 2) = this->
dir.at(2);
107 answer.
at(1, 3) = this->
dir.at(3);
108 answer.
at(2, 4) = this->
dir.at(1);
109 answer.
at(2, 5) = this->
dir.at(2);
110 answer.
at(2, 6) = this->
dir.at(3);
117SpringElement :: giveDofManDofIDMask(
int inode,
IntArray &answer)
const
128 answer = {D_u, D_v, D_w};
130 answer = {R_u, R_v, R_w};
135SpringElement :: computeSpringInternalForce(
TimeStep *tStep)
146 answer.
at(1,1)=answer.
at(2,2) = this->
mass/2.0;
147 answer.
at(1,2)=answer.
at(2,1) = 0.0;
151SpringElement :: computeNumberOfGlobalDofs()
169 StructuralElement :: initializeFrom(ir, priority);
171 bool modeFlag, dirFlag;
180 this->
dir.normalize();
184void SpringElement :: printOutputAt(FILE *File,
TimeStep *tStep)
#define REGISTER_Element(class)
int numberOfDofMans
Number of dofmanagers.
void computeVectorOf(ValueModeType u, TimeStep *tStep, FloatArray &answer)
Domain * giveDomain() const
int number
Component number.
void resize(Index rows, Index cols)
double at(std::size_t i, std::size_t j) const
double springConstant
The longitudinal spring constant [Force/Length], torsional spring constant [Force*Length/Radians].
static ParamKey IPK_SpringElement_mass
static ParamKey IPK_SpringElement_orientation
double computeSpringInternalForce(TimeStep *tStep)
SpringElementType mode
Mode.
static ParamKey IPK_SpringElement_springConstant
double mass
total mass of the spring; to be distributed to nodes
SpringElementType
Defines type of spring element (longitudinal/rotational) spring.
@ SE_1D_SPRING
1D spring element along x-axis.
@ SE_3D_TORSIONALSPRING
3D torsional spring in space, requires R_u, R_v, and R_w DOFs in each node.
@ SE_2D_TORSIONALSPRING_XZ
< 2D spring element in xz plane, requires D_u and D_w DOFs in each node (orientation vector should be...
@ SE_3D_SPRING
3D spring element in space, requires D_u, D_v, and D_w DOFs in each node.
@ SE_2D_SPRING_XY
2D spring element in xy plane, requires D_u and D_v DOFs in each node (orientation vector should be i...
static ParamKey IPK_SpringElement_mode
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
StructuralElement(int n, Domain *d)
#define PM_UPDATE_PARAMETER_AND_REPORT(_val, _pm, _ir, _componentnum, _paramkey, _prio, _flag)
#define PM_UPDATE_PARAMETER(_val, _pm, _ir, _componentnum, _paramkey, _prio)