35 #ifndef springelement_h 36 #define springelement_h 38 #include "../sm/Elements/structuralelement.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" 132 #endif // springelement_h virtual void updateYourself(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
< 2D spring element in xz plane, requires D_u and D_w DOFs in each node (orientation vector should be...
virtual bool isCast(TimeStep *tStep)
Element_Geometry_Type
Enumerative type used to classify element geometry Possible values are: EGT_point - point in space EG...
virtual int computeNumberOfGlobalDofs()
Computes the total number of element's global dofs.
This class implements a simple spring element.
virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the stress vector of receiver at given integration point, at time step tStep.
void clear()
Clears receiver (zero size).
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes mass matrix of receiver.
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
Returns equivalent nodal forces vectors.
virtual bool computeGtoLRotationMatrix(FloatMatrix &answer)
Returns transformation matrix from global c.s.
SpringElement(int n, Domain *d)
Class implementing an array of integers.
2D spring element in xy plane, requires D_u and D_v DOFs in each node (orientation vector should be i...
MatResponseMode
Describes the character of characteristic material matrix.
double mass
total mass of the spring; to be distributed to nodes
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
Abstract base class for all "structural" finite elements.
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
double computeSpringInternalForce(TimeStep *tStep)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
1D spring element along x-axis.
#define _IFT_SpringElement_Name
SpringElementType mode
Mode.
Class representing vector of real numbers.
virtual void updateInternalState(TimeStep *tStep)
Updates element state after equilibrium in time step has been reached.
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes numerically stiffness matrix of receiver.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
virtual void computeInitialStressMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes initial stress matrix for linear stability problem.
FloatArray dir
Orientation vector.
Implementation of matrix containing floating point numbers.
SpringElementType
Defines type of spring element (longitudinal/rotational) spring.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual const char * giveInputRecordName() const
double springConstant
The longitudinal spring constant [Force/Length], torsional spring constant [Force*Length/Radians].
3D spring element in space, requires D_u, D_v, and D_w DOFs in each node.
3D torsional spring in space, requires R_u, R_v, and R_w DOFs in each node.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveClassName() const
void clear()
Sets size of receiver to be an empty matrix. It will have zero rows and zero columns size...
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
Class representing integration point in finite element program.
Class representing solution step.
virtual int checkConsistency()
Performs consistency check.