35 #include "../sm/Elements/nodalspringelement.h" 69 for (
int i = 1; i<=ndofs; i++) {
95 answer.
resize(ndofs, ndofs);
121 OOFEM_ERROR (
"Spring constants size not equal to number of DOFs");
125 OOFEM_ERROR (
"Masses array size not equal to number of DOFs");
142 fprintf(File,
" Force/Moment ");
143 for (
int i = 1; i<= F.
giveSize(); i++) {
144 fprintf(File,
"%.4e ", F.
at(i));
IntArray dofManArray
Array containing dofmanager numbers.
IntArray dofMask
Dof mask.
void computeVectorOf(ValueModeType u, TimeStep *tStep, FloatArray &answer)
Returns local vector of unknowns.
double & at(int i)
Coefficient access function.
virtual bool computeGtoLRotationMatrix(FloatMatrix &answer)
Returns transformation matrix from global c.s.
FloatArray springConstants
Spring constants.
void beDiagonal(const FloatArray &diag)
Modifies receiver to be a diagonal matrix with the components specified in diag.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
Class implementing an array of integers.
MatResponseMode
Describes the character of characteristic material matrix.
#define _IFT_NodalSpringElement_dofmask
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes numerically stiffness matrix of receiver.
int activityTimeFunction
Element activity time function. If defined, nonzero value indicates active receiver, zero value inactive element.
Abstract base class for all "structural" finite elements.
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
#define _IFT_NodalSpringElement_springConstants
#define _IFT_Element_nodes
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Class representing vector of real numbers.
Implementation of matrix containing floating point numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
NodalSpringElement(int n, Domain *d)
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
void resize(int rows, int cols)
Checks size of receiver towards requested bounds.
void zero()
Zeroes all coefficients of receiver.
FloatArray masses
total mass of the spring; to be distributed to nodes
#define _IFT_Element_activityTimeFunction
void zero()
Zeroes all coefficient of receiver.
#define _IFT_NodalSpringElement_masses
int giveSize() const
Returns the size of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
bool isNotEmpty() const
Returns true if receiver is not empty.
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
Returns equivalent nodal forces vectors.
Class representing solution step.
int numberOfDofMans
Number of dofmanagers.
void resize(int s)
Resizes receiver towards requested size.
virtual int computeNumberOfGlobalDofs()
Computes the total number of element's global dofs.