DeformableBodyConfig stores the physical parameters for a deformable body.
A default constructed configuration approximately represents a hard rubber material (density, elasticity, and poisson's ratio) without any damping. Damping coefficients are generally difficult to measure and we expect users will typically start with zero damping and tune the values to achieve reasonable dynamics. The config contains the following fields with their corresponding valid ranges:
T | The scalar type, which must be one of the default nonsymbolic scalars. |
#include <drake/multibody/fem/deformable_body_config.h>
Public Member Functions | |
DeformableBodyConfig ()=default | |
void | set_youngs_modulus (T youngs_modulus) |
void | set_poissons_ratio (T poissons_ratio) |
void | set_mass_damping_coefficient (T mass_damping_coefficient) |
void | set_stiffness_damping_coefficient (T stiffness_damping_coefficient) |
void | set_mass_density (T mass_density) |
void | set_material_model (MaterialModel material_model) |
const T & | youngs_modulus () const |
Returns the Young's modulus, with unit of N/m². More... | |
const T & | poissons_ratio () const |
Returns the Poisson's ratio, unitless. More... | |
const T & | mass_damping_coefficient () const |
Returns the mass damping coefficient. More... | |
const T & | stiffness_damping_coefficient () const |
Returns the stiffness damping coefficient. More... | |
const T & | mass_density () const |
Returns the mass density, with unit of kg/m³. More... | |
MaterialModel | material_model () const |
Returns the constitutive model of the material. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
DeformableBodyConfig (const DeformableBodyConfig &)=default | |
DeformableBodyConfig & | operator= (const DeformableBodyConfig &)=default |
DeformableBodyConfig (DeformableBodyConfig &&)=default | |
DeformableBodyConfig & | operator= (DeformableBodyConfig &&)=default |
|
default |
|
default |
|
default |
const T& mass_damping_coefficient | ( | ) | const |
Returns the mass damping coefficient.
See DampingModel.
const T& mass_density | ( | ) | const |
Returns the mass density, with unit of kg/m³.
MaterialModel material_model | ( | ) | const |
Returns the constitutive model of the material.
|
default |
|
default |
const T& poissons_ratio | ( | ) | const |
Returns the Poisson's ratio, unitless.
void set_mass_damping_coefficient | ( | T | mass_damping_coefficient | ) |
void set_mass_density | ( | T | mass_density | ) |
void set_material_model | ( | MaterialModel | material_model | ) |
void set_poissons_ratio | ( | T | poissons_ratio | ) |
void set_stiffness_damping_coefficient | ( | T | stiffness_damping_coefficient | ) |
void set_youngs_modulus | ( | T | youngs_modulus | ) |
const T& stiffness_damping_coefficient | ( | ) | const |
Returns the stiffness damping coefficient.
See DampingModel.
const T& youngs_modulus | ( | ) | const |
Returns the Young's modulus, with unit of N/m².