#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.
|
namespace | pbat |
| The main namespace of the library.
|
|
- 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
- Copyright
- Copyright (c) 2025
◆ 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
-
TDerivedY | Eigen dense expression of vector of Young's moduli |
TDerivednu | Eigen dense expression of vector of Poisson's ratios |
- Parameters
-
Y | Vector of Young's moduli |
nu | Vector 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
-
Y | Young's modulus |
nu | Poisson's ratio |
- Returns
- Lame coefficients (mu, lambda)