OOFEM 3.0
Loading...
Searching...
No Matches
lumpedmasselement.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef lumpedmasselement_h
36#define lumpedmasselement_h
37
39
41
42#define _IFT_LumpedMassElement_Name "lumpedmass"
43#define _IFT_LumpedMassElement_components "components"
44#define _IFT_LumpedMassElement_dofs "dofs"
46
47namespace oofem {
48class ParamKey;
57{
58protected:
63
66public:
67 LumpedMassElement(int n, Domain * d);
68 virtual ~LumpedMassElement() { }
69
70 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
71 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
72 { computeLumpedMassMatrix(answer, tStep); }
73 void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
74 { answer.clear(); }
75 void computeInitialStressMatrix(FloatMatrix &answer, TimeStep *tStep) override
76 { answer.clear(); }
77 void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0) override
78 { answer.clear(); }
79
80 int computeNumberOfDofs() override;
81 void giveDofManDofIDMask(int inode, IntArray &answer) const override;
82
83 void updateInternalState(TimeStep *tStep) override { }
84 void updateYourself(TimeStep *tStep) override { }
85 int checkConsistency() override;
86
87#ifdef __OOFEG
88 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
90 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
91#endif
92
93 // definition & identification
94 const char *giveInputRecordName() const override { return _IFT_LumpedMassElement_Name; }
95 const char *giveClassName() const override { return "LumpedMassElement"; }
96 void initializeFrom(InputRecord &ir, int priority) override;
97 void postInitialize() override;
98 Element_Geometry_Type giveGeometryType() const override { return EGT_point; }
99
100protected:
101 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
102 { answer.clear(); }
103 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
104 { answer.clear(); }
105
107 int lowerIndx = 1, int upperIndx = ALL_STRAINS) override
108 { answer.clear(); }
109 void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override { answer.clear(); }
110};
111} // end namespace oofem
112#endif // lumpedmasselement_h
*Sets size of receiver to be an empty matrix It will have zero rows and zero columns size void clear()
IntArray dofs
List of DOFs.
void giveDofManDofIDMask(int inode, IntArray &answer) const override
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int lowerIndx=1, int upperIndx=ALL_STRAINS) override
void computeInitialStressMatrix(FloatMatrix &answer, TimeStep *tStep) override
void postInitialize() override
Performs post initialization steps.
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
const char * giveClassName() const override
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
void updateInternalState(TimeStep *tStep) override
void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
const char * giveInputRecordName() const override
static ParamKey IPK_LumpedMassElement_dofs
Element_Geometry_Type giveGeometryType() const override
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0) override
void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep) override
void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) override
LumpedMassElement(int n, Domain *d)
static ParamKey IPK_LumpedMassElement_components
void updateYourself(TimeStep *tStep) override
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
void initializeFrom(InputRecord &ir, int priority) override
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
FloatArray components
Mass and moments of inertia corresponding to the specified DOFs.
StructuralElement(int n, Domain *d)
#define _IFT_LumpedMassElement_Name
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define ALL_STRAINS

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011