Class PhysicalModalBodyVars#

Inheritance Relationships#

Base Type#

Class Documentation#

class PhysicalModalBodyVars : public Karana::Dynamics::PhysicalBodyVars#

The Vars for the PhysicalModalBody class.

Public Functions

PhysicalModalBodyVars(const kc::ks_ptr<PhysicalModalBody> &body)#

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

Parameters:

body – The body associated with this PhysicalModalBodyVars.

~PhysicalModalBodyVars()#

Destructor.

virtual kc::NestedVars getAllVars() const override#

Get all the Vars that this VarHolder 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<int>> n_modes#

The number of modes.

kc::ks_ptr<Karana::Core::Var_T<km::Vec>> stiffness#

stiffness

kc::ks_ptr<Karana::Core::Var_T<km::Vec>> damping#

damping

Public Static Functions

static kc::ks_ptr<PhysicalModalBodyVars> create(const kc::ks_ptr<PhysicalModalBody> &body)#

Create an instance of the PhysicalModalBodyVars.

Parameters:

body – The body associated with this PhysicalModalBodyVars.

Returns:

A pointer to the newly created instance of PhysicalModalBodyVars.