PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
HyperElasticity.h File Reference
#include "PhysicsBasedAnimationToolkitExport.h"
#include "pbat/Aliases.h"
#include "pbat/math/linalg/mini/Matrix.h"
#include <concepts>
#include <exception>
#include <fmt/core.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  pbat
 The main namespace of the library.
 

Concepts

concept  pbat::physics::CHyperElasticEnergy
 Concept for hyperelastic energy.
 

Functions

std::pair< Scalar, Scalarpbat::physics::LameCoefficients (Scalar Y, Scalar nu)
 Compute the Lame coefficients from Young's modulus and Poisson's ratio.
 
template<class TDerivedY, class TDerivednu>
std::pair< VectorX, VectorXpbat::physics::LameCoefficients (Eigen::DenseBase< TDerivedY > const &Y, Eigen::DenseBase< TDerivednu > const &nu)
 Compute the Lame coefficients from Young's modulus and Poisson's ratio.
 

Detailed Description

Author
Quoc-Minh Ton-That (tonth.nosp@m.at.q.nosp@m.uocmi.nosp@m.nh@g.nosp@m.mail..nosp@m.com)
Date
2025-02-10

Function Documentation

◆ LameCoefficients() [1/2]

template<class TDerivedY, class TDerivednu>
std::pair< VectorX, VectorX > pbat::physics::LameCoefficients ( Eigen::DenseBase< TDerivedY > const & Y,
Eigen::DenseBase< TDerivednu > const & nu )

Compute the Lame coefficients from Young's modulus and Poisson's ratio.

Template Parameters
TDerivedYEigen dense expression of vector of Young's moduli
TDerivednuEigen dense expression of vector of Poisson's ratios
Parameters
YVector of Young's moduli
nuVector of Poisson's ratios
Returns
Lame coefficients (mu, lambda)

◆ LameCoefficients() [2/2]

PBAT_API std::pair< Scalar, Scalar > pbat::physics::LameCoefficients ( Scalar Y,
Scalar nu )

Compute the Lame coefficients from Young's modulus and Poisson's ratio.

Parameters
YYoung's modulus
nuPoisson's ratio
Returns
Lame coefficients (mu, lambda)