Skip to content
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

Merged

Conversation

antoinecea
Copy link
Collaborator

This branch contains the homogenization schemes

antoinecea and others added 28 commits October 29, 2024 16:57
…ocalisationTensor and SphereLocalisationTensor
Co-authored-by: Thomas Helfer <thomas.helfer@cea.fr>
…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
@antoinecea antoinecea requested a review from thelfer November 11, 2024 21:01
docs/web/release-notes-5.0.md Outdated Show resolved Hide resolved
docs/web/release-notes-5.0.md Outdated Show resolved Hide resolved
Comment on lines 98 to 102
assert(nu<=0.5);
assert(nu>=-1);
assert(a>LengthType{0});
assert(b>LengthType{0});
assert(c>LengthType{0});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use tfel::reportContratViolation

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 173 to 174
template <typename LengthType>
TFEL_HOST_DEVICE std::array<int,3> sort_ind(const LengthType& a, const LengthType& b, const LengthType& c)
Copy link
Owner

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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]};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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]};

Copy link
Collaborator Author

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(
Copy link
Owner

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:

Suggested change
TFEL_HOST_DEVICE const tfel::math::st2tost2<3u,StressType> diluteScheme(
TFEL_HOST_DEVICE const tfel::math::st2tost2<3u,StressType> computeDiluteSchemeElasticStiffness(

@thelfer thelfer merged commit 2178e31 into master Nov 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants