-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add 3D advection-diffusion #57
Conversation
All seems to be working except the test for a time varying flow in 3D fails. Not sure why yet.
Had a wrong variable in `calc_N!`. Fixed now all tests pass. Need to do some beautifications so that indenting is the same.
Code alignment and further homogenise docstrings.
@jbisits I thought we change the diffusivities so that κ is x. It's a bit more intuitive now that we have 1D, 2D, 3D. |
|
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.
Nice work. Let's figure out what's happening with the tests before we merge.
I don't think an example is needed. |
OK, fixed the tests! I had broken the |
This PR adds functionality to advect-diffuse a passive tracer in a 3D domain. It adds a new method to
TracerAdvectionDiffusion.Problem
that takes in a flow of typeThreeDAdvectingFlow
. The setup of theProblem
is the same as for the one and two dimensional methods already there.I have written some tests but have not written an example. With the setup and simulation being so similar to the 1D and 2D cases do you think it necessary to have an example for the 3D advection-diffusion? Happy to write one just thought would see what you thought first.
I also have not updated any documentation files yet (e.g. the manual) but can do so if you think everything looks to be performing ok.