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

Strain rate partitioning #71

Closed
ArneSpang opened this issue Dec 20, 2022 · 4 comments
Closed

Strain rate partitioning #71

ArneSpang opened this issue Dec 20, 2022 · 4 comments

Comments

@ArneSpang
Copy link
Contributor

Hi everyone,
compute_τij looks very useful. Is it possible to also make it return the strain rate of the individual rheological components? This would be important for shear heating and/or grain size reduction. Alternatively, returning effective viscosities of the individual components would also work. I had a look but at this point, I cannot follow the source code anymore.

@albert-de-montserrat
Copy link
Member

albert-de-montserrat commented Dec 20, 2022

Rather than modifying compute_τij, once you know the stress tensor/invariant after running compute_τij, you could add a function similar to compute_εII but using ntuple instead of nreduce, that should give you a tuple with the partitioned strain rate:

compute_elements_εII(v::CompositeRheology{T,N}, τII, args) where {T, N} = ntuple(i -> first(compute_εII( v.elements[i], τII, args)), Val(N))

@ArneSpang
Copy link
Contributor Author

Thank you for the quick response! I will try this out

@boriskaus
Copy link
Member

can this be closed?

@ArneSpang
Copy link
Contributor Author

Yeah, the function was included around the last hackathon

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

No branches or pull requests

3 participants