OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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#include "elementside.h"
36#include "dof.h"
37#include "floatmatrix.h"
38#include "intarray.h"
39#include "verbose.h"
40#include "classfactory.h"
41
42namespace oofem {
44
45ElementSide :: ElementSide(int n, Domain *aDomain) :
46 DofManager(n, aDomain)
47{ }
48
49
50ElementSide :: ~ElementSide()
51{ }
52
53void ElementSide :: printYourself()
54// Prints the receiver on screen.
55{
56 printf("Element side %d \n", number);
57 for ( Dof *dof: *this ) {
58 dof->printYourself();
59 }
60
61 loadArray.printYourself();
62 printf("\n");
63}
64
65
66void ElementSide :: computeTransformation(FloatMatrix &answer, const IntArray *map)
67{
68 //
69
70 // computes transformation of receiver from global cs to nodal (user-defined) cs.
71 // Note: implementation rely on D_u, D_v and D_w (R_u, R_v, R_w) order in cltypes.h
72 // file. Do not change their order and do not insert any values between these values.
73 //
74 //
75
76 int size;
77
78 if ( map == NULL ) {
79 size = this->giveNumberOfDofs();
80 } else {
81 size = map->giveSize();
82 }
83
84 // response for all local dofs is computed
85
86 answer.resize(size, size);
87 answer.zero();
88 answer.beUnitMatrix();
89}
90} // end namespace oofem
#define REGISTER_DofManager(class)
int giveNumberOfDofs() const
Definition dofmanager.C:287
IntArray loadArray
List of applied loads.
Definition dofmanager.h:108
DofManager(int n, Domain *aDomain)
Definition dofmanager.C:71
virtual void printYourself()
Prints the receiver state on stdout.
Definition dof.C:107
int number
Component number.
Definition femcmpnn.h:77
void resize(Index rows, Index cols)
Definition floatmatrix.C:79
void zero()
Zeroes all coefficient of receiver.
void beUnitMatrix()
Sets receiver to unity matrix.
int giveSize() const
Definition intarray.h:211

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