OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
quad1_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 quad1_ht_h
36 #define quad1_ht_h
37 
38 #include "transportelement.h"
39 #include "spatiallocalizer.h"
40 #include "zznodalrecoverymodel.h"
41 
42 #define _IFT_Quad1_ht_Name "quad1ht"
43 #define _IFT_Quad1_hmt_Name "quad1hmt"
44 #define _IFT_Quad1_mt_Name "quad1mt"
45 
46 namespace oofem {
47 class FEI2dQuadLin;
48 
53 {
54 protected:
56 
57 public:
58  Quad1_ht(int n, Domain * d);
59  virtual ~Quad1_ht();
60 
61  virtual FEInterpolation *giveInterpolation() const;
62  virtual double computeVolumeAround(GaussPoint *gp);
63 
64  virtual const char *giveInputRecordName() const { return _IFT_Quad1_ht_Name; }
65  virtual const char *giveClassName() const { return "Quad1_ht"; }
66 
67  // virtual int computeNumberOfDofs() { return ( emode == HeatTransferEM ) ? 4 : 8; }
68  virtual int computeNumberOfDofs() { return 4; }
70  virtual MaterialMode giveMaterialMode() { return _2dHeat; }
71  virtual double giveThicknessAt(const FloatArray &gcoords);
72 
74 
75 #ifdef __OOFEG
76  // Graphics output
77  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
78  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
79  //virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) {}
80  //virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) {}
81 #endif
82 
83 protected:
84  virtual void computeGaussPoints();
85  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
86 };
87 
91 class Quad1_hmt : public Quad1_ht
92 {
93 public:
94  Quad1_hmt(int n, Domain * d);
95 
96  virtual const char *giveInputRecordName() const { return _IFT_Quad1_hmt_Name; }
97  virtual const char *giveClassName() const { return "Quad1_hmt"; }
98  virtual int computeNumberOfDofs() { return 8; }
99  virtual MaterialMode giveMaterialMode() { return _2dHeMo; }
100 };
101 
105 class Quad1_mt : public Quad1_ht
106 {
107 public:
108  Quad1_mt(int n, Domain * d);
109 
110  virtual const char *giveInputRecordName() const { return _IFT_Quad1_mt_Name; }
111  virtual const char *giveClassName() const { return "Quad1_mt"; }
112  virtual int computeNumberOfDofs() { return 4; }
113  virtual MaterialMode giveMaterialMode() { return _2dHeat; }
114 };
115 } // end namespace oofem
116 #endif // quad1_ht_h
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: quad1_ht.h:99
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: quad1_ht.C:136
Class and object Domain.
Definition: domain.h:115
The element interface required by ZZNodalRecoveryModel.
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes the length around a integration point on a edge.
Definition: quad1_ht.C:122
virtual double giveThicknessAt(const FloatArray &gcoords)
Gives the thickness at some global coordinate.
Definition: quad1_ht.C:115
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define _IFT_Quad1_hmt_Name
Definition: quad1_ht.h:43
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: quad1_ht.h:68
static FEI2dQuadLin interpolation
Definition: quad1_ht.h:55
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: quad1_ht.h:112
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: quad1_ht.C:185
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual FEInterpolation * giveInterpolation() const
Definition: quad1_ht.C:78
Quad1_ht(int n, Domain *d)
Definition: quad1_ht.C:58
virtual const char * giveClassName() const
Definition: quad1_ht.h:65
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: quad1_ht.h:113
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: quad1_ht.C:100
#define _IFT_Quad1_ht_Name
Definition: quad1_ht.h:42
This abstract class represent a general base element class for transport problems.
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: quad1_ht.C:81
#define _IFT_Quad1_mt_Name
Definition: quad1_ht.h:44
Quadratic (2d) element with linear approximation for heat transfer.
Definition: quad1_ht.h:52
virtual ~Quad1_ht()
Definition: quad1_ht.C:74
Class representing vector of real numbers.
Definition: floatarray.h:82
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: quad1_ht.h:98
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
Class for mass transfer.
Definition: quad1_ht.h:105
virtual const char * giveInputRecordName() const
Definition: quad1_ht.h:64
virtual const char * giveClassName() const
Definition: quad1_ht.h:111
The spatial localizer element interface associated to spatial localizer.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: quad1_ht.C:92
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: quad1_ht.h:70
virtual const char * giveInputRecordName() const
Definition: quad1_ht.h:110
Class representing a 2d isoparametric linear interpolation based on natural coordinates for quadrilat...
Definition: fei2dquadlin.h:45
virtual const char * giveClassName() const
Definition: quad1_ht.h:97
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: quad1_ht.C:151
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
Definition: quad1_ht.h:96
Class for heat and mass transfer.
Definition: quad1_ht.h:91
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