19 #ifndef _GENERALIZED_CLUTCH_H_ 20 #define _GENERALIZED_CLUTCH_H_ 22 #include "mbsim/links/dual_rigid_body_link.h" 23 #include "mbsim/functions/function.h" 27 class FrictionForceLaw;
28 class FrictionImpactLaw;
34 Function<double(
double)> *e{
nullptr};
35 Function<double(
double)> *laN{
nullptr};
36 unsigned int gActive{1}, gActive0{0};
37 unsigned int gdActive{1};
38 unsigned int gddActive{1};
45 void updateGeneralizedForces()
override;
46 void updateh(
int i=0)
override;
47 void updateW(
int i=0)
override;
48 const double& evalgdn();
49 const double& evalgdd();
56 void init(
InitStage stage,
const InitConfigSet &config)
override;
60 void setEngagementFunction(
Function<
double(
double)> *e_) {
64 void setGeneralizedNormalForceFunction(Function<
double(
double)> *laN_) {
69 void updateg()
override { }
70 void updateStopVector()
override;
77 void calccorrSize(
int j)
override;
78 void updatecorr(
int j)
override;
79 void checkRoot()
override;
86 void initializeUsingXML(xercesc::DOMElement *element)
override;
bool gActiveChanged() override
Definition: generalized_clutch.cc:87
bool isActive() const override
Definition: generalized_clutch.cc:83
Definition: dual_rigid_body_link.h:27
Definition: generalized_clutch.h:30
void checkImpactsForTermination() override
verify underlying force laws on velocity level concerning given tolerances
Definition: generalized_clutch.cc:402
void calcgdSize(int j) override
calculates size of gap velocities
Definition: generalized_clutch.cc:178
void solveConstraintsFixpointSingle() override
Definition: generalized_clutch.cc:348
void checkActive(int j) override
check if set-valued contacts are active and set corresponding attributes
Definition: generalized_clutch.cc:209
void calclaSize(int j) override
calculates size of contact force parameters
Definition: generalized_clutch.cc:149
basic friction force law on velocity level for constraint description
Definition: friction_impact_law.h:32
InitStage
The stages of the initialization.
Definition: element.h:62
basic friction force law on acceleration level for constraint description
Definition: friction_force_law.h:32
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: generalized_clutch.cc:93
Definition: contact_kinematics.h:32
std::string name
name of element
Definition: element.h:249
bool isSetValued() const override
asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore s...
Definition: generalized_clutch.cc:42
void calcgSize(int j) override
calculates size of relative distances
Definition: generalized_clutch.cc:173
bool isSingleValued() const override
asks the link if it contains single valued force laws that contribute to the right-hand side vector h
Definition: generalized_clutch.h:54
void plot() override
plots time dependent data
Definition: generalized_clutch.cc:117
void checkConstraintsForTermination() override
verify underlying force laws concerning given tolerances
Definition: generalized_clutch.cc:382
void updaterFactors() override
update relaxation factors for contact equations
Definition: generalized_clutch.cc:326
void calcsvSize() override
calculates size of stopvector (root function for event driven integration)
Definition: generalized_clutch.cc:204
void calcrFactorSize(int j) override
calculates size of rfactors
Definition: generalized_clutch.cc:196
void solveImpactsFixpointSingle() override
Definition: generalized_clutch.cc:365
namespace MBSim
Definition: bilateral_constraint.cc:29