You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Conception/drake-master/multibody/fem/calc_lame_parameters.h

29 lines
849 B

#pragma once
namespace drake {
namespace multibody {
namespace fem {
namespace internal {
template <typename T>
struct LameParameters {
T lambda{}; // First Lamé parameter.
T mu{}; // Second Lamé parameter.
};
/* Verifies that the given Young's modulus and Poisson's ratio are valid. If so,
calculates the Lamé parameters from the Young's modulus and the Poisson ratio.
If not, throw an exception. Note that a Poisson's ratio of -1 or 0.5 is _not_
allowed.
@tparam_nonsymbolic_scalar.
@throw std::exception if `youngs_modulus` is negative or if `poissons_ratio` is
not in (-1, 0.5). */
template <typename T>
LameParameters<T> CalcLameParameters(const T& youngs_modulus,
const T& poissons_ratio);
} // namespace internal
} // namespace fem
} // namespace multibody
} // namespace drake