-
Notifications
You must be signed in to change notification settings - Fork 60
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
Addition of undocumented and soon-to-be-documented example files for the Cahn-Hilliard solver #1307
Conversation
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.
Very nice that you are adding all of these examples to Lethe. I have a few comments, mostly formatting and minor things, but overall I think the python scripts are well documented. I also really like that you added the requirements for the post-processing, never really thought about this for the examples.
examples/multiphysics/bubble-detachment-shear-flow/bubble-detachment-shear-flow.prm
Outdated
Show resolved
Hide resolved
...tiphysics/bubble-detachment-shear-flow/multiple_folders_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/jurins-law-2d/jurins_law_multiple_folders.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/jurins-law-2d/postprocessing_jurins_law_dimensioned.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/static-bubble-multiple-folders.py
Outdated
Show resolved
Hide resolved
bd28923
to
b20d932
Compare
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.
Some initial comments for this.
I would review more indepth the follow-up PR with the example RST file.
examples/multiphysics/bubble-detachment-shear-flow/bubble-detachment-shear-flow.prm
Outdated
Show resolved
Hide resolved
examples/multiphysics/bubble-detachment-shear-flow/bubble-detachment-shear-flow.prm
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/outputs/R_0.35/static-bubble-chns.prm
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/outputs/R_0.40/static-bubble-chns.prm
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/postprocessing_static_bubble.py
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/static-bubble-multiple-folders.py
Show resolved
Hide resolved
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 Pierre, nothing much to say! Only some clarifications and typos I think.
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...tiphysics/bubble-detachment-shear-flow/multiple_folders_bubble_detachment_post_processing.py
Show resolved
Hide resolved
examples/multiphysics/jurins-law-2d/jurins_law_multiple_folders.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/jurins-law-2d/postprocessing_jurins_law_dimensioned.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/static-bubble-multiple-folders.py
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
...les/multiphysics/bubble-detachment-shear-flow/functions_bubble_detachment_post_processing.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/jurins-law-2d/jurins_law_multiple_folders.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/jurins-law-2d/postprocessing_jurins_law_dimensioned.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/outputs/R_0.15/static-bubble-chns.prm
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/postprocessing_static_bubble.py
Outdated
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/static-bubble-multiple-folders.py
Show resolved
Hide resolved
examples/multiphysics/static-bubble-chns/static-bubble-multiple-folders.py
Show resolved
Hide resolved
Nice PR! |
b20d932
to
b859e6d
Compare
@PierreLaurentinCS can you rebase? I can then merge afterwards :) |
Co-authored-by: Laura Prieto Saavedra <[email protected]>
b8c68b5
to
1eb66d1
Compare
Description This is the first example of the Cahn-Hilliard-Navier-Stokes solver. It displays the use of angle of contact boundary conditions to solve a capillary rise problem in 2D. The numerical height difference is compared to that predicted by the Jurin's law and show excellent agreement . The pressure fields are qualitatively commented and show that the solver adequately describe pressure jumps due to an interface. A post processing python script is included with the example to reproduce the figures if needed. They were added in a previous PR (#1307) and already reviewed. EDIT There was a modification made to the implementation of the boundary conditions to make the example work with the new boundary conditions. An application test (cahn_hilliard_navier_stokes_jurins_law_2d) was added to ensure of the future stability of the solver Co-authored-by: Bruno Blais <[email protected]>
Description This is the second example of the Cahn-Hilliard-Navier-Stokes solver. The solver is used to simulate the detachment of bubbles in a shear flow in three dimensions. The quantities of interest (detachment time and volume) are compared to values from the literature. An excellent agreement is observed, which confirms that the CHNS solver is able to describe complex interface physics, involving break-up and jet formation. All the necessary files to run the parametric sweep are included (only on the shear rate) and python scripts are provided to reproduce the figures if needed (see the previous PR : #1307).
Description This is the second example of the Cahn-Hilliard-Navier-Stokes solver. The solver is used to simulate the detachment of bubbles in a shear flow in three dimensions. The quantities of interest (detachment time and volume) are compared to values from the literature. An excellent agreement is observed, which confirms that the CHNS solver is able to describe complex interface physics, involving break-up and jet formation. All the necessary files to run the parametric sweep are included (only on the shear rate) and python scripts are provided to reproduce the figures if needed (see the previous PR : #1307).
Description
In order to keep a trace of the work done with the Cahn-Hilliard-Navier-Stokes solver, five undocumented examples were added to the main branch along with their post-processing python scripts.
Two of these examples (jurin's law and bubble detachment in a shear flow) will have their own documentation entry in a near future.
Testing
I made sure the example run without error on the main branch. I also made sure the results obtained were correct.
I tried making the python scripts as documented as possible, each of the folder has its own requirements.txt file that contains the python module necessary to run the post-processing tools.
Miscellaneous (will be removed when merged)
Checklist (will be removed when merged)
See this page for more information about the pull request process.
Code related list:
Pull request related list: