-
Notifications
You must be signed in to change notification settings - Fork 59
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
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.
Awesome, thanks for the nice change!
You will need to rebase @AmishgaAlphonius then I can merge! |
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.
Much nicer output :)
cb36588
to
7df54c0
Compare
Done ! :) |
* @brief Generate a table from a vector of scalars (independent variable) and | ||
* a vector of vectors of scalars (dependent variables). |
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.
* @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). |
* @param[in] dependent_vector Vector of vectors of scalar values containing | ||
* dependant variables values. |
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.
* @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. |
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
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
Description of the problem
calculate mass conservation
in thepost-processing
was enabled (default) and theverbosity
was set toverbose
, 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
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
set_precision
in themake_table
functions toset_scientific
as default.Comments
make_table_scalars_vectors
function has been added in utilities.h/.cc.make_table
functions has been added, namelydisplay_scientific_notation
to decide if the display of table values is displayed at a fixed decimal or in scientific notation.