35 #include "../sm/Elements/springelement.h" 83 answer.
at(1, 1) = answer.
at(2, 2) = 1.0;
86 answer.
at(1, 1) = this->
dir.
at(1);
87 answer.
at(1, 2) = this->
dir.
at(2);
88 answer.
at(2, 3) = this->
dir.
at(1);
89 answer.
at(2, 4) = this->
dir.
at(2);
92 answer.
at(1, 1) = this->
dir.
at(1);
93 answer.
at(1, 2) = this->
dir.
at(3);
94 answer.
at(2, 3) = this->
dir.
at(1);
95 answer.
at(2, 4) = this->
dir.
at(3);
98 answer.
at(1, 1) = this->
dir.
at(1);
99 answer.
at(1, 2) = this->
dir.
at(2);
100 answer.
at(1, 3) = this->
dir.
at(3);
101 answer.
at(2, 4) = this->
dir.
at(1);
102 answer.
at(2, 5) = this->
dir.
at(2);
103 answer.
at(2, 6) = this->
dir.
at(3);
121 answer = {D_u, D_v, D_w};
123 answer = {R_u, R_v, R_w};
139 answer.
at(1,1)=answer.
at(2,2) = this->
mass/2.0;
140 answer.
at(1,2)=answer.
at(2,1) = 0.0;
< 2D spring element in xz plane, requires D_u and D_w DOFs in each node (orientation vector should be...
void computeVectorOf(ValueModeType u, TimeStep *tStep, FloatArray &answer)
Returns local vector of unknowns.
virtual int computeNumberOfGlobalDofs()
Computes the total number of element's global dofs.
double & at(int i)
Coefficient access function.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
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)
#define _IFT_SpringElement_mass
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.
#define _IFT_SpringElement_orientation
double computeSpringInternalForce(TimeStep *tStep)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
1D spring element along x-axis.
SpringElementType mode
Mode.
double at(int i, int j) const
Coefficient access function.
Class representing vector of real numbers.
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.
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.
void resize(int rows, int cols)
Checks size of receiver towards requested bounds.
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.
#define _IFT_SpringElement_mode
the oofem namespace is to define a context or scope in which all oofem names are defined.
double normalize()
Normalizes receiver.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing solution step.
int numberOfDofMans
Number of dofmanagers.
#define _IFT_SpringElement_springConstant
void resize(int s)
Resizes receiver towards requested size.