19#ifndef _GENERALIZED_FRICTION_H_
20#define _GENERALIZED_FRICTION_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)> *laN{
nullptr};
35 unsigned int gdActive{1};
36 unsigned int gddActive{1};
37 fmatvec::Vec gdn, gdd;
43 void updateGeneralizedForces()
override;
44 void updateh(
int i=0)
override;
45 void updateW(
int i=0)
override;
46 void updatewb()
override;
47 void updateg()
override { }
48 void updategd()
override;
49 const double& evalgdn();
50 const double& evalgdd();
52 bool isActive()
const override {
return true; }
56 void init(
InitStage stage,
const InitConfigSet &config)
override;
61 void setGeneralizedNormalForceFunction(
Function<
double(
double)> *laN_) {
66 void updateStopVector()
override;
73 void calccorrSize(
int j)
override;
74 void updatecorr(
int j)
override;
75 void checkRoot()
override;
82 void initializeUsingXML(xercesc::DOMElement *element)
override;
Definition: dual_rigid_body_link.h:27
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:260
basic friction force law on acceleration level for constraint description
Definition: friction_force_law.h:34
basic friction force law on velocity level for constraint description
Definition: friction_impact_law.h:32
Definition: function.h:53
Definition: generalized_friction.h:30
bool isActive() const override
Definition: generalized_friction.h:52
void checkImpactsForTermination() override
verify underlying force laws on velocity level concerning given tolerances
Definition: generalized_friction.cc:354
void calcrFactorSize(int j) override
calculates size of rfactors
Definition: generalized_friction.cc:166
void updaterFactors() override
update relaxation factors for contact equations
Definition: generalized_friction.cc:278
void calclaSize(int j) override
calculates size of contact force parameters
Definition: generalized_friction.cc:137
void checkConstraintsForTermination() override
verify underlying force laws concerning given tolerances
Definition: generalized_friction.cc:334
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: generalized_friction.cc:91
void solveImpactsFixpointSingle() override
Definition: generalized_friction.cc:317
bool gActiveChanged() override
Definition: generalized_friction.h:53
void plot() override
plots time dependent data
Definition: generalized_friction.cc:112
void calcsvSize() override
calculates size of stopvector (root function for event driven integration)
Definition: generalized_friction.cc:174
void checkActive(int j) override
check if set-valued contacts are active and set corresponding attributes
Definition: generalized_friction.cc:179
void solveConstraintsFixpointSingle() override
Definition: generalized_friction.cc:300
void calcgdSize(int j) override
calculates size of gap velocities
Definition: generalized_friction.cc:154
void calcgSize(int j) override
calculates size of relative distances
Definition: generalized_friction.cc:149
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_friction.h:55
bool isSetValued() const override
asks the link if it contains force laws that contribute to the lagrange multiplier and is therefore s...
Definition: generalized_friction.cc:42
namespace MBSim
Definition: bilateral_constraint.cc:30