OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qtruss1dgrad.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 - 2013 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 qtruss1dgrad_h
36 #define qtruss1dgrad_h
37 
38 #include "../sm/Elements/Bars/qtruss1d.h"
39 #include "../sm/Elements/graddpelement.h"
40 
41 #define _IFT_QTruss1dGrad_Name "qtruss1dgrad"
42 
43 namespace oofem {
44 class FEI1dLin;
45 
50 class QTruss1dGrad : public QTruss1d, public GradDpElement
51 {
52 protected:
54 
55 public:
56  QTruss1dGrad(int n, Domain * d);
57  virtual ~QTruss1dGrad() { }
58 
59  virtual const char *giveInputRecordName() const { return _IFT_QTruss1dGrad_Name; }
60  virtual const char *giveClassName() const { return "QTruss1dGrad"; }
61 
62  virtual MaterialMode giveMaterialMode() { return _1dMat; }
64  virtual int computeNumberOfDofs() { return 5; }
65 
66  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
67 
68 protected:
69  virtual void computeBkappaMatrixAt(GaussPoint *gp, FloatMatrix &answer);
70  virtual void computeNkappaMatrixAt(GaussPoint *gp, FloatArray &answer);
71  virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep);
72  virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer);
73  virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord = 0);
74  virtual void computeGaussPoints();
75  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
76  virtual StructuralElement *giveStructuralElement() { return this; }
77  virtual NLStructuralElement *giveNLStructuralElement() { return this; }
78 };
79 } // end namespace oofem
80 #endif // truss1d_h
virtual void computeField(ValueModeType mode, TimeStep *tStep, const FloatArray &lcoords, FloatArray &answer)
Computes the unknown vector interpolated at the specified local coordinates.
Definition: qtruss1dgrad.C:131
virtual void computeNkappaMatrixAt(GaussPoint *gp, FloatArray &answer)
Definition: qtruss1dgrad.C:117
Class and object Domain.
Definition: domain.h:115
Abstract base class for "structural" finite elements with geometrical nonlinearities.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual const char * giveInputRecordName() const
Definition: qtruss1dgrad.h:59
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual NLStructuralElement * giveNLStructuralElement()
Definition: qtruss1dgrad.h:77
Abstract class for gradient formulation of coupled damage-plasticity model(GradDp).
Definition: graddpelement.h:48
virtual const char * giveClassName() const
Definition: qtruss1dgrad.h:60
Abstract base class for all "structural" finite elements.
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: qtruss1dgrad.C:69
virtual void computeBkappaMatrixAt(GaussPoint *gp, FloatMatrix &answer)
Definition: qtruss1dgrad.C:124
This class implements a three-node gradient truss bar element for one-dimensional analysis...
Definition: qtruss1dgrad.h:50
virtual StructuralElement * giveStructuralElement()
Definition: qtruss1dgrad.h:76
virtual void computeStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, TimeStep *tStep)
Computes the stiffness matrix of receiver.
Definition: qtruss1dgrad.C:103
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: qtruss1dgrad.h:62
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: qtruss1dgrad.h:64
#define _IFT_QTruss1dGrad_Name
Definition: qtruss1dgrad.h:41
Class representing a 1d linear isoparametric interpolation.
Definition: fei1dlin.h:44
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: qtruss1dgrad.C:94
This class implements a three-node truss bar element for one-dimensional analysis.
Definition: qtruss1d.h:49
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void giveInternalForcesVector(FloatArray &answer, TimeStep *tStep, int useUpdatedGpRecord=0)
Evaluates nodal representation of real internal forces.
Definition: qtruss1dgrad.C:110
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: qtruss1dgrad.C:87
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: qtruss1dgrad.C:80
virtual ~QTruss1dGrad()
Definition: qtruss1dgrad.h:57
static FEI1dLin interpolation_lin
Definition: qtruss1dgrad.h:53
QTruss1dGrad(int n, Domain *d)
Definition: qtruss1dgrad.C:55

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:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011