OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
brick1_ht.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 brick1_ht_h
36 #define brick1_ht_h
37 
38 #include "transportelement.h"
39 #include "spatiallocalizer.h"
40 #include "zznodalrecoverymodel.h"
41 #include "sprnodalrecoverymodel.h"
43 
44 #define _IFT_Brick1_ht_Name "brick1ht"
45 #define _IFT_Brick1_hmt_Name "brick1hmt"
46 #define _IFT_Brick1_mt_Name "brick1mt"
47 
48 namespace oofem {
49 class FEI3dHexaLin;
50 
55 {
56 protected:
58 
59 public:
60  Brick1_ht(int n, Domain * d);
61  virtual ~Brick1_ht();
62 
63  virtual double computeVolumeAround(GaussPoint *gp);
64  virtual FEInterpolation *giveInterpolation() const;
65 
66  // definition & identification
67  virtual const char *giveInputRecordName() const { return _IFT_Brick1_ht_Name; }
68  virtual const char *giveClassName() const { return "Brick1_ht"; }
69 
70  virtual int computeNumberOfDofs() { return 8; }
72  virtual MaterialMode giveMaterialMode() { return _3dHeat; }
73 
76  { return ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ); }
77 
79  virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap);
82 
83 
84 #ifdef __OOFEG
85  // Graphics output
86  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
87  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
88  //virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) {}
89  //virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) {}
90 #endif
91 
92 protected:
93  virtual void computeGaussPoints();
94  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
95  virtual IntegrationRule *GetSurfaceIntegrationRule(int approxOrder);
96  virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iEdge);
97 };
98 
102 class Brick1_hmt : public Brick1_ht
103 {
104 public:
105  Brick1_hmt(int n, Domain * d);
106 
107  virtual const char *giveInputRecordName() const { return _IFT_Brick1_hmt_Name; }
108  virtual const char *giveClassName() const { return "Brick1_hmt"; }
109  virtual int computeNumberOfDofs() { return 16; }
110  virtual MaterialMode giveMaterialMode() { return _3dHeMo; }
111 };
112 
116 class Brick1_mt : public Brick1_ht
117 {
118 public:
119  Brick1_mt(int n, Domain * d);
120 
121  virtual const char *giveInputRecordName() const { return _IFT_Brick1_mt_Name; }
122  virtual const char *giveClassName() const { return "Brick1_mt"; }
123  virtual int computeNumberOfDofs() { return 8; }
124  virtual MaterialMode giveMaterialMode() { return _3dHeat; }
125 };
126 } // end namespace oofem
127 #endif // brick1_ht_h
Class representing implementation of linear hexahedra interpolation class.
Definition: fei3dhexalin.h:44
The element interface required by ZZNodalRecoveryModel.
virtual const char * giveInputRecordName() const
Definition: brick1_ht.h:121
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: brick1_ht.C:147
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: brick1_ht.C:95
Class and object Domain.
Definition: domain.h:115
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: brick1_ht.C:84
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes the length around a integration point on a edge.
Definition: brick1_ht.C:117
virtual FEInterpolation * giveInterpolation() const
Definition: brick1_ht.C:81
The element interface required by ZZNodalRecoveryModel.
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
Definition: brick1_ht.C:198
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: brick1_ht.h:75
Brick (3d) elements with linear approximation for heat and mass transfer.
Definition: brick1_ht.h:54
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: brick1_ht.C:233
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: brick1_ht.h:70
Abstract base class representing integration rule.
virtual const char * giveClassName() const
Definition: brick1_ht.h:68
virtual const char * giveInputRecordName() const
Definition: brick1_ht.h:107
Element extension for surface loads.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: brick1_ht.C:103
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual const char * giveClassName() const
Definition: brick1_ht.h:122
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: brick1_ht.h:110
ElementExtension
Type representing element extension.
Class for mass transfer.
Definition: brick1_ht.h:116
This abstract class represent a general base element class for transport problems.
virtual ~Brick1_ht()
Definition: brick1_ht.C:77
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: brick1_ht.h:124
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: brick1_ht.h:123
virtual IntegrationRule * GetSurfaceIntegrationRule(int approxOrder)
Definition: brick1_ht.C:126
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: brick1_ht.h:109
#define _IFT_Brick1_ht_Name
Definition: brick1_ht.h:44
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: brick1_ht.h:72
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual const char * giveInputRecordName() const
Definition: brick1_ht.h:67
Class Interface.
Definition: interface.h:82
virtual const char * giveClassName() const
Definition: brick1_ht.h:108
virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iEdge)
Definition: brick1_ht.C:136
Class for heat and mass transfer.
Definition: brick1_ht.h:102
The spatial localizer element interface associated to spatial localizer.
#define _IFT_Brick1_hmt_Name
Definition: brick1_ht.h:45
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
Definition: brick1_ht.C:172
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
Definition: brick1_ht.C:163
static FEI3dHexaLin interpolation
Definition: brick1_ht.h:57
#define _IFT_Brick1_mt_Name
Definition: brick1_ht.h:46
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: brick1_ht.C:205
virtual int SPRNodalRecoveryMI_giveNumberOfIP()
Definition: brick1_ht.C:191
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
Brick1_ht(int n, Domain *d)
Definition: brick1_ht.C:61
Element extension for edge loads.

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