OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2014 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 
38 #include "../sm/Elements/structuralelement.h"
39 #include "zznodalrecoverymodel.h"
40 #include "sprnodalrecoverymodel.h"
41 
42 #define _IFT_LineDistributedSpring_Name "linedistributedspring"
43 #define _IFT_LineDistributedSpring_Dofs "dofs"
44 #define _IFT_LineDistributedSpring_Stifnesses "k"
45 
46 namespace oofem {
47 class FEI3dLineLin;
48 
59 {
60 protected:
64 
65 public:
66  LineDistributedSpring(int n, Domain * d);
67  virtual ~LineDistributedSpring() { }
68 
69  virtual FEInterpolation *giveInterpolation() const;
70  virtual FEInterpolation *giveInterpolation(DofIDItem id) const;
71 
72  virtual MaterialMode giveMaterialMode() { return _Unknown; }
73 
74  // definition & identification
75  virtual const char *giveInputRecordName() const { return _IFT_LineDistributedSpring_Name; }
76  virtual const char *giveClassName() const { return "LineDistributedSpring"; }
78 
79  virtual int computeNumberOfDofs() { return this->dofs.giveSize(); }
80  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
81 
82  virtual double computeVolumeAround(GaussPoint *gp);
83 
84  virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep);
85  virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
86  { computeLumpedMassMatrix(answer, tStep); }
88  TimeStep *tStep, int useUpdatedGpRecord);
89 
90  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
92  int checkConsistency();
93  void printOutputAt(FILE *File, TimeStep *tStep);
94 
95 protected:
96  virtual void computeGaussPoints();
97  virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode);
98  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS);
99 
100  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
101  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
102 
104  virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap);
107 };
108 } // end namespace oofem
109 #endif // linedistributedspring_H
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by ZZNodalRecoveryModel.
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in full form.
Class and object Domain.
Definition: domain.h:115
int checkConsistency()
Performs consistency check.
The element interface required by ZZNodalRecoveryModel.
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes mass matrix of receiver.
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the stress vector of receiver at given integration point, at time step tStep.
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Abstract base class for all "structural" finite elements.
virtual const char * giveClassName() const
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
This class implements two-node subsoil element with linear interpolation.
DofIDItem
Type representing particular dof type.
Definition: dofiditem.h:86
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord)
Returns equivalent nodal forces vectors.
Class representing a linear line interpolation in 3D.
Definition: fei3dlinelin.h:44
#define ALL_STRAINS
int numberOfGaussPoints
Number of integration points as specified by nip.
Definition: element.h:188
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
#define _IFT_LineDistributedSpring_Name
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual FEInterpolation * giveInterpolation() const
virtual const char * giveInputRecordName() const
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
virtual void computeBodyLoadVectorAt(FloatArray &answer, Load *load, TimeStep *tStep, ValueModeType mode)
Computes the load vector due to body load acting on receiver, at given time step. ...
void printOutputAt(FILE *File, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
Load is base abstract class for all loads.
Definition: load.h:61
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
int giveSize() const
Definition: intarray.h:203
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Class representing solution step.
Definition: timestep.h:80
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011