SuperDex Physics C++ API
Loading...
Searching...
No Matches
smith_neo_hookean_params.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19// PLEASE DO NOT ADD OTHER INCLUDES HERE. This header is included in the mochi_physics public API.
22
23namespace superdex {
24
25/**
26 * @brief Parameters for the stable Neo-Hookean hyperelastic material model by Smith et al. (2018).
27 *
28 * @details Non-linear hyperelastic material with log-barrier stabilization to handle extreme
29 * deformations and element inversions robustly. Recommended for most soft body simulations
30 * requiring large deformations.
31 *
32 * @see [Stable Neo-Hookean Flesh Simulation (Smith et al.,
33 * 2018)](https://www.tkim.graphics/NEO/StableNeoHookean2018.pdf)
34 * @see SoftMaterialType::NeoHookean
35 */
37 /** @brief Young's modulus [Pa]. Must be positive. */
39
40 /**
41 * @brief Poisson's ratio (dimensionless).
42 *
43 * @note Must be in (-1, 0.5). Near 0.5 = nearly incompressible.
44 */
46
47 /**
48 * @brief Strategy for ensuring positive semi-definite Hessian matrices.
49 *
50 * @see MaterialPsdStrategy
51 */
53
54#if MOCHI_LANGUAGE_CPP20
55 bool operator==(SmithNeoHookeanMaterialParams const&) const = default;
56#endif
57
63};
64
65namespace materials {
66// Neo-Hookean (Smith) has an isotropic reference tangent by construction.
67template <>
69} // namespace materials
70
71} // namespace superdex
constexpr bool kIsotropicReferenceStiffness
Opt-in trait: a material params type declares this true iff its reference (F=I) tangent is isotropic ...
constexpr real kDefaultYoungsModulus
Default Young's modulus [Pa].
constexpr real kDefaultPoissonRatio
Default Poisson's ratio (dimensionless).
MaterialPsdStrategy
Strategy for ensuring positive semi-definite (PSD) Hessian matrices in material models.
@ Projection
Eigenvalue clamping: U * Max(Λ, ε) * U^T.
#define MOCHI_STRUCT_END()
Definition reflection.h:279
#define MOCHI_FIELD(name)
Definition reflection.h:293
#define MOCHI_STRUCT_BEGIN(name)
Definition reflection.h:278
#define MOCHI_ATTRIBUTE(...)
Definition reflection.h:298
Parameters for the stable Neo-Hookean hyperelastic material model by Smith et al.
bool operator==(SmithNeoHookeanMaterialParams const &) const =default
real poissonRatio
Poisson's ratio (dimensionless).
MaterialPsdStrategy psdStrategy
Strategy for ensuring positive semi-definite Hessian matrices.