OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qwedge.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 #include "Elements/3D/qwedge.h"
36 #include "Materials/structuralms.h"
38 #include "fei3dwedgequad.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 "classfactory.h"
50 
51 #include <cstdio>
52 
53 namespace oofem {
54 REGISTER_Element(QWedge);
55 
56 FEI3dWedgeQuad QWedge :: interpolation;
57 
59 {
60  numberOfDofMans = 15;
61 }
62 
63 
66 {
68 
70 }
71 
74 {
75  return & interpolation;
76 }
77 
78 
79 Interface *
81 {
82  if ( interface == ZZNodalRecoveryModelInterfaceType ) {
83  return static_cast< ZZNodalRecoveryModelInterface * >(this);
84  } else if ( interface == SPRNodalRecoveryModelInterfaceType ) {
85  return static_cast< SPRNodalRecoveryModelInterface * >(this);
86  } else if ( interface == NodalAveragingRecoveryModelInterfaceType ) {
87  return static_cast< NodalAveragingRecoveryModelInterface * >(this);
88  }
89 
90  OOFEM_LOG_INFO("Interface on QWedge element not supported");
91  return NULL;
92 }
93 
94 void
96 {
97  pap.resize(20);
98  for ( int i = 1; i <= 20; i++ ) {
99  pap.at(i) = this->giveNode(i)->giveNumber();
100  }
101 }
102 
103 void
105 {
106  int found = 0;
107  answer.resize(1);
108 
109  for ( int i = 1; i <= 20; i++ ) {
110  if ( this->giveNode(i)->giveNumber() == pap ) {
111  found = 1;
112  }
113  }
114 
115  if ( found ) {
116  answer.at(1) = pap;
117  } else {
118  OOFEM_ERROR("unknown node number %d", pap);
119  }
120 }
121 
122 int
124 {
125  return integrationRulesArray [ 0 ]->giveNumberOfIntegrationPoints();
126 }
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.
virtual void NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
Computes the element value in given node.
Definition: qwedge.C:137
The element interface required by ZZNodalRecoveryModel.
Class and object Domain.
Definition: domain.h:115
The element interface required by ZZNodalRecoveryModel.
void clear()
Clears receiver (zero size).
Definition: floatarray.h:206
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
Definition: qwedge.C:80
virtual FEInterpolation * giveInterpolation() const
Definition: qwedge.C:73
Class implementing an array of integers.
Definition: intarray.h:61
int & at(int i)
Coefficient access function.
Definition: intarray.h:103
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: qwedge.C:65
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)
void resize(int n)
Checks size of receiver towards requested bounds.
Definition: intarray.C:124
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()
Definition: qwedge.C:130
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
Definition: qwedge.C:95
int numberOfGaussPoints
Number of integration points as specified by nip.
Definition: element.h:188
static FEI3dWedgeQuad interpolation
Definition: qwedge.h:59
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
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
Definition: qwedge.C:104
Class Interface.
Definition: interface.h:82
Base class 3D elements.
std::vector< std::unique_ptr< IntegrationRule > > integrationRulesArray
List of integration rules of receiver (each integration rule contains associated integration points a...
Definition: element.h:170
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual int SPRNodalRecoveryMI_giveNumberOfIP()
Definition: qwedge.C:123
the oofem namespace is to define a context or scope in which all oofem names are defined.
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
QWedge(int, Domain *)
Definition: qwedge.C:58

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