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

Vof momentum monitoring #1073

Merged
merged 12 commits into from
Mar 21, 2024
Merged

Vof momentum monitoring #1073

merged 12 commits into from
Mar 21, 2024

Conversation

blaisb
Copy link
Contributor

@blaisb blaisb commented Mar 19, 2024

Description of the problem

  • For some cases we are running, it is relevant to monitor both the mass and the momentum in VOF simulations

Description of the solution

  • Add momentum monitoring to the mass monitoring. I don't think it's worth it to make multiple files, instead I appended the information to the existing file.

How Has This Been Tested?

  • Tested on some of our regular benchmark and the results make sense.

Documentation

  • Updated documentation accordingly

Future changes

  • The parameter monitor mass conservation is maybe not the most appropriate right now, but I don't want to break the prm file in this PR. We could have a parameter called monitor conservation instead, of maybe monitoring mass and momentum, but i 'd rather postpone this change because it's only esthetics

Copy link
Collaborator

@hepap hepap 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 to have this new feature!

source/solvers/vof.cc Outdated Show resolved Hide resolved
@@ -7,8 +7,8 @@ Running on 1 MPI rank(s)...
----------------------
VOF Mass Conservation
----------------------
time surface_fluid_0 mass_per_length_fluid_0 surface_fluid_1 mass_per_length_fluid_1 sharpening_threshold
0.0000e+00 6.5778e-01 7.8933e-01 3.4222e-01 3.4222e+02 5.0000e-01
time surface_fluid_0 mass_per_length_fluid_0 momentum-x_fluid_0 momentum-y_fluid_0 surface_fluid_1 mass_per_length_fluid_1 momentum-x_fluid_1 momentum-y_fluid_1 sharpening_threshold
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could it be useful to have to have the total mass and total momentum output as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Someone can easily calculate those by adding the two columns in their own script. I'm not sure this is necessary :)

Copy link
Collaborator

@AmishgaAlphonius AmishgaAlphonius left a comment

Choose a reason for hiding this comment

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

Great addition! Thanks! :)

CHANGELOG.md Outdated Show resolved Hide resolved
include/solvers/vof.h Outdated Show resolved Hide resolved
include/solvers/vof.h Show resolved Hide resolved
source/core/parameters.cc Outdated Show resolved Hide resolved
source/solvers/vof.cc Outdated Show resolved Hide resolved
blaisb and others added 4 commits March 19, 2024 17:42
Co-authored-by: Amishga Alphonius <[email protected]>
Co-authored-by: Amishga Alphonius <[email protected]>
Co-authored-by: Amishga Alphonius <[email protected]>
blaisb and others added 2 commits March 20, 2024 10:43
@blaisb blaisb merged commit 73306f4 into master Mar 21, 2024
8 checks passed
@blaisb blaisb deleted the vof_momentum_monitoring branch March 21, 2024 12:46
M-Badri pushed a commit to M-Badri/lethe that referenced this pull request Sep 29, 2024
Description of the problem
For some cases we are running, it is relevant to monitor both the mass and the momentum in VOF simulations

Description of the solution
Add momentum monitoring to the mass monitoring. I don't think it's worth it to make multiple files, instead I appended the information to the existing file.

How Has This Been Tested?
Tested on some of our regular benchmark and the results make sense.

Documentation
Updated documentation accordingly
Future changes
The parameter monitor mass conservation is maybe not the most appropriate right now, but I don't want to break the prm file in this PR. We could have a parameter called monitor conservation instead, of maybe monitoring mass and momentum, but i 'd rather postpone this change because it's only esthetics

Co-authored-by: hepap <[email protected]>
Co-authored-by: Amishga Alphonius <[email protected]>
Former-commit-id: 73306f4
blaisb added a commit that referenced this pull request Sep 30, 2024
Description of the problem
For some cases we are running, it is relevant to monitor both the mass and the momentum in VOF simulations

Description of the solution
Add momentum monitoring to the mass monitoring. I don't think it's worth it to make multiple files, instead I appended the information to the existing file.

How Has This Been Tested?
Tested on some of our regular benchmark and the results make sense.

Documentation
Updated documentation accordingly
Future changes
The parameter monitor mass conservation is maybe not the most appropriate right now, but I don't want to break the prm file in this PR. We could have a parameter called monitor conservation instead, of maybe monitoring mass and momentum, but i 'd rather postpone this change because it's only esthetics

Co-authored-by: hepap <[email protected]>
Co-authored-by: Amishga Alphonius <[email protected]>
Former-commit-id: 73306f4
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.

3 participants