MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
modaledge.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/struct/modaledge.h,v 1.15 2017/01/12 14:46:43 masarati Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 2007-2017
7  *
8  * Pierangelo Masarati <masarati@aero.polimi.it>
9  * Paolo Mantegazza <mantegazza@aero.polimi.it>
10  *
11  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
12  * via La Masa, 34 - 20156 Milano, Italy
13  * http://www.aero.polimi.it
14  *
15  * Changing this copyright notice is forbidden.
16  *
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation (version 2 of the License).
20  *
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */
31 
32 /* Forza */
33 
34 #ifndef MODALEDGE_H
35 #define MODALEDGE_H
36 
37 #include "modalext.h"
38 #include "aerodyn.h"
39 
40 /* ExtForceEDGE - begin */
41 
43 protected:
45 
46 public:
48  virtual ~ExtForceEDGE(void);
49 
50  bool
51  Prepare(ExtFileHandlerBase *pEFH, unsigned uLabel, bool bRigid, unsigned uModes);
52 };
53 
54 /* ExtForceEDGE - end */
55 
56 /* ExtRigidForceEDGE - begin */
57 
59 public:
61 
62  unsigned
63  Recv(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned& uLabel,
64  Vec3& f, Vec3& m, std::vector<doublereal>& a);
65 
66  void
67  Send(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned uLabel,
68  const Vec3& x, const Mat3x3& R, const Vec3& v, const Vec3& w,
69  const std::vector<doublereal>& q,
70  const std::vector<doublereal>& qP);
71 };
72 
73 /* ExtRigidForceEDGE - end */
74 
75 /* ExtModalForceEDGE - begin */
76 
78 public:
80 
81  unsigned
82  Recv(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned& uLabel,
83  Vec3& f, Vec3& m, std::vector<doublereal>& a);
84 
85  void
86  Send(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned uLabel,
87  const Vec3& x, const Mat3x3& R, const Vec3& v, const Vec3& w,
88  const std::vector<doublereal>& q,
89  const std::vector<doublereal>& qP);
90 };
91 
92 /* ExtModalForceEDGE - end */
93 
94 #endif // MODALEDGE_H
95 
virtual ~ExtForceEDGE(void)
Definition: modaledge.cc:53
Definition: matvec3.h:98
bool Prepare(ExtFileHandlerBase *pEFH, unsigned uLabel, bool bRigid, unsigned uModes)
Definition: modaledge.cc:59
unsigned Recv(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned &uLabel, Vec3 &f, Vec3 &m, std::vector< doublereal > &a)
Definition: modaledge.cc:301
void Send(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned uLabel, const Vec3 &x, const Mat3x3 &R, const Vec3 &v, const Vec3 &w, const std::vector< doublereal > &q, const std::vector< doublereal > &qP)
Definition: modaledge.cc:461
unsigned Recv(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned &uLabel, Vec3 &f, Vec3 &m, std::vector< doublereal > &a)
Definition: modaledge.cc:88
const AirProperties * pAP
Definition: modaledge.h:44
ExtRigidForceEDGE(DataManager *pDM)
Definition: modaledge.cc:71
ExtForceEDGE(DataManager *pDM)
Definition: modaledge.cc:43
static const doublereal a
Definition: hfluid_.h:289
void Send(ExtFileHandlerBase *pEFH, unsigned uFlags, unsigned uLabel, const Vec3 &x, const Mat3x3 &R, const Vec3 &v, const Vec3 &w, const std::vector< doublereal > &q, const std::vector< doublereal > &qP)
Definition: modaledge.cc:245
ExtModalForceEDGE(DataManager *pDM)
Definition: modaledge.cc:286
Mat3x3 R