-
Notifications
You must be signed in to change notification settings - Fork 203
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
Document the fact that you can pass a Tuple as closure
to models
#1879
Comments
There's no real validation of this feature, so it wasn't added to the docs. Perhaps you can come up with a nice validation experiment that we can use to gain confidence that it works correctly, and then add some documentation? |
Ah, I see. I thought it was validated.
It's hard for me to come up with a validation experiment for that I think. Are we testing that the viscosities are calculated and added correctly? (Thus a simple analytical example might suffice or an example where we just add two constant diffusities.) Or are we testing that the interface is working? |
You could use two AnisotropicDiffusivity closures (or 3?) that individually set the diffusivities in each direction. Then you can test that a model which uses a single closure with all three diffusivities returns the same result as a model with a 3-tuple of different closures. That actually might be good enough for a bona fide test, not just a validation. |
I'm thinking of an integration test that tests the whole pipeline: use of a 3-tuple when constructing a model, test that time-stepping works without an error, and test that the output is correct. It's probably easier to compare two models than to compare one model to an analytical solution. Comparison to an analytical solution is tricky, usually we have to invoke an arbitrary tolerance. |
Good point. Adding 3 separate constant diffusivities is a good idea, but it wouldn't test any LES closures (where the fields have to actually be computed). Do you think that'd be necessary? Another possibility is to compare a model with |
That's a good test too! Might be nice to do both tests in fact. |
Any suggestion as to where the tests would go? |
Also I think just doing the proposed test with a mix of LES closure and I think we should also run the tests for different mixes of |
I couldn't find any page in docs that explains that the models can take a tuple of closures. I guess it should be here?
PS:
closure
is okay, but maybe it's deprecated behavior or something? Possibly depends on Cleaning up TurbulenceClosures (especially those for large eddy simulation) #1381The text was updated successfully, but these errors were encountered: