SuperDex Physics C++ API
Loading...
Searching...
No Matches
st_venant_kirchhoff_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 Saint Venant-Kirchhoff (StVK) hyperelastic material model.
27 *
28 * @details Classical non-linear hyperelastic material. Simpler than neo-Hookean but may exhibit
29 * instabilities under large deformations, particularly under large compression.
30 *
31 * @see SoftMaterialType::StVenantKirchhoff
32 */
34 /** @brief Young's modulus [Pa]. Must be positive. */
36
37 /**
38 * @brief Poisson's ratio (dimensionless).
39 *
40 * @note Must be in (-1, 0.5). Near 0.5 = nearly incompressible.
41 */
43
44 /**
45 * @brief Strategy for ensuring positive semi-definite Hessian matrices.
46 *
47 * @see MaterialPsdStrategy
48 */
50
51#if MOCHI_LANGUAGE_CPP20
52 bool operator==(StVenantKirchhoffMaterialParams const&) const = default;
53#endif
54
60};
61
62namespace materials {
63// St. Venant-Kirchhoff has an isotropic reference tangent by construction.
64template <>
66} // namespace materials
67
68} // 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 Saint Venant-Kirchhoff (StVK) hyperelastic material model.
MaterialPsdStrategy psdStrategy
Strategy for ensuring positive semi-definite Hessian matrices.
real poissonRatio
Poisson's ratio (dimensionless).
bool operator==(StVenantKirchhoffMaterialParams const &) const =default