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

Fix vof mass monitoring print #1062

Merged
merged 3 commits into from
Mar 14, 2024
Merged

Fix vof mass monitoring print #1062

merged 3 commits into from
Mar 14, 2024

Conversation

AmishgaAlphonius
Copy link
Collaborator

Description of the problem

  • When calculate mass conservation in the post-processing was enabled (default) and the verbosity was set to verbose, the mass conservation table was displayed on terminal at the end of the simulation. If a lot of time iterations were made, this could cover a significant chunk of the terminal window and might not be pertinent to have it their when .dat files is also outputted by the simulation.

Description of the solution

  • In a similar way to "VOF Barycenter", the output of the "VOF Mass Conservation" is now displayed at every time iteration on the terminal.

How Has This Been Tested?

  • Expected tests have been updated output :

    • applications_tests/lethe-fluid/gls_vof_1_isothermal_compressible_fluid.output
    • applications_tests/lethe-fluid/gls_vof_2_isothermal_compressible_fluids.output
    • applications_tests/lethe-fluid/gls_vof_dirichlet_boundary_condition.output
    • applications_tests/lethe-fluid/gls_vof_periodic_boundary_condition.output
    • applications_tests/lethe-fluid/time_dependent_boundaries_vof.output
  • Mass monitoring has been added to the following test to improve robustness:

    • applications_tests/lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain.prm (.output)

Future changes

  • Change all set_precision in the make_table functions to set_scientific as default.

Comments

  • A new make_table_scalars_vectors function has been added in utilities.h/.cc.
  • A new boolean argument in make_table functions has been added, namely display_scientific_notation to decide if the display of table values is displayed at a fixed decimal or in scientific notation.

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.

Awesome, thanks for the nice change!

@blaisb
Copy link
Contributor

blaisb commented Mar 13, 2024

You will need to rebase @AmishgaAlphonius then I can merge!

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.

Much nicer output :)

@AmishgaAlphonius
Copy link
Collaborator Author

You will need to rebase @AmishgaAlphonius then I can merge!

Done ! :)

@blaisb blaisb merged commit 82095ba into master Mar 14, 2024
8 checks passed
@blaisb blaisb deleted the fix-vof-mass-monitoring-print branch March 14, 2024 01:36
Comment on lines +78 to +79
* @brief Generate a table from a vector of scalars (independent variable) and
* a vector of vectors of scalars (dependent variables).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @brief Generate a table from a vector of scalars (independent variable) and
* a vector of vectors of scalars (dependent variables).
* @brief Generate a table from a vector of scalars (independent variable) and
* a vector of vectors (dependent variables).

Comment on lines +88 to +89
* @param[in] dependent_vector Vector of vectors of scalar values containing
* dependant variables values.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @param[in] dependent_vector Vector of vectors of scalar values containing
* dependant variables values.
* @param[in] dependent_vector Vector of vectors values containing
* dependant variables values.

M-Badri pushed a commit to M-Badri/lethe that referenced this pull request Sep 29, 2024
Description of the problem
When calculate mass conservation in the post-processing was enabled (default) and the verbosity was set to verbose, the mass conservation table was displayed on terminal at the end of the simulation. If a lot of time iterations were made, this could cover a significant chunk of the terminal window and might not be pertinent to have it their when .dat files is also outputted by the simulation.

Description of the solution
In a similar way to "VOF Barycenter", the output of the "VOF Mass Conservation" is now displayed at every time iteration on the terminal.
How Has This Been Tested?
Expected tests have been updated output :

applications_tests/lethe-fluid/gls_vof_1_isothermal_compressible_fluid.output
applications_tests/lethe-fluid/gls_vof_2_isothermal_compressible_fluids.output
applications_tests/lethe-fluid/gls_vof_dirichlet_boundary_condition.output
applications_tests/lethe-fluid/gls_vof_periodic_boundary_condition.output
applications_tests/lethe-fluid/time_dependent_boundaries_vof.output
Mass monitoring has been added to the following test to improve robustness:

applications_tests/lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain.prm (.output)

Future changes
Change all set_precision in the make_table functions to set_scientific as default.

Comments
A new make_table_scalars_vectors function has been added in utilities.h/.cc.
A new boolean argument in make_table functions has been added, namely display_scientific_notation to decide if the display of table values is displayed at a fixed decimal or in scientific notation.

Former-commit-id: 82095ba
blaisb pushed a commit that referenced this pull request Sep 30, 2024
Description of the problem
When calculate mass conservation in the post-processing was enabled (default) and the verbosity was set to verbose, the mass conservation table was displayed on terminal at the end of the simulation. If a lot of time iterations were made, this could cover a significant chunk of the terminal window and might not be pertinent to have it their when .dat files is also outputted by the simulation.

Description of the solution
In a similar way to "VOF Barycenter", the output of the "VOF Mass Conservation" is now displayed at every time iteration on the terminal.
How Has This Been Tested?
Expected tests have been updated output :

applications_tests/lethe-fluid/gls_vof_1_isothermal_compressible_fluid.output
applications_tests/lethe-fluid/gls_vof_2_isothermal_compressible_fluids.output
applications_tests/lethe-fluid/gls_vof_dirichlet_boundary_condition.output
applications_tests/lethe-fluid/gls_vof_periodic_boundary_condition.output
applications_tests/lethe-fluid/time_dependent_boundaries_vof.output
Mass monitoring has been added to the following test to improve robustness:

applications_tests/lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain.prm (.output)

Future changes
Change all set_precision in the make_table functions to set_scientific as default.

Comments
A new make_table_scalars_vectors function has been added in utilities.h/.cc.
A new boolean argument in make_table functions has been added, namely display_scientific_notation to decide if the display of table values is displayed at a fixed decimal or in scientific notation.

Former-commit-id: 82095ba
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.

4 participants