MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
stredge.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/struct/stredge.h,v 1.9 2017/01/12 14:46:44 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 STREDGE_H
35 #define STREDGE_H
36 
37 #include "strext.h"
38 
39 /* StructExtEDGEForce - begin */
40 
41 class StructExtEDGEForce : virtual public Elem, public StructExtForce {
42 protected:
43  // temporary, to avoid recomputing too much
44  std::vector<Vec3> m_x;
45  std::vector<Vec3> m_v;
46 
47  virtual void SendToStream(std::ostream& outf, ExtFileHandlerBase::SendWhen when);
48  virtual void SendToFileDes(int outfd, ExtFileHandlerBase::SendWhen when);
49  virtual void RecvFromStream(std::istream& inf);
50  virtual void RecvFromFileDes(int infd);
51 
52 public:
53  /* Costruttore */
54  StructExtEDGEForce(unsigned int uL,
55  DataManager *pDM,
56  const StructNode *pRefNode,
59  std::vector<unsigned>& Labels,
60  std::vector<const StructNode *>& Nodes,
61  std::vector<Vec3>& Offsets,
62  bool bSorted,
63  bool bLabels,
65  unsigned bRot,
67  bool bSendAfterPredict,
68  int iCoupling,
69  unsigned uOutputFlags,
70  flag fOut);
71 
72  virtual ~StructExtEDGEForce(void);
73 };
74 
75 /* StructExtEDGEForce - end */
76 
77 #endif // STREDGE_H
78 
StructExtEDGEForce(unsigned int uL, DataManager *pDM, const StructNode *pRefNode, bool bUseReferenceNodeForces, bool bRotateReferenceNodeForces, std::vector< unsigned > &Labels, std::vector< const StructNode * > &Nodes, std::vector< Vec3 > &Offsets, bool bSorted, bool bLabels, bool bOutputAccelerations, unsigned bRot, ExtFileHandlerBase *pEFH, bool bSendAfterPredict, int iCoupling, unsigned uOutputFlags, flag fOut)
Definition: stredge.cc:46
long int flag
Definition: mbdyn.h:43
bool bSendAfterPredict
Definition: extforce.h:196
virtual void RecvFromFileDes(int infd)
Definition: stredge.cc:591
bool bLabels
Definition: strext.h:69
virtual ~StructExtEDGEForce(void)
Definition: stredge.cc:75
std::vector< Vec3 > m_x
Definition: stredge.h:44
bool bOutputAccelerations
Definition: strext.h:74
bool bSorted
Definition: strext.h:70
ExtFileHandlerBase * pEFH
Definition: extforce.h:193
bool bUseReferenceNodeForces
Definition: strext.h:50
std::vector< Vec3 > m_v
Definition: stredge.h:45
Definition: elem.h:75
virtual void SendToStream(std::ostream &outf, ExtFileHandlerBase::SendWhen when)
Definition: stredge.cc:81
virtual void SendToFileDes(int outfd, ExtFileHandlerBase::SendWhen when)
Definition: stredge.cc:227
int iCoupling
Definition: extforce.h:212
bool bRotateReferenceNodeForces
Definition: strext.h:51
unsigned uOutputFlags
Definition: strext.h:55
const StructNode * pRefNode
Definition: strext.h:49
virtual void RecvFromStream(std::istream &inf)
Definition: stredge.cc:233