All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
generalized_kinematic_excitation.h
1 /* Copyright (C) 2004-2015 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@gmail.com
18  */
19 
20 #ifndef _GENERALIZED_KINEMATIC_EXCITATION_H_
21 #define _GENERALIZED_KINEMATIC_EXCITATION_H_
22 
23 #include "mbsim/links/dual_rigid_body_link.h"
24 
25 namespace MBSim {
26 
27  class GeneralizedForceLaw;
28  class GeneralizedImpactLaw;
29 
31  protected:
34  public:
35  GeneralizedKinematicExcitation(const std::string &name);
37 
38  void updateGeneralizedForces();
39 
40  bool isActive() const { return true; }
41  bool gActiveChanged() { return false; }
42  void init(InitStage stage);
43  void calclaSize(int j);
44  void calcgSize(int j);
45  void calcgdSize(int j);
46  bool isSetValued() const;
47  bool isSingleValued() const { return not(isSetValued()); }
48 
49  void setGeneralizedForceLaw(GeneralizedForceLaw * fl_);
50  };
51 
52 }
53 
54 #endif
basic force law on acceleration level for constraint description
Definition: generalized_force_law.h:32
bool gActiveChanged()
Definition: generalized_kinematic_excitation.h:41
void calclaSize(int j)
calculates size of contact force parameters
Definition: generalized_kinematic_excitation.cc:53
void calcgSize(int j)
calculates size of relative distances
Definition: generalized_kinematic_excitation.cc:56
Definition: generalized_kinematic_excitation.h:30
bool isSetValued() const
asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore s...
Definition: generalized_kinematic_excitation.cc:44
InitStage
The stages of the initialization.
Definition: element.h:97
basic force law on velocity level for constraint description
Definition: generalized_impact_law.h:32
bool isActive() const
Definition: generalized_kinematic_excitation.h:40
std::string name
name of element
Definition: element.h:298
void calcgdSize(int j)
calculates size of gap velocities
Definition: generalized_kinematic_excitation.cc:59
bool isSingleValued() const
asks the link if it contains single valued force laws that contribute to the right-hand side vector h...
Definition: generalized_kinematic_excitation.h:47
void init(InitStage stage)
plots time series header
Definition: generalized_kinematic_excitation.cc:72

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML