60NodalSpringElement :: computeStiffnessMatrix(
FloatMatrix &answer, MatResponseMode rMode,
TimeStep *tStep)
67NodalSpringElement :: giveInternalForcesVector(
FloatArray &answer,
TimeStep *tStep,
int useUpdatedGpRecord)
75 for (
int i = 1; i<=ndofs; i++) {
82NodalSpringElement :: computeGtoLRotationMatrix(
FloatMatrix &answer)
89NodalSpringElement :: giveDofManDofIDMask(
int inode,
IntArray &answer)
const
97 if (this->
masses.isNotEmpty()) {
101 answer.
resize(ndofs, ndofs);
107NodalSpringElement :: computeNumberOfGlobalDofs()
114NodalSpringElement :: initializeFrom(
InputRecord &ir,
int priority)
127NodalSpringElement :: initializeFinish()
138 int ndofs =
dofMask.giveSize();
140 OOFEM_ERROR (
"Spring constants size not equal to number of DOFs");
143 if (ndofs !=
masses.giveSize()) {
144 OOFEM_ERROR (
"Masses array size not equal to number of DOFs");
150NodalSpringElement :: postInitialize()
153void NodalSpringElement :: printOutputAt(FILE *File,
TimeStep *tStep)
159 fprintf(File,
" Force/Moment ");
160 for (
int i = 1; i<= F.
giveSize(); i++) {
161 fprintf(File,
"%.4e ", F.
at(i));
#define REGISTER_Element(class)
IntArray dofManArray
Array containing dofmanager numbers.
static ParamKey IPK_Element_nodes
static ParamKey IPK_Element_activityTimeFunction
int numberOfDofMans
Number of dofmanagers.
int activityTimeFunction
Element activity time function. If defined, nonzero value indicates active receiver,...
void computeVectorOf(ValueModeType u, TimeStep *tStep, FloatArray &answer)
Domain * giveDomain() const
int number
Component number.
Index giveSize() const
Returns the size of receiver.
void resize(Index rows, Index cols)
void beDiagonal(const FloatArray &diag)
void zero()
Zeroes all coefficient of receiver.
FloatArray masses
total mass of the spring; to be distributed to nodes
static ParamKey IPK_NodalSpringElement_springConstants
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
static ParamKey IPK_NodalSpringElement_masses
int computeNumberOfDofs() override
static ParamKey IPK_NodalSpringElement_dofmask
FloatArray springConstants
Spring constants.
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
IntArray dofMask
Dof mask.
bool checkIfSet(size_t componentIndex, size_t paramIndex)
StructuralElement(int n, Domain *d)
#define PM_ELEMENT_ERROR_IFNOTSET(_pm, _componentnum, _paramkey)
#define PM_UPDATE_PARAMETER(_val, _pm, _ir, _componentnum, _paramkey, _prio)