Skip to content

Class uipc::constitution::HookeanSpring

ClassList > uipc > constitution > HookeanSpring

Inherits the following classes: uipc::constitution::FiniteElementConstitution

Public Functions

Type Name
HookeanSpring (const Json & config=default_config()) noexcept
void apply_to (geometry::SimplicialComplex & sc, Float kappa=40.0_MPa, Float mass_density=1e3, Float thickness=0.01_m) const

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 () noexcept

Protected Functions

Type Name
virtual U64 get_uid () noexcept override const

Protected Functions inherited from uipc::constitution::FiniteElementConstitution

See uipc::constitution::FiniteElementConstitution

Type Name
void apply_to (geometry::SimplicialComplex & sc, Float mass_density, Float thickness=0.0) 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 HookeanSpring

uipc::constitution::HookeanSpring::HookeanSpring (
    const Json & config=default_config()
) noexcept

function apply_to

void uipc::constitution::HookeanSpring::apply_to (
    geometry::SimplicialComplex & sc,
    Float kappa=40.0_MPa,
    Float mass_density=1e3,
    Float thickness=0.01_m
) const

Public Static Functions Documentation

function default_config

static Json uipc::constitution::HookeanSpring::default_config () noexcept

Protected Functions Documentation

function get_uid

virtual U64 uipc::constitution::HookeanSpring::get_uid () noexcept override const

Implements uipc::constitution::IConstitution::get_uid



The documentation for this class was generated from the following file include/uipc/constitution/hookean_spring.h