muMECH  1.0
mnode.h
Go to the documentation of this file.
1 //********************************************************************************************************
2 // code: ### ### ##### #### ## ##
3 // ## ## ######## ## ## ## ## ##
4 // ## ## ## ## ## ### ## ######
5 // ## ## ## ## ## ## ## ## ##
6 // ##### ## ## ##### #### ## ##
7 // ##
8 //
9 // name: mnode.h
10 // author(s): Ladislav Svoboda
11 // language: C, C++
12 // license: This program is free software; you can redistribute it and/or modify
13 // it under the terms of the GNU Lesser General Public License as published by
14 // the Free Software Foundation; either version 2 of the License, or
15 // (at your option) any later version.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU Lesser General Public License for more details.
21 //
22 // You should have received a copy of the GNU Lesser General Public License
23 // along with this program; if not, write to the Free Software
24 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 //********************************************************************************************************
31 #ifndef MUMECH_MNODE_H
32 #define MUMECH_MNODE_H
33 
34 #include "types.h"
35 #include "arrays.h"
36 
37 
38 namespace mumech {
39 
40 class Mesh;
41 
43 class mNode
44 {
45  public:
46  long id;
47  const Mesh *M;
48 
50 
51  double ***displc;
52  double ***strain;
53  double ***stress;
54 
55  public:
57  mNode (long i, const Mesh *m);
59  mNode (long i, const Mesh *m, const mNode *src);
61  virtual ~mNode();
62 
64  void allocate_fields (int pid);
65 
66 };//end of class declaration
67 
68 } // end of namespace mumech
69 
70 #endif // end of MUMECH_MNODE_H
71 
72 /*end of file*/
mNode(long i, const Mesh *m)
Constructor.
Definition: mnode.cpp:36
file of various types and symbolic constant definitions
void allocate_fields(int pid)
Definition: mnode.cpp:68
long id
identification number
Definition: mnode.h:46
Class mNode contains and handles all mesh node data.
Definition: mnode.h:43
PoinT coords
coordinates
Definition: mnode.h:49
Structs Elem3D, PoinT and VectoR; classes Array, Array1d, Xscal, Dscal, Xvctr, Lvctr, Dvctr, Xmtrx, Lmtrx and Dmtrx.
double *** strain
computed fields - strain
Definition: mnode.h:52
virtual ~mNode()
Destructor.
Definition: mnode.cpp:58
double *** displc
computed fields - displacement
Definition: mnode.h:51
double *** stress
computed fields - stress
Definition: mnode.h:53
const Mesh * M
mesh
Definition: mnode.h:47
Class Mesh contains and handles all mesh data.
Definition: mesh.h:52