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

Added compute_strain_rate_and_derivative to ConstantViscosityPrefactors, with unit test #3800

Conversation

bobmyhill
Copy link
Member

@bobmyhill bobmyhill commented Aug 14, 2020

This PR adds a compute_strain_rate_and_derivative function to the ConstantViscosityPrefactors rheology module.
It also adds a new test, rheology_checker.prm, that is essentially a unit tester for otherwise hard-to-reach functions within the rheology module. I intend to add to this test as I add compute_strain_rate_and_derivative to more rheology plugins.

This PR is a continuation of the quest started in #3759.

@bobmyhill bobmyhill force-pushed the add_strain_rate_deriv_to_constant_viscosity branch from 14934dc to c865b8e Compare August 15, 2020 09:18
@bobmyhill bobmyhill force-pushed the add_strain_rate_deriv_to_constant_viscosity branch from c865b8e to 4d235e8 Compare August 15, 2020 09:21
@bobmyhill bobmyhill changed the title added compute_strain_rate_and_derivative to ConstantViscosityPrefactors [WIP] added compute_strain_rate_and_derivative to ConstantViscosityPrefactors Aug 15, 2020
@bobmyhill bobmyhill changed the title [WIP] added compute_strain_rate_and_derivative to ConstantViscosityPrefactors Added compute_strain_rate_and_derivative to ConstantViscosityPrefactors, with unit test Aug 15, 2020
@bobmyhill
Copy link
Member Author

bobmyhill commented Aug 16, 2020

I thought about converting this to a true unit test in the unit test directory, but this way requires the same amount of code. The internal functions of the rheology modules are impossible to access without simulator_access.

Copy link
Member

@gassmoeller gassmoeller left a comment

Choose a reason for hiding this comment

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

Hmm, I think this is correct, but I would prefer to not add functions that are not in active use (they tend to get outdated). Do you have plans to use this as part of visco_plastic or diffusion_dislocation?

@bobmyhill
Copy link
Member Author

That was the original intention, but in coding up a generalisation of diff-disl yesterday, I realised that I didn't actually use the constant viscosity strain rate or derivatives directly. I jumped the gun a bit, sorry about that. So for now I think this PR can be closed.

@bobmyhill bobmyhill closed this Aug 19, 2020
@gassmoeller
Copy link
Member

Thanks, no need to be sorry. Keep the branch around in case we need it in the future 👍

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.

None yet

2 participants