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

Correct DCDD stabilization in VOF #1103

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Conversation

AmishgaAlphonius
Copy link
Collaborator

@AmishgaAlphonius AmishgaAlphonius commented Apr 25, 2024

Description of the problem

  • The DCDD VOF stabilization term taken form Tezduyar (2003) had minor a mistake in it. A square was missing.

Description of the solution

  • The missing square was added to the stabilization term.

How Has This Been Tested?

The following tests were updated due to the small changes in computed values :

  • lethe-fluid/gls_droplet_marangoni_effect

  • lethe-fluid/gls_vof_1_isothermal_compressible_fluid

  • lethe-fluid/gls_vof_2_isothermal_compressible_fluids

  • lethe-fluid/gls_vof_dirichlet_boundary_condition

  • lethe-fluid/gls_vof_ht_adapt-dissipation

  • lethe-fluid/gls_vof_hydrostat_initial_refine

  • lethe-fluid/gls_vof_hydrostat_mesh-adapt

  • lethe-fluid/gls_vof_periodic_boundary_condition

  • lethe-fluid/gls_vof_static_droplet_surface_tension_force_with_tanh_filter

  • lethe-fluid/gls_vof_tanh_filter

  • lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain

  • lethe-fluid/heat_transfer_vof_weakly_compressible_flow

  • lethe-fluid/time_dependent_boundaries_vof

  • When tested with the rising bubble case, there seems to be no noticeable difference from before the correction.

Documentation

Documentation on VOF's theory was updated.

  • doc/source/theory/multiphysics/vof.rst

Comments

  • It would be interresting to study the impact of this DCDD stabilization term and in which case it really has a great influence.

Reference

T. E. Tezduyar, “Computation of moving boundaries and interfaces and stabilization parameters,” Int. J. Numer. Methods Fluids, vol. 43, no. 5, pp. 555–575, 2003, doi: 10.1002/fld.505.

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.

1 minor thing to fix, ping me when this is done and this will be good to merge

@@ -77,7 +77,7 @@ VOFAssemblerCore<dim>::assemble_matrix(VOFScratchData<dim> &scratch_data,
Tensor<1, dim> velocity_unit_vector =
velocity / (velocity.norm() + 1e-12);
const Tensor<2, dim> k_corr =
(gradient_unit_vector * velocity_unit_vector) *
std::pow(gradient_unit_vector * velocity_unit_vector, 2) *
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use instead https://www.dealii.org/current/doxygen/deal.II/namespaceUtilities.html#a834c6b595ada6f8e73c78d9bbd8ec551

This way this is done at compile time since you know the power at compile time. This is always better :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll change all the ones in the file ! :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@blaisb It's done ! There's only the CI left ! :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for going the extra mile and cleaning things up
:)

@@ -222,7 +222,7 @@ VOFAssemblerCore<dim>::assemble_rhs(VOFScratchData<dim> &scratch_data,
Tensor<1, dim> velocity_unit_vector =
velocity / (velocity.norm() + 1e-12);
const Tensor<2, dim> k_corr =
(gradient_unit_vector * velocity_unit_vector) *
std::pow(gradient_unit_vector * velocity_unit_vector, 2) *
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@AmishgaAlphonius AmishgaAlphonius force-pushed the update-vof-stabilization-in-doc branch from b4a2c51 to 6fd87dd Compare April 25, 2024 17:18
@AmishgaAlphonius AmishgaAlphonius force-pushed the update-vof-stabilization-in-doc branch from 6fd87dd to c5fb3b1 Compare April 25, 2024 18:07
@blaisb blaisb merged commit c0859a0 into master Apr 26, 2024
8 checks passed
@blaisb blaisb deleted the update-vof-stabilization-in-doc branch April 26, 2024 11:52
yashuuzi pushed a commit that referenced this pull request May 6, 2024
Description of the problem
The DCDD VOF stabilization term taken form Tezduyar (2003) had minor a mistake in it. A square was missing.

Description of the solution
The missing square was added to the stabilization term.

How Has This Been Tested?
The following tests were updated due to the small changes in computed values :
lethe-fluid/gls_droplet_marangoni_effect

lethe-fluid/gls_vof_1_isothermal_compressible_fluid

lethe-fluid/gls_vof_2_isothermal_compressible_fluids

lethe-fluid/gls_vof_dirichlet_boundary_condition

lethe-fluid/gls_vof_ht_adapt-dissipation

lethe-fluid/gls_vof_hydrostat_initial_refine

lethe-fluid/gls_vof_hydrostat_mesh-adapt

lethe-fluid/gls_vof_periodic_boundary_condition

lethe-fluid/gls_vof_static_droplet_surface_tension_force_with_tanh_filter

lethe-fluid/gls_vof_tanh_filter

lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain

lethe-fluid/heat_transfer_vof_weakly_compressible_flow

lethe-fluid/time_dependent_boundaries_vof

When tested with the rising bubble case, there seems to be no noticeable difference from before the correction.

Documentation
Documentation on VOF's theory was updated.

doc/source/theory/multiphysics/vof.rst
Comments
It would be interresting to study the impact of this DCDD stabilization term and in which case it really has a great influence.
Reference
T. E. Tezduyar, “Computation of moving boundaries and interfaces and stabilization parameters,” Int. J. Numer. Methods Fluids, vol. 43, no. 5, pp. 555–575, 2003, doi: 10.1002/fld.505.
M-Badri pushed a commit to M-Badri/lethe that referenced this pull request Sep 29, 2024
Description of the problem
The DCDD VOF stabilization term taken form Tezduyar (2003) had minor a mistake in it. A square was missing.

Description of the solution
The missing square was added to the stabilization term.

How Has This Been Tested?
The following tests were updated due to the small changes in computed values :
lethe-fluid/gls_droplet_marangoni_effect

lethe-fluid/gls_vof_1_isothermal_compressible_fluid

lethe-fluid/gls_vof_2_isothermal_compressible_fluids

lethe-fluid/gls_vof_dirichlet_boundary_condition

lethe-fluid/gls_vof_ht_adapt-dissipation

lethe-fluid/gls_vof_hydrostat_initial_refine

lethe-fluid/gls_vof_hydrostat_mesh-adapt

lethe-fluid/gls_vof_periodic_boundary_condition

lethe-fluid/gls_vof_static_droplet_surface_tension_force_with_tanh_filter

lethe-fluid/gls_vof_tanh_filter

lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain

lethe-fluid/heat_transfer_vof_weakly_compressible_flow

lethe-fluid/time_dependent_boundaries_vof

When tested with the rising bubble case, there seems to be no noticeable difference from before the correction.

Documentation
Documentation on VOF's theory was updated.

doc/source/theory/multiphysics/vof.rst
Comments
It would be interresting to study the impact of this DCDD stabilization term and in which case it really has a great influence.
Reference
T. E. Tezduyar, “Computation of moving boundaries and interfaces and stabilization parameters,” Int. J. Numer. Methods Fluids, vol. 43, no. 5, pp. 555–575, 2003, doi: 10.1002/fld.505.

Former-commit-id: c0859a0
blaisb pushed a commit that referenced this pull request Sep 30, 2024
Description of the problem
The DCDD VOF stabilization term taken form Tezduyar (2003) had minor a mistake in it. A square was missing.

Description of the solution
The missing square was added to the stabilization term.

How Has This Been Tested?
The following tests were updated due to the small changes in computed values :
lethe-fluid/gls_droplet_marangoni_effect

lethe-fluid/gls_vof_1_isothermal_compressible_fluid

lethe-fluid/gls_vof_2_isothermal_compressible_fluids

lethe-fluid/gls_vof_dirichlet_boundary_condition

lethe-fluid/gls_vof_ht_adapt-dissipation

lethe-fluid/gls_vof_hydrostat_initial_refine

lethe-fluid/gls_vof_hydrostat_mesh-adapt

lethe-fluid/gls_vof_periodic_boundary_condition

lethe-fluid/gls_vof_static_droplet_surface_tension_force_with_tanh_filter

lethe-fluid/gls_vof_tanh_filter

lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain

lethe-fluid/heat_transfer_vof_weakly_compressible_flow

lethe-fluid/time_dependent_boundaries_vof

When tested with the rising bubble case, there seems to be no noticeable difference from before the correction.

Documentation
Documentation on VOF's theory was updated.

doc/source/theory/multiphysics/vof.rst
Comments
It would be interresting to study the impact of this DCDD stabilization term and in which case it really has a great influence.
Reference
T. E. Tezduyar, “Computation of moving boundaries and interfaces and stabilization parameters,” Int. J. Numer. Methods Fluids, vol. 43, no. 5, pp. 555–575, 2003, doi: 10.1002/fld.505.

Former-commit-id: c0859a0
@AmishgaAlphonius AmishgaAlphonius mentioned this pull request Nov 28, 2024
11 tasks
blaisb pushed a commit that referenced this pull request Nov 29, 2024
Description
Updates the following example before Lethe 1.0 release:

Dam-break
Rayleigh-Taylor instability
Capillary wave
Air bubble compression
Sloshing in a rectangular tank
Additionally, this PR reverts the squared term in the VOF DCDD stabilization correctional direction vector (#1103) to the power 1.
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