Class SpringDamperParamsVars#

Inheritance Relationships#

Base Type#

Class Documentation#

class SpringDamperParamsVars : public Karana::Core::BaseVars#

The Vars for the SpringDamperParams class.

Public Functions

SpringDamperParamsVars(const kc::ks_ptr<const SpringDamperParams> &params)#

SpringDamperParamsVars constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:

params – The params class associated with this SpringDamperParamsVars.

~SpringDamperParamsVars()#

Destructor.

virtual kc::NestedVars getAllVars() const override#

Get all the Vars that this SpringDamperParamsVars has.

Returns:

A map of Vars, where the Var name is the key and the Var is the value.

Public Members

kc::ks_ptr<Karana::Core::Var_T<double>> unsprung_length#

Unsprung length.

kc::ks_ptr<Karana::Core::Var_T<double>> k#

Spring constant.

kc::ks_ptr<Karana::Core::Var_T<double>> d#

Damper constant.

Public Static Functions

static kc::ks_ptr<SpringDamperParamsVars> create(const kc::ks_ptr<const SpringDamperParams> &params)#

Create an instance of the SpringDamperParamsVars.

Parameters:

params – The params class associated with this SpringDamperParamsVars.

Returns:

A pointer to the newly created instance of SpringDamperParamsVars.