OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
tetrah1_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 tetrah1_ht_h
36 #define tetrah1_ht_h
37 
38 #include "transportelement.h"
39 #include "spatiallocalizer.h"
40 #include "zznodalrecoverymodel.h"
41 
42 #define _IFT_Tetrah1_ht_Name "tetrah1ht"
43 #define _IFT_Tetrah1_hmt_Name "tetrah1hmt"
44 
45 namespace oofem {
46 class FEI3dTetLin;
47 
52 {
53 protected:
55 
56 public:
57  Tetrah1_ht(int n, Domain * d);
58  virtual ~Tetrah1_ht();
59 
60  virtual FEInterpolation *giveInterpolation() const;
61 
62  virtual double computeVolumeAround(GaussPoint *gp);
63 
64  // definition
65  virtual const char *giveInputRecordName() const { return _IFT_Tetrah1_ht_Name; }
66  virtual const char *giveClassName() const { return "Tetrah1_ht"; }
67 
68  virtual int computeNumberOfDofs() { return ( emode == HeatTransferEM ) ? 4 : 8; }
70  virtual MaterialMode giveMaterialMode() { return _3dHeat; }
71 
74  { return ( ( ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ) ) ? 1 : 0 ); }
75 
76 #ifdef __OOFEG
77  // Graphics output
78  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
79  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
80  //virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) {}
81  //virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) {}
82 #endif
83 
84 protected:
85  virtual void computeGaussPoints();
86  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
87  virtual IntegrationRule *GetSurfaceIntegrationRule(int approxOrder);
88  virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iEdge);
89 };
90 
91 class Tetrah1_hmt : public Tetrah1_ht
92 {
93 public:
94  Tetrah1_hmt(int n, Domain * d);
95 
96  virtual const char *giveInputRecordName() const { return _IFT_Tetrah1_hmt_Name; }
97  virtual const char *giveClassName() const { return "Tetrah1_hmt"; }
98  virtual MaterialMode giveMaterialMode() { return _3dHeMo; }
99 };
100 } // end namespace oofem
101 #endif // tetrah1_ht_h
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tetrah1_ht.h:70
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: tetrah1_ht.h:68
Class and object Domain.
Definition: domain.h:115
The element interface required by ZZNodalRecoveryModel.
Class representing implementation of linear tetrahedra interpolation class.
Definition: fei3dtetlin.h:44
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
Definition: tetrah1_ht.h:73
virtual const char * giveInputRecordName() const
Definition: tetrah1_ht.h:65
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Tetrahedral (3d) element with linear approximation for heat and mass transfer.
Definition: tetrah1_ht.h:51
virtual double computeSurfaceVolumeAround(GaussPoint *gp, int iEdge)
Definition: tetrah1_ht.C:133
virtual const char * giveClassName() const
Definition: tetrah1_ht.h:66
virtual const char * giveInputRecordName() const
Definition: tetrah1_ht.h:96
Abstract base class representing integration rule.
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: tetrah1_ht.C:144
Element extension for surface loads.
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
static FEI3dTetLin interpolation
Definition: tetrah1_ht.h:54
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes the length around a integration point on a edge.
Definition: tetrah1_ht.C:114
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: tetrah1_ht.C:80
#define _IFT_Tetrah1_hmt_Name
Definition: tetrah1_ht.h:43
ElementExtension
Type representing element extension.
virtual IntegrationRule * GetSurfaceIntegrationRule(int approxOrder)
Definition: tetrah1_ht.C:123
This abstract class represent a general base element class for transport problems.
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: tetrah1_ht.C:198
Tetrah1_ht(int n, Domain *d)
Definition: tetrah1_ht.C:57
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tetrah1_ht.h:98
virtual FEInterpolation * giveInterpolation() const
Definition: tetrah1_ht.C:73
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: tetrah1_ht.C:92
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
#define _IFT_Tetrah1_ht_Name
Definition: tetrah1_ht.h:42
virtual ~Tetrah1_ht()
Definition: tetrah1_ht.C:68
The spatial localizer element interface associated to spatial localizer.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: tetrah1_ht.C:100
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
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: tetrah1_ht.C:162
virtual const char * giveClassName() const
Definition: tetrah1_ht.h:97
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
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:31 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011