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

Addition of undocumented and soon-to-be-documented example files for the Cahn-Hilliard solver #1307

Merged
merged 17 commits into from
Oct 16, 2024

Conversation

PierreLaurentinCS
Copy link
Collaborator

@PierreLaurentinCS PierreLaurentinCS commented Oct 3, 2024

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:

  • All in-code documentation related to this PR is up to date (Doxygen format)
  • Lethe documentation is up to date
  • New feature has unit test(s) (preferred) or application test(s), and restart files are in the generator folder
  • The branch is rebased onto master
  • Changelog (CHANGELOG.md) is up to date
  • Code is indented with indent-all and .prm files (examples and tests) with prm-indent

Pull request related list:

  • Labels are applied
  • There are at least 2 reviewers (or 1 if small feature) excluding the responsible for the merge
  • If this PR closes an issue or is related to a project, it is linked in the "Projects" or "Development" section
  • If the fix is temporary, an issue is opened
  • The PR description is cleaned and ready for merge

Copy link
Collaborator

@lpsaavedra lpsaavedra left a 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.

Copy link
Contributor

@blaisb blaisb left a 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.

Copy link
Collaborator

@OresteMarquis OresteMarquis left a 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.

@oguevremont
Copy link
Collaborator

Nice PR!

@blaisb
Copy link
Contributor

blaisb commented Oct 15, 2024

@PierreLaurentinCS can you rebase? I can then merge afterwards :)

@PierreLaurentinCS PierreLaurentinCS force-pushed the add_undocumented_chns_examples branch from b8c68b5 to 1eb66d1 Compare October 15, 2024 20:49
@blaisb blaisb merged commit c763e64 into master Oct 16, 2024
11 checks passed
@blaisb blaisb deleted the add_undocumented_chns_examples branch October 16, 2024 12:35
blaisb added a commit that referenced this pull request Nov 5, 2024
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]>
blaisb pushed a commit that referenced this pull request Nov 13, 2024
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).
OresteMarquis pushed a commit that referenced this pull request Nov 14, 2024
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants