-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
636 add homogenization schemes for distributions of ellipsoids #643
636 add homogenization schemes for distributions of ellipsoids #643
Conversation
…ocalisationTensor and SphereLocalisationTensor
…ocalisationTensor
Co-authored-by: Thomas Helfer <thomas.helfer@cea.fr>
… for general ellipsoid
…ns-of-the-eshelby-tensors' into 632-tfel-material-add-computations-of-the-eshelby-tensors merging some modifs done in docs/web at the same time at those made in Eshelby.ixx
…rs' into 636-add-homogenization-schemes-for-distributions-of-ellipsoids ok
include/TFEL/Material/Eshelby.ixx
Outdated
assert(nu<=0.5); | ||
assert(nu>=-1); | ||
assert(a>LengthType{0}); | ||
assert(b>LengthType{0}); | ||
assert(c>LengthType{0}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use tfel::reportContratViolation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
include/TFEL/Material/Eshelby.ixx
Outdated
template <typename LengthType> | ||
TFEL_HOST_DEVICE std::array<int,3> sort_ind(const LengthType& a, const LengthType& b, const LengthType& c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to hide this in a namespace internal
and call it sortEllipsoidLengths
or something like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
include/TFEL/Material/Eshelby.ixx
Outdated
const auto n_2=nabc_[sig[1]]; | ||
using namespace tfel::math; | ||
const auto n_3=cross_product<real>(n_1,n_2); | ||
const rotation_matrix<real> r={n_1[0],n_1[1],n_1[2],n_2[0],n_2[1],n_2[2],n_3[0],n_3[1],n_3[2]}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const rotation_matrix<real> r={n_1[0],n_1[1],n_1[2],n_2[0],n_2[1],n_2[2],n_3[0],n_3[1],n_3[2]}; | |
const rotation_matrix<real> r={n_1[0],n_1[1],n_1[2], // | |
n_2[0],n_2[1],n_2[2], // | |
n_3[0],n_3[1],n_3[2]}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
* \param [in] A: mean strain localisation tensor of inclusions | ||
*/ | ||
template <typename real, typename StressType> | ||
TFEL_HOST_DEVICE const tfel::math::st2tost2<3u,StressType> diluteScheme( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it limited to 3D ?
I would suggest more explicit names:
TFEL_HOST_DEVICE const tfel::math::st2tost2<3u,StressType> diluteScheme( | |
TFEL_HOST_DEVICE const tfel::math::st2tost2<3u,StressType> computeDiluteSchemeElasticStiffness( |
…eshelby-tensors ok
Co-authored-by: Thomas Helfer <thomas.helfer@cea.fr>
Co-authored-by: Thomas Helfer <thomas.helfer@cea.fr>
…tViolation messages
…rs' into 636-add-homogenization-schemes-for-distributions-of-ellipsoids ok
…c inclusions and returned isotropic moduli
…simplified things
This branch contains the homogenization schemes