Class SpringDamperScratch#
Defined in File SpringDamper.h
Inheritance Relationships#
Base Type#
public Karana::Models::KModelScratch(Class KModelScratch)
Class Documentation#
-
class SpringDamperScratch : public Karana::Models::KModelScratch#
Scratch variables for the SpringDamper model.
Public Functions
-
SpringDamperScratch(std::string_view name)#
Constructor.
- Parameters:
name – - Name of the scratch.
-
virtual std::string dumpString(std::string_view prefix, const Karana::Core::Base::DumpOptions *options = nullptr) const override#
Return information about the object.
- Parameters:
prefix – A string to use as prefix for each output line
options – Struct with options to tailor the output
- Returns:
String with the information about the object.
Public Members
-
km::Vec3 offset#
Translation from node1 to node2.
-
double position_error = km::uninitializedNaN#
Signed length offset from the unsprung length.
-
km::Vec3 velocity_error#
Relative linear velocity across the spring.
-
double stiffness_force = km::uninitializedNaN#
Signed scalar force due to spring stiffness.
-
km::Vec3 damping_force#
Linear force due to spring damping.
-
km::Vec3 total_force#
Total linear spring force.
-
SpringDamperScratch(std::string_view name)#