Force_LinearBushing.h
Go to the documentation of this file.00001 #ifndef SimTK_SIMBODY_FORCE_LINEAR_BUSHING_H_
00002 #define SimTK_SIMBODY_FORCE_LINEAR_BUSHING_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include "SimTKcommon.h"
00035 #include "simbody/internal/Force.h"
00036
00043 namespace SimTK {
00108 class SimTK_SIMBODY_EXPORT Force::LinearBushing : public Force {
00109 public:
00131 LinearBushing(GeneralForceSubsystem& forces,
00132 const MobilizedBody& body1, const Transform& frameFOnB1,
00133 const MobilizedBody& body2, const Transform& frameMOnB2,
00134 const Vec6& stiffness, const Vec6& damping);
00135
00153 LinearBushing(GeneralForceSubsystem& forces,
00154 const MobilizedBody& body1,
00155 const MobilizedBody& body2,
00156 const Vec6& stiffness, const Vec6& damping);
00157
00158
00159
00160
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184 LinearBushing& setDefaultFrameOnBody1(const Transform& X_B1F);
00194 LinearBushing& setDefaultFrameOnBody2(const Transform& X_B2M);
00203 LinearBushing& setDefaultStiffness(const Vec6& stiffness);
00212 LinearBushing& setDefaultDamping(const Vec6& damping);
00213
00220 const Transform& getDefaultFrameOnBody1() const;
00227 const Transform& getDefaultFrameOnBody2() const;
00232 const Vec6& getDefaultStiffness() const;
00238 const Vec6& getDefaultDamping() const;
00240
00241
00242
00243
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273 const LinearBushing& setFrameOnBody1(State& state,
00274 const Transform& X_B1F) const;
00287 const LinearBushing& setFrameOnBody2(State& state,
00288 const Transform& X_B2M) const;
00300 const LinearBushing& setStiffness(State& state,
00301 const Vec6& stiffness) const;
00313 const LinearBushing& setDamping(State& state,
00314 const Vec6& damping) const;
00315
00325 const Transform& getFrameOnBody1(const State& state) const;
00335 const Transform& getFrameOnBody2(const State& state) const;
00345 const Vec6& getStiffness(const State& state) const;
00355 const Vec6& getDamping(const State& state) const;
00357
00358
00359
00360
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384 const Vec6& getQ(const State& state) const;
00385
00393 const Transform& getX_GF(const State& state) const;
00394
00402 const Transform& getX_GM(const State& state) const;
00403
00411 const Transform& getX_FM(const State& state) const;
00413
00414
00415
00416
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440 const Vec6& getQDot(const State& state) const;
00441
00453 const SpatialVec& getV_GF(const State& state) const;
00454
00466 const SpatialVec& getV_GM(const State& state) const;
00467
00480 const SpatialVec& getV_FM(const State& state) const;
00482
00483
00484
00485
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510 const Vec6& getF(const State& state) const;
00511
00521 const SpatialVec& getF_GM(const State& state) const;
00522
00533 const SpatialVec& getF_GF(const State& state) const;
00535
00536
00537
00538
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553 Real getPotentialEnergy(const State& state) const;
00554
00565 Real getPowerDissipation(const State& state) const;
00566
00580 Real getDissipatedEnergy(const State& state) const;
00581
00594 void setDissipatedEnergy(State& state, Real energy) const;
00596
00597
00599 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS
00600 (LinearBushing, LinearBushingImpl, Force);
00602 };
00603
00604 }
00605
00606 #endif // SimTK_SIMBODY_FORCE_LINEAR_BUSHING_H_