MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
displacement.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/elec/displacement.h,v 1.24 2017/01/12 14:46:22 masarati Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 1996-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 /* elementi elettrici, tipo: Elem::ELECTRIC */
33 
34 #ifndef DISPLACEMENT_H
35 #define DISPLACEMENT_H
36 
37 #include "elec.h"
38 
39 /* DispMeasure - begin */
40 
41 class DispMeasure : virtual public Elem, public Electric {
42 private:
48 
49 public:
50  DispMeasure(unsigned int uL, const DofOwner* pD,
51  const StructNode* pS1, const StructNode* pS2,
52  const ScalarDifferentialNode* pA,
53  const Vec3& Tmpf1, const Vec3& Tmpf2,
54  flag fOut);
55  ~DispMeasure(void);
56 
57  virtual Electric::Type GetElectricType(void) const {
59  };
60 
61  /* Contributo al file di restart */
62  virtual std::ostream& Restart(std::ostream& out) const;
63 
64  virtual void WorkSpaceDim(integer* piNumRows, integer* piNumCols) const;
65 
68  doublereal dCoef,
69  const VectorHandler& XCurr,
70  const VectorHandler& XPrimeCurr);
72  AssRes(SubVectorHandler& WorkVec,
73  doublereal dCoef,
74  const VectorHandler& XCurr,
75  const VectorHandler& XPrimeCurr);
76 
77  /* Setta i valori iniziali delle variabili (e fa altre cose)
78  * prima di iniziare l'integrazione */
79  virtual void SetValue(DataManager *pDM,
81  SimulationEntity::Hints *ph = 0);
82 
83  /* *******PER IL SOLUTORE PARALLELO******** */
84  /* Fornisce il tipo e la label dei nodi che sono connessi all'elemento
85  * utile per l'assemblaggio della matrice di connessione fra i dofs */
86  virtual void
87  GetConnectedNodes(std::vector<const Node *>& connectedNodes) const {
88  connectedNodes.resize(3);
89  connectedNodes[0] = pStrNode1;
90  connectedNodes[1] = pStrNode2;
91  connectedNodes[2] = pAbsNode;
92  };
93  /* ************************************************ */
94 };
95 
96 /* DispMeasure - end */
97 
98 #endif /* DISPLACEMENT_H */
99 
virtual void SetValue(DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
long int flag
Definition: mbdyn.h:43
Definition: matvec3.h:98
VariableSubMatrixHandler & AssJac(VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
Definition: displacement.cc:83
SubVectorHandler & AssRes(SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
const StructNode * pStrNode2
Definition: displacement.h:44
std::vector< Hint * > Hints
Definition: simentity.h:89
const ScalarDifferentialNode * pAbsNode
Definition: displacement.h:45
virtual void WorkSpaceDim(integer *piNumRows, integer *piNumCols) const
virtual void GetConnectedNodes(std::vector< const Node * > &connectedNodes) const
Definition: displacement.h:87
Definition: elec.h:43
Type
Definition: elec.h:46
~DispMeasure(void)
Definition: displacement.cc:62
virtual Electric::Type GetElectricType(void) const
Definition: displacement.h:57
Definition: elem.h:75
DispMeasure(unsigned int uL, const DofOwner *pD, const StructNode *pS1, const StructNode *pS2, const ScalarDifferentialNode *pA, const Vec3 &Tmpf1, const Vec3 &Tmpf2, flag fOut)
Definition: displacement.cc:43
double doublereal
Definition: colamd.c:52
long int integer
Definition: colamd.c:51
virtual std::ostream & Restart(std::ostream &out) const
Definition: displacement.cc:69
const StructNode * pStrNode1
Definition: displacement.h:43