Class uipc::constitution::AffineBodyExternalBodyForce
ClassList > uipc > constitution > AffineBodyExternalBodyForce
Inherits the following classes: uipc::constitution::IConstitution
Public Functions
| Type | Name |
|---|---|
| AffineBodyExternalBodyForce (const Json & config=default_config()) |
|
| void | apply_to (geometry::SimplicialComplex & sc, const Vector12 & force) Apply external force (12D generalized force) to affine body instances. |
| void | apply_to (geometry::SimplicialComplex & sc, const Vector3 & force) Apply external translational force to affine body instances (only translational force, affine force = 0) |
| ~AffineBodyExternalBodyForce () |
Public Functions inherited from uipc::constitution::IConstitution
See uipc::constitution::IConstitution
| Type | Name |
|---|---|
| std::string_view | name () noexcept const |
| std::string_view | type () noexcept const |
| U64 | uid () noexcept const |
| const builtin::UIDInfo & | uid_info () noexcept const |
| virtual | ~IConstitution () = default |
Public Static Functions
| Type | Name |
|---|---|
| Json | default_config () |
Protected Functions
| Type | Name |
|---|---|
| virtual U64 | get_uid () noexcept override const |
Protected Functions inherited from uipc::constitution::IConstitution
See uipc::constitution::IConstitution
| Type | Name |
|---|---|
| virtual U64 | get_uid () noexcept const = 0 |
Public Functions Documentation
function AffineBodyExternalBodyForce
uipc::constitution::AffineBodyExternalBodyForce::AffineBodyExternalBodyForce (
const Json & config=default_config()
)
function apply_to [1/2]
Apply external force (12D generalized force) to affine body instances.
void uipc::constitution::AffineBodyExternalBodyForce::apply_to (
geometry::SimplicialComplex & sc,
const Vector12 & force
)
Parameters:
scSimplicialComplex representing affine body geometryforce12D generalized force vector: [fx, fy, fz, f_a11, f_a12, f_a13, f_a21, f_a22, f_a23, f_a31, f_a32, f_a33] where f is the 3D translational force and f_a is the 9D affine force
function apply_to [2/2]
Apply external translational force to affine body instances (only translational force, affine force = 0)
void uipc::constitution::AffineBodyExternalBodyForce::apply_to (
geometry::SimplicialComplex & sc,
const Vector3 & force
)
Parameters:
scSimplicialComplex representing affine body geometryforce3D translational force vector
function ~AffineBodyExternalBodyForce
Public Static Functions Documentation
function default_config
Protected Functions Documentation
function get_uid
Implements uipc::constitution::IConstitution::get_uid
The documentation for this class was generated from the following file include/uipc/constitution/affine_body_external_force.h