OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qtrspace.C
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 
36 #include "Elements/3D/qtrspace.h"
37 #include "Materials/structuralms.h"
39 #include "node.h"
40 #include "material.h"
41 #include "gausspoint.h"
42 #include "gaussintegrationrule.h"
43 #include "floatmatrix.h"
44 #include "floatarray.h"
45 #include "intarray.h"
46 #include "domain.h"
47 #include "cltypes.h"
48 #include "mathfem.h"
49 #include "fei3dtetquad.h"
50 #include "classfactory.h"
51 
52 #include <cstdio>
53 
54 namespace oofem {
55 REGISTER_Element(QTRSpace);
56 
57 FEI3dTetQuad QTRSpace :: interpolation;
58 
60 {
61  numberOfDofMans = 10;
62 }
63 
64 
67 {
70 }
71 
72 
75 {
76  return & interpolation;
77 }
78 
79 
80 Interface *
82 {
83  if ( interface == ZZNodalRecoveryModelInterfaceType ) {
84  return static_cast< ZZNodalRecoveryModelInterface * >(this);
85  } else if ( interface == SPRNodalRecoveryModelInterfaceType ) {
86  return static_cast< SPRNodalRecoveryModelInterface * >(this);
87  } else if ( interface == NodalAveragingRecoveryModelInterfaceType ) {
88  return static_cast< NodalAveragingRecoveryModelInterface * >(this);
89  }
90 
91  OOFEM_LOG_INFO("Interface on QTRSpace element not supported");
92  return NULL;
93 }
94 
95 void
97 {
98  pap.resize(10);
99  for ( int i = 1; i <= 10; i++ ) {
100  pap.at(i) = this->giveNode(i)->giveNumber();
101  }
102 }
103 
104 void
106 {
107  int found = 0;
108  answer.resize(1);
109 
110  for ( int i = 1; i <= 10; i++ ) {
111  if ( this->giveNode(i)->giveNumber() == pap ) {
112  found = 1;
113  }
114  }
115 
116  if ( found ) {
117  answer.at(1) = pap;
118  } else {
119  OOFEM_ERROR("unknown node number %d", pap);
120  }
121 }
122 
123 int
125 {
126  return numberOfGaussPoints;
127 }
128 
131 {
133 }
134 
135 
136 void
138 {
139  answer.clear();
140  OOFEM_WARNING("IP values will not be transferred to nodes. Use ZZNodalRecovery instead (parameter stype 1)");
141 }
142 
143 } // end namespace oofem
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
The element interface required by NodalAvergagingRecoveryModel.
The element interface required by ZZNodalRecoveryModel.
Class and object Domain.
Definition: domain.h:115
The element interface required by ZZNodalRecoveryModel.
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
Definition: qtrspace.C:96
void clear()
Clears receiver (zero size).
Definition: floatarray.h:206
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: qtrspace.C:66
Class implementing an array of integers.
Definition: intarray.h:61
int & at(int i)
Coefficient access function.
Definition: intarray.h:103
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: qtrspace.C:137
QTRSpace(int, Domain *)
Definition: qtrspace.C:59
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
#define OOFEM_LOG_INFO(...)
Definition: logger.h:127
#define OOFEM_ERROR(...)
Definition: error.h:61
REGISTER_Element(LSpace)
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
Definition: qtrspace.C:130
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
Definition: qtrspace.C:105
void resize(int n)
Checks size of receiver towards requested bounds.
Definition: intarray.C:124
virtual int SPRNodalRecoveryMI_giveNumberOfIP()
Definition: qtrspace.C:124
int numberOfGaussPoints
Number of integration points as specified by nip.
Definition: element.h:188
Class representing vector of real numbers.
Definition: floatarray.h:82
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
Base class 3D elements.
static FEI3dTetQuad interpolation
Definition: qtrspace.h:64
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual FEInterpolation * giveInterpolation() const
Definition: qtrspace.C:74
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
Definition: qtrspace.C:81
int giveNumber() const
Definition: femcmpnn.h:107
Node * giveNode(int i) const
Returns reference to the i-th node of element.
Definition: element.h:610
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
#define OOFEM_WARNING(...)
Definition: error.h:62
Class representing solution step.
Definition: timestep.h:80
int numberOfDofMans
Number of dofmanagers.
Definition: element.h:149

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