OOFEM 3.0
Loading...
Searching...
No Matches
linedistributedspring.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 linedistributedspring_H
36#define linedistributedspring_H
37
41
42#define _IFT_LineDistributedSpring_Name "linedistributedspring"
43#define _IFT_LineDistributedSpring_Dofs "dofs"
44#define _IFT_LineDistributedSpring_Stifnesses "k"
45
46namespace oofem {
47class FEI3dLineLin;
48class ParamKey;
49
60{
61protected:
65
68
69public:
70 LineDistributedSpring(int n, Domain * d);
72
73 FEInterpolation *giveInterpolation() const override;
75
76 MaterialMode giveMaterialMode() override { return _Unknown; }
77
78 // definition & identification
79 const char *giveInputRecordName() const override { return _IFT_LineDistributedSpring_Name; }
80 const char *giveClassName() const override { return "LineDistributedSpring"; }
81 Element_Geometry_Type giveGeometryType() const override {return EGT_line_1;}
82
83 void initializeFrom(InputRecord &ir, int priority) override;
84 void postInitialize() override;
85
86 int computeNumberOfDofs() override { return this->dofs.giveSize(); }
87 void giveDofManDofIDMask(int inode, IntArray &) const override;
88
89 double computeVolumeAround(GaussPoint *gp) override;
90
91 void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override;
92 void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
93 { computeLumpedMassMatrix(answer, tStep); }
95 TimeStep *tStep, int useUpdatedGpRecord) override;
96
97 int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override;
99 int checkConsistency() override;
100 void printOutputAt(FILE *File, TimeStep *tStep) override;
101
102protected:
103 void computeGaussPoints() override;
104 void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override;
105 void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS) override;
106
107 void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override;
108 void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override;
109
111 void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override;
114};
115} // end namespace oofem
116#endif // linedistributedspring_H
int numberOfGaussPoints
Definition element.h:175
int giveSize() const
Definition intarray.h:211
void postInitialize() override
Performs post initialization steps.
SPRPatchType SPRNodalRecoveryMI_givePatchType() override
void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep) override
void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep) override
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord) override
const char * giveInputRecordName() const override
Element_Geometry_Type giveGeometryType() const override
FEInterpolation * giveInterpolation() const override
void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap) override
void printOutputAt(FILE *File, TimeStep *tStep) override
void giveDofManDofIDMask(int inode, IntArray &) const override
void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap) override
static ParamKey IPK_LineDistributedSpring_Stiffnesses
Interface * giveInterface(InterfaceType it) override
void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS) override
int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep) override
void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep) override
const char * giveClassName() const override
double computeVolumeAround(GaussPoint *gp) override
void initializeFrom(InputRecord &ir, int priority) override
void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode) override
MaterialMode giveMaterialMode() override
StructuralElement(int n, Domain *d)
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_LineDistributedSpring_Name
#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