All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
kinetic_excitation.h
1 /* Copyright (C) 2004-2013 MBSim Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * Contact: martin.o.foerg@googlemail.com
18  */
19 
20 #ifndef _KINETICEXCITATION_H_
21 #define _KINETICEXCITATION_H_
22 
23 #include <mbsim/links/floating_frame_link.h>
24 #include <mbsim/functions/function.h>
25 
26 namespace MBSim {
27 
35  public:
40  KineticExcitation(const std::string &name="");
41 
45  virtual ~KineticExcitation();
46 
47  void updateGeneralizedPositions() { }
48  void updateGeneralizedVelocities() { }
49  void updatelaF();
50  void updatelaM();
51 
52  /* INHERITED INTERFACE OF EXTRADYNAMICINTERFACE */
53  virtual void init(InitStage stage);
54  /***************************************************/
55 
56  /* INHERITED INTERFACE OF LINK */
57  bool isActive() const { return true; }
58  bool isSingleValued() const { return true; }
59  bool gActiveChanged() { return false; }
60  /***************************************************/
61 
65  void setForceDirection(const fmatvec::Mat3xV& fd);
66 
70  void setMomentDirection(const fmatvec::Mat3xV& md);
71 
76  void setForceFunction(Function<fmatvec::VecV(double)> *func);
77 
79  void setMomentFunction(Function<fmatvec::VecV(double)> *func);
80 
81  using FloatingFrameLink::connect;
82 
86  void connect(MBSim::Frame *frame_) { frame[1] = frame_; }
87 
88  void initializeUsingXML(xercesc::DOMElement *element);
89 
90  virtual std::string getType() const { return "KineticExcitation"; }
91 
92  protected:
97 
98  private:
99  std::string saved_ref;
100  };
101 
102 }
103 
104 #endif /* _KINETICEXCITATION_H_ */
105 
void setMomentDirection(const fmatvec::Mat3xV &md)
Definition: kinetic_excitation.cc:83
void setForceDirection(const fmatvec::Mat3xV &fd)
Definition: kinetic_excitation.cc:75
kinetic excitations given by time dependent functions
Definition: kinetic_excitation.h:34
KineticExcitation(const std::string &name="")
constructor
Definition: kinetic_excitation.cc:34
virtual ~KineticExcitation()
destructor
Definition: kinetic_excitation.cc:38
void setMomentFunction(Function< fmatvec::VecV(double)> *func)
see setForce
Definition: kinetic_excitation.cc:97
void setForceFunction(Function< fmatvec::VecV(double)> *func)
Set the force excitation. forceDir*func(t) is the applied force vector in space. This force vector is...
Definition: kinetic_excitation.cc:91
bool gActiveChanged()
Definition: kinetic_excitation.h:59
InitStage
The stages of the initialization.
Definition: element.h:97
bool isSingleValued() const
asks the link if it contains single valued force laws that contribute to the right-hand side vector h...
Definition: kinetic_excitation.h:58
void connect(MBSim::Frame *frame_)
Definition: kinetic_excitation.h:86
Definition: planar_contour.h:31
std::string name
name of element
Definition: element.h:298
cartesian frame on bodies used for application of e.g. links and loads
Definition: frame.h:37
Function< fmatvec::VecV(double)> * F
portions of the force / moment in the specific directions
Definition: kinetic_excitation.h:96
virtual std::string getType() const
Definition: kinetic_excitation.h:90
bool isActive() const
Definition: kinetic_excitation.h:57
virtual void init(InitStage stage)
plots time series header
Definition: kinetic_excitation.cc:43

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML