OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
qwedgegrad.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 "../sm/Elements/3D/qwedgegrad.h"
36 #include "../sm/Materials/structuralms.h"
37 #include "../sm/CrossSections/structuralcrosssection.h"
38 #include "fei3dwedgelin.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(QWedgeGrad);
55 
57 
58 QWedgeGrad :: QWedgeGrad(int n, Domain *aDomain) : QWedge(n, aDomain), GradDpElement()
59  // Constructor.
60 {
61  nPrimNodes = 15;
62  nPrimVars = 3;
63  nSecNodes = 6;
64  nSecVars = 1;
68 }
69 
70 
73 {
76 }
77 
78 
79 void
81 // returns DofId mask array for inode element node.
82 // DofId mask array determines the dof ordering requsted from node.
83 // DofId mask array contains the DofID constants (defined in cltypes.h)
84 // describing physical meaning of particular DOFs.
85 {
86  if ( inode <= 6 ) {
87  answer = {D_u, D_v, D_w, G_0};
88  } else {
89  answer = {D_u, D_v, D_w};
90  }
91 }
92 
93 void
95 // Sets up the array containing the four Gauss points of the receiver.
96 {
97  integrationRulesArray.resize(1);
98  integrationRulesArray [ 0 ].reset( new GaussIntegrationRule(1, this, 1, 7) );
100 }
101 
102 
103 void
105 {
107 }
108 
109 void
111 {
114  answer.beTranspositionOf(dnx);
115 }
116 
117 }
CrossSection * giveCrossSection()
Definition: element.C:495
Class and object Domain.
Definition: domain.h:115
QWedgeGrad(int, Domain *)
Definition: qwedgegrad.C:58
static FEI3dWedgeLin interpolation_lin
Definition: qwedgegrad.h:53
virtual void computeNkappaMatrixAt(GaussPoint *gp, FloatArray &answer)
Definition: qwedgegrad.C:104
Class implementing an array of integers.
Definition: intarray.h:61
Abstract class for gradient formulation of coupled damage-plasticity model(GradDp).
Definition: graddpelement.h:48
REGISTER_Element(LSpace)
virtual void computeBkappaMatrixAt(GaussPoint *gp, FloatMatrix &answer)
Definition: qwedgegrad.C:110
Wrapper around element definition to provide FEICellGeometry interface.
Definition: feinterpol.h:95
virtual int setupIntegrationPoints(IntegrationRule &irule, int npoints, Element *element)
Sets up integration rule for the given element.
Definition: crosssection.C:54
int numberOfGaussPoints
Number of integration points as specified by nip.
Definition: element.h:188
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
double dnx(int i, int arg2)
Class representing the general Input Record.
Definition: inputrecord.h:101
void beTranspositionOf(const FloatMatrix &src)
Assigns to the receiver the transposition of parameter.
Definition: floatmatrix.C:323
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
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: qwedgegrad.C:72
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: qwedgegrad.C:94
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual double evaldNdx(FloatMatrix &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the matrix of derivatives of interpolation functions (shape functions) at given point...
Definition: fei3dwedgelin.C:62
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: qwedgegrad.C:80
virtual void evalN(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the array of interpolation functions (shape functions) at given point.
Definition: fei3dwedgelin.C:43
This class implements an Quadratic 3d 15 - node structural finite element.
Definition: qwedge.h:55
const FloatArray & giveNaturalCoordinates()
Returns coordinate array of receiver.
Definition: gausspoint.h:138
Class representing Gaussian-quadrature integration rule.

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