OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qtruss1d.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 qtruss1d_h
36 #define qtruss1d_h
37 
38 #include "../sm/Elements/nlstructuralelement.h"
39 
40 #define _IFT_QTruss1d_Name "qtruss1d"
41 
42 namespace oofem {
43 class FEI1dQuad;
44 
50 {
51 protected:
53 
54 public:
55  QTruss1d(int n, Domain * d);
56  virtual ~QTruss1d() { }
57 
59 
60  virtual int computeNumberOfDofs() { return 3; }
61  virtual void giveDofManDofIDMask(int inode, IntArray &) const;
62 
63  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
64  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
65 
66  virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
67  { return this->computeLength(); }
68 
69  virtual double computeVolumeAround(GaussPoint *gp);
70 
71  virtual int testElementExtension(ElementExtension ext) { return 0; }
72 
73  // definition & identification
74  virtual const char *giveInputRecordName() const { return _IFT_QTruss1d_Name; }
75  virtual const char *giveClassName() const { return "QTruss1d"; }
76 
77  virtual MaterialMode giveMaterialMode() { return _1dMat; }
78  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
79 
80 protected:
81  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS);
82  virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer);
83  virtual void computeGaussPoints();
84 
85 };
86 } // end namespace oofem
87 #endif // truss1d_h
virtual const char * giveClassName() const
Definition: qtruss1d.h:75
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: qtruss1d.h:77
virtual ~QTruss1d()
Definition: qtruss1d.h:56
Class and object Domain.
Definition: domain.h:115
virtual double computeLength()
Computes the length (zero for all but 1D geometries)
Definition: element.C:1129
Abstract base class for "structural" finite elements with geometrical nonlinearities.
Class representing a 1d linear isoparametric interpolation.
Definition: fei1dquad.h:44
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
Definition: qtruss1d.C:115
virtual void giveDofManDofIDMask(int inode, IntArray &) const
Returns dofmanager dof mask for node.
Definition: qtruss1d.C:69
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: qtruss1d.h:71
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: qtruss1d.h:60
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
virtual void computeBHmatrixAt(GaussPoint *gp, FloatMatrix &answer)
Computes a matrix which, multiplied by the column matrix of nodal displacements, gives the displaceme...
Definition: qtruss1d.C:121
MatResponseMode
Describes the character of characteristic material matrix.
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: qtruss1d.C:75
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: qtruss1d.C:94
#define _IFT_QTruss1d_Name
Definition: qtruss1d.h:40
ElementExtension
Type representing element extension.
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.
Definition: qtruss1d.C:82
static FEI1dQuad interpolation
Definition: qtruss1d.h:52
#define ALL_STRAINS
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual double giveCharacteristicLength(const FloatArray &normalToCrackPlane)
Returns the size of element in the given direction, in some cases adjusted (e.g.
Definition: qtruss1d.h:66
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
QTruss1d(int n, Domain *d)
Definition: qtruss1d.C:56
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: qtruss1d.C:104
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 IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: qtruss1d.C:63
virtual const char * giveInputRecordName() const
Definition: qtruss1d.h:74
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: qtruss1d.C:88
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

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