Struct PhysicalModalBodyParams#
Defined in File PhysicalModalBody.h
Inheritance Relationships#
Base Type#
public Karana::Dynamics::PhysicalBodyParams(Struct PhysicalBodyParams)
Struct Documentation#
-
struct PhysicalModalBodyParams : public Karana::Dynamics::PhysicalBodyParams#
Struct with parameters for a modal deformable body
Public Functions
-
inline PhysicalModalBodyParams &operator=(const PhysicalModalBodyParams &p)#
copy operator
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
-
inline PhysicalModalBodyParams &operator=(const PhysicalModalBodyParams &p)#