35#ifndef springelement_h
36#define springelement_h
42#define _IFT_SpringElement_Name "spring"
43#define _IFT_SpringElement_mode "mode"
44#define _IFT_SpringElement_orientation "orientation"
45#define _IFT_SpringElement_springConstant "k"
46#define _IFT_SpringElement_mass "m"
131 int lowerIndx = 1,
int upperIndx =
ALL_STRAINS)
override
*Sets size of receiver to be an empty matrix It will have zero rows and zero columns size void clear()
void printOutputAt(FILE *file, TimeStep *tStep) override
int computeNumberOfDofs() override
double springConstant
The longitudinal spring constant [Force/Length], torsional spring constant [Force*Length/Radians].
static ParamKey IPK_SpringElement_mass
SpringElement(int n, Domain *d)
static ParamKey IPK_SpringElement_orientation
double computeSpringInternalForce(TimeStep *tStep)
int computeNumberOfGlobalDofs() override
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
SpringElementType mode
Mode.
void updateInternalState(TimeStep *tStep) override
int checkConsistency() override
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS) override
bool isCast(TimeStep *tStep) override
void computeInitialStressMatrix(FloatMatrix &answer, TimeStep *tStep) override
static ParamKey IPK_SpringElement_springConstant
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
void giveDofManDofIDMask(int inode, IntArray &answer) const override
double mass
total mass of the spring; to be distributed to nodes
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
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...
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
const char * giveClassName() const override
bool computeGtoLRotationMatrix(FloatMatrix &answer) override
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
void initializeFrom(InputRecord &ir, int priority) override
const char * giveInputRecordName() const override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
void updateYourself(TimeStep *tStep) override
static ParamKey IPK_SpringElement_mode
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
Element_Geometry_Type giveGeometryType() const override
StructuralElement(int n, Domain *d)
#define _IFT_SpringElement_Name