OOFEM 3.0
Loading...
Searching...
No Matches
wedge_ht.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 - 2025 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
37#include "fei3dwedgelin.h"
38#include "node.h"
39#include "gausspoint.h"
41#include "floatmatrix.h"
42#include "floatarray.h"
43#include "intarray.h"
44#include "mathfem.h"
45#include "load.h"
46#include "crosssection.h"
47#include "classfactory.h"
48
49
50namespace oofem {
52
53FEI3dWedgeLin Wedge_ht :: interpolation;
54
56{
58}
59
60Wedge_hmt :: Wedge_hmt(int n, Domain *aDomain) : Wedge_ht(n, aDomain)
61{
63}
64
65Wedge_mt :: Wedge_mt(int n, Domain *aDomain) : Wedge_ht(n, aDomain)
66{
68}
69
70
71void
72Wedge_ht :: initializeFrom(InputRecord &ir, int priority)
73{
75 TransportElement :: initializeFrom(ir, priority);
76
77}
78
79
80void
81Wedge_ht :: computeGaussPoints()
82{
83 if ( integrationRulesArray.size() == 0 ) {
84 integrationRulesArray.resize( 1 );
85 integrationRulesArray [ 0 ] = std::make_unique<GaussIntegrationRule>(1, this, 1, 2);
86 this->giveCrossSection()->setupIntegrationPoints(* integrationRulesArray [ 0 ], numberOfGaussPoints, this);
87 }
88}
89
90
91 double
92Wedge_ht :: computeVolumeAround(GaussPoint *gp)
93{
94 double determinant = fabs( this->interpolation.giveTransformationJacobian( gp->giveNaturalCoordinates(),
96
97 double weight = gp->giveWeight();
98 return determinant * weight;
99}
100
101
102
103double
104Wedge_ht :: computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
105{
106 double result = this->interpolation.edgeGiveTransformationJacobian( iEdge, gp->giveNaturalCoordinates(),
108 return result * gp->giveWeight();
109}
110
111
112FEInterpolation * Wedge_ht :: giveInterpolation() const { return & interpolation; }
113
114
115
116
117
118Interface *
119Wedge_ht :: giveInterface(InterfaceType interface)
120{
121 if ( interface == ZZNodalRecoveryModelInterfaceType ) {
122 return static_cast< ZZNodalRecoveryModelInterface * >(this);
123 } else if ( interface == SPRNodalRecoveryModelInterfaceType ) {
124 return static_cast< SPRNodalRecoveryModelInterface * >(this);
125 } else if ( interface == NodalAveragingRecoveryModelInterfaceType ) {
126 return static_cast< NodalAveragingRecoveryModelInterface * >(this);
127 } else if ( interface == SpatialLocalizerInterfaceType ) {
128 return static_cast< SpatialLocalizerInterface * >(this);
129 }
130
131 OOFEM_LOG_INFO("Interface on Lwedge element not supported");
132 return nullptr;
133}
134
135void
136Wedge_ht :: SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)
137{
138 pap.resize(6);
139 for ( int i = 1; i <= 6; i++ ) {
140 pap.at(i) = this->giveNode(i)->giveNumber();
141 }
142}
143
144void
145Wedge_ht :: SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)
146{
147 int found = 0;
148 answer.resize(1);
149
150 for ( int i = 1; i <= 6; i++ ) {
151 if ( this->giveNode(i)->giveNumber() == pap ) {
152 found = 1;
153 }
154 }
155
156 if ( found ) {
157 answer.at(1) = pap;
158 } else {
159 OOFEM_ERROR("unknown node number %d", pap);
160 }
161}
162
163int
164Wedge_ht :: SPRNodalRecoveryMI_giveNumberOfIP()
165{
166 return numberOfGaussPoints;
167}
168
169
171Wedge_ht :: SPRNodalRecoveryMI_givePatchType()
172{
174}
175
176
177void
178Wedge_ht :: NodalAveragingRecoveryMI_computeNodalValue(FloatArray &answer, int node, InternalStateType type, TimeStep *tStep)
179{
180 answer.clear();
181 OOFEM_WARNING("IP values will not be transferred to nodes. Use ZZNodalRecovery instead (parameter stype 1)");
182}
183
184} // end namespace oofem
#define REGISTER_Element(class)
Node * giveNode(int i) const
Definition element.h:629
int numberOfDofMans
Number of dofmanagers.
Definition element.h:136
std::vector< std ::unique_ptr< IntegrationRule > > integrationRulesArray
Definition element.h:157
int numberOfGaussPoints
Definition element.h:175
CrossSection * giveCrossSection()
Definition element.C:534
int giveNumber() const
Definition femcmpnn.h:104
const FloatArray & giveNaturalCoordinates() const
Returns coordinate array of receiver.
Definition gausspoint.h:138
double giveWeight()
Returns integration weight of receiver.
Definition gausspoint.h:180
void resize(int n)
Definition intarray.C:73
int & at(std::size_t i)
Definition intarray.h:104
SpatialLocalizerInterface(Element *element)
TransportElement(int n, Domain *d, ElementMode em=HeatTransferEM)
Wedge_ht(int, Domain *)
Definition wedge_ht.C:55
static FEI3dWedgeLin interpolation
Definition wedge_ht.h:57
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define OOFEM_WARNING(...)
Definition error.h:80
#define OOFEM_ERROR(...)
Definition error.h:79
#define OOFEM_LOG_INFO(...)
Definition logger.h:143
@ SPRNodalRecoveryModelInterfaceType
@ ZZNodalRecoveryModelInterfaceType
@ SpatialLocalizerInterfaceType
@ NodalAveragingRecoveryModelInterfaceType

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011