Class SpringDamperParams#

Inheritance Relationships#

Base Type#

Class Documentation#

class SpringDamperParams : public Karana::Models::KModelParams#

Parameters for the SpringDamper model.

Public Functions

SpringDamperParams(std::string_view name)#

Constructor.

Parameters:

name – - Name of the params.

virtual bool isReady() const final#

Used to ensure the params are ready.

Returns:

true if the params are ready, `false otherwise.

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

double unsprung_length#

Unsprung length.

double k#

Spring constant.

double d#

Damper constant.