SuperDex Physics C++ API
Loading...
Searching...
No Matches
material_params_inl.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.
20#include "material_params.h" // Reverse include for intellisense
21
22namespace superdex {
23
36
49
50} // namespace superdex
Non-owning view of per-element material parameters for a soft body, in struct-of-arrays format.
Span< real const > arapStiffness
ARAP stiffness (μ) [Pa].
Span< real const > anisoLength
Anisotropic reference length (dimensionless). 1 per element.
Span< real const > youngsModulus
Young's modulus [Pa]. 1 per element.
SoftMaterialType type
Material constitutive model.
MaterialPsdStrategy psdStrategy
Strategy for ensuring positive semi-definite Hessian matrices.
Span< real const > anisoTheta
Fiber azimuthal angle (θ) [rad]. 1 per element.
Span< real const > poissonRatio
Poisson's ratio (dimensionless). 1 per element.
Span< real const > anisoPhi
Fiber elevation angle (φ) [rad]. 1 per element.
Span< real const > anisoAlpha
Anisotropic stiffness (α) [Pa]. 1 per element.
Span< real const > shapeTargetTensor
Shape target tensor offset in flat symmetric upper-triangle layout.
Per-element material parameters for a soft body in struct-of-arrays format.
DynamicArray< real > youngsModulus
Young's modulus [Pa]. 1 per element.
MaterialPsdStrategy psdStrategy
Strategy for ensuring positive semi-definite Hessian matrices.
DynamicArray< real > anisoPhi
Fiber elevation angle (φ) [rad]. 1 per element.
DynamicArray< real > anisoLength
Anisotropic reference length (dimensionless). 1 per element.
DynamicArray< real > anisoTheta
Fiber azimuthal angle (θ) [rad]. 1 per element.
DynamicArray< real > arapStiffness
ARAP stiffness (μ) [Pa].
SoftMaterialType type
Material constitutive model.
DynamicArray< real > anisoAlpha
Anisotropic stiffness (α) [Pa]. 1 per element.
DynamicArray< real > shapeTargetTensor
Shape target tensor offset in flat symmetric upper-triangle layout.
DynamicArray< real > poissonRatio
Poisson's ratio (dimensionless). 1 per element.