OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
elementside.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 "elementside.h"
36 #include "dof.h"
37 #include "floatmatrix.h"
38 #include "intarray.h"
39 #include "verbose.h"
40 #include "classfactory.h"
41 
42 namespace oofem {
43 REGISTER_DofManager(ElementSide);
44 
46  DofManager(n, aDomain)
47 { }
48 
49 
51 { }
52 
53 
55 // Gets from the source line from the data file all the data of the receiver.
56 {
57 # ifdef VERBOSE
58  // VERBOSE_PRINT1("Instanciating node ",number)
59 # endif
60 
62 }
63 
64 
66 // Prints the receiver on screen.
67 {
68  printf("Element side %d \n", number);
69  for ( Dof *dof: *this ) {
70  dof->printYourself();
71  }
72 
74  printf("\n");
75 }
76 
77 
79 {
80  //
81 
82  // computes transformation of receiver from global cs to nodal (user-defined) cs.
83  // Note: implementation rely on D_u, D_v and D_w (R_u, R_v, R_w) order in cltypes.h
84  // file. Do not change their order and do not insert any values between these values.
85  //
86  //
87 
88  int size;
89 
90  if ( map == NULL ) {
91  size = this->giveNumberOfDofs();
92  } else {
93  size = map->giveSize();
94  }
95 
96  // response for all local dofs is computed
97 
98  answer.resize(size, size);
99  answer.zero();
100  answer.beUnitMatrix();
101 }
102 } // end namespace oofem
int number
Component number.
Definition: femcmpnn.h:80
void printYourself() const
Prints receiver on stdout.
Definition: intarray.C:225
Class and object Domain.
Definition: domain.h:115
virtual void printYourself()
Prints receiver state on stdout. Useful for debugging.
Definition: elementside.C:65
virtual ~ElementSide()
Destructor.
Definition: elementside.C:50
Base class for dof managers.
Definition: dofmanager.h:113
virtual void printYourself()
Prints the receiver state on stdout.
Definition: dof.C:107
Class implementing an array of integers.
Definition: intarray.h:61
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: dofmanager.C:326
int giveNumberOfDofs() const
Definition: dofmanager.C:279
REGISTER_DofManager(ElementSide)
virtual void computeTransformation(FloatMatrix &answer, const IntArray *dofIDArry)
Computes receiver transformation matrix from global cs.
Definition: elementside.C:78
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: elementside.C:54
IntArray loadArray
List of applied loads.
Definition: dofmanager.h:119
Initializes the variable VERBOSE, in order to get a few intermediate messages on screen: beginning an...
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
void resize(int rows, int cols)
Checks size of receiver towards requested bounds.
Definition: floatmatrix.C:1358
Class representing the general Input Record.
Definition: inputrecord.h:101
void zero()
Zeroes all coefficient of receiver.
Definition: floatmatrix.C:1326
void beUnitMatrix()
Sets receiver to unity matrix.
Definition: floatmatrix.C:1332
int giveSize() const
Definition: intarray.h:203
the oofem namespace is to define a context or scope in which all oofem names are defined.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
ElementSide(int n, Domain *aDomain)
Constructor.
Definition: elementside.C:45

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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011