Struct PhysicalModalBodyParams#

Inheritance Relationships#

Base Type#

Struct Documentation#

struct PhysicalModalBodyParams : public Karana::Dynamics::PhysicalBodyParams#

Struct with parameters for a modal deformable body

Public Functions

inline PhysicalModalBodyParams &operator=(const PhysicalModalBodyParams &p)#

Assignment operator.

Parameters:

p – the input param

Returns:

the output

Public Members

size_t nmodes = 4#

the number of deformation modes

km::Vec stiffness = km::Vec::NullaryExpr(4, 1, [](int i, int j) {return .1 * (i + j + 1);})#

the stiffness vector (based on modal frequencies)

km::Vec damping = km::Vec::NullaryExpr(4, 1, [](int i, int j) { return .01 * (i + j + 1); })#

the damping coefficients

km::Mat pnode_nodal_matrix = km::Mat::NullaryExpr(6, 4, [](int i, int j) {return .1 * (i + j + 1);})#

the nodal matrix for the pnode

km::Mat onode_nodal_matrix = km::Mat::NullaryExpr(6, 4, [](int i, int j) {return .2 * (i + j + 1);})#

the nodal matrix for the onode