CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

When I simulate the gas-liquid flow with VOF model, it always divergence,is the mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2023, 22:39
Default When I simulate the gas-liquid flow with VOF model, it always divergence,is the mesh
  #1
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
When I simulate the gas-liquid flow with VOF model, it always divergence,is the mesh problem ? Do I need dense the mesh in the gas-liquid interface? I try to use mesh adaption, but it does not work, it make the case divergence more quickly. How can I solve the problems?
hitzhwan is offline   Reply With Quote

Old   October 9, 2023, 19:30
Default
  #2
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Divergence with the VOF model is *almost* always caused by too large of a time step. Make sure the CFL number is not going above 1 for the interface. Courant = velocity(time step/mesh length) for VOF.
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 10, 2023, 03:46
Default Hi,but for the coupled scheme, the default CFL is 200, should I set it 1?
  #3
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
Divergence with the VOF model is *almost* always caused by too large of a time step. Make sure the CFL number is not going above 1 for the interface. Courant = velocity(time step/mesh length) for VOF.
Hi,but for the coupled scheme, the default CFL is 200, should I set it 1?
hitzhwan is offline   Reply With Quote

Old   October 10, 2023, 10:35
Default
  #4
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
Hi,but for the coupled scheme, the default CFL is 200, should I set it 1?
Are you running a transient simulation?
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 10, 2023, 21:46
Default Yes,that is right.
  #5
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
Are you running a transient simulation?
Yes,that is right.
hitzhwan is offline   Reply With Quote

Old   October 10, 2023, 21:58
Default
  #6
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
Yes,that is right.
Ok, then the Courant number you want is dependent on your time step and mesh size. The Courant number under the coupled scheme is different, and you can disregard it for now. You can approximate the multiphase Courant number by hand, or use adaptive time stepping. If you use adaptive, you can set the global Courant number to 1 and fluent will adjust the time step automatically to achieve the set value.

The Courant number, for multiphase, can be thought of as how fast the interface between the two fluids moves across the mesh. Ideally, the interface will only move <1 mesh elements per timestep. For more complex simulations the number can be relaxed to 3-5, but usually at the cost of accuracy.
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 10, 2023, 22:25
Default Thank you so much,but I have three questions for you: 1)so you mean the Courant num
  #7
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
Ok, then the Courant number you want is dependent on your time step and mesh size. The Courant number under the coupled scheme is different, and you can disregard it for now. You can approximate the multiphase Courant number by hand, or use adaptive time stepping. If you use adaptive, you can set the global Courant number to 1 and fluent will adjust the time step automatically to achieve the set value.

The Courant number, for multiphase, can be thought of as how fast the interface between the two fluids moves across the mesh. Ideally, the interface will only move <1 mesh elements per timestep. For more complex simulations the number can be relaxed to 3-5, but usually at the cost of accuracy.
Thank you so much,but I have three questions for you:

1)so you mean the Courant number under the coupled scheme does not have any function, it real Courant number only depends on the time step and mesh size, is that right .

2)In addition, you provide me a useful method to use the adaptive time stepping, but that have a problem.Because I need monitor the data by the time step, if it is adaptive tiem stepping, I cannot process the data by known flow time, how to solve this problem?

3. If it always divergence and I want to use the fixed time step, and the boundary condition has no problem, does that mean the only way is to change the mesh model make it more available? How can I decide it?
hitzhwan is offline   Reply With Quote

Old   October 10, 2023, 22:45
Default
  #8
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
Thank you so much,but I have three questions for you:

1)so you mean the Courant number under the coupled scheme does not have any function, it real Courant number only depends on the time step and mesh size, is that right .

2)In addition, you provide me a useful method to use the adaptive time stepping, but that have a problem.Because I need monitor the data by the time step, if it is adaptive tiem stepping, I cannot process the data by known flow time, how to solve this problem?

3. If it always divergence and I want to use the fixed time step, and the boundary condition has no problem, does that mean the only way is to change the mesh model make it more available? How can I decide it?
1) It does have a purpose, but in your case the default setting should be okay. The Courant number you care about is only dependent on mesh size and time step.

2) you can you a fixed timestep, but have to make sure it satisfies the Courant <1 condition throughout the whole simulation. It will add some time to the calculation, but should be okay

3) You are correct that you have two parameters to change: mesh size and time step. The mesh size should be set according to the physics and simulation problem. The mesh should be fine enough to capture the physics of interest, but not too refined that your time step has to be ridiculously small. I would recommend starting with a coarse mesh, and therefore larger time step, to check your initial simulation. If you're error is too high, then you can go back and refine further.
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 10, 2023, 23:11
Default Thank you so much.
  #9
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
1) It does have a purpose, but in your case the default setting should be okay. The Courant number you care about is only dependent on mesh size and time step.

2) you can you a fixed timestep, but have to make sure it satisfies the Courant <1 condition throughout the whole simulation. It will add some time to the calculation, but should be okay

3) You are correct that you have two parameters to change: mesh size and time step. The mesh size should be set according to the physics and simulation problem. The mesh should be fine enough to capture the physics of interest, but not too refined that your time step has to be ridiculously small. I would recommend starting with a coarse mesh, and therefore larger time step, to check your initial simulation. If you're error is too high, then you can go back and refine further.

Thank you so much.

1) What is the detail purpose?

2) I set 1e-5 fixed time step which can assure Courant <1 initially, but it abruptly divergence on the calculation progress, how to solve it?

3) Do you find a strange phenonmen, when I do the mesh independency study, when I refine the mesh number, the results always change a lot (about 5% deviation) and made my time step very small, have you met this problem, how to solve it?
hitzhwan is offline   Reply With Quote

Old   October 11, 2023, 11:43
Default
  #10
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
Thank you so much.

1) What is the detail purpose?

2) I set 1e-5 fixed time step which can assure Courant <1 initially, but it abruptly divergence on the calculation progress, how to solve it?

3) Do you find a strange phenonmen, when I do the mesh independency study, when I refine the mesh number, the results always change a lot (about 5% deviation) and made my time step very small, have you met this problem, how to solve it?
1) See this thread for details: Fluent Courant Number Value ?!!

2) You probably need a lower timestep. As stated eariler, the fixed timestep has to cover the entire simulation. So as your fluid accelerates the Courant number will increase as well. At 1e-5 it is probably okay for the intial stages of flow, but not so much as the flow develops.

3) The timestep decreasing with refined mesh makes sense. The change in error is a complex thing to pin down. There can be a lot of sources of error, not just the mesh. If changing the mesh is not changing the error, then it is likely coming from another source (Boundary conditions, numerical model, etc.)
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 11, 2023, 22:35
Default 1. Thank you for your sharing. 2. My timestep is 1e-5, if I lower it to 1e-6, the
  #11
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
1) See this thread for details: Fluent Courant Number Value ?!!

2) You probably need a lower timestep. As stated eariler, the fixed timestep has to cover the entire simulation. So as your fluid accelerates the Courant number will increase as well. At 1e-5 it is probably okay for the intial stages of flow, but not so much as the flow develops.

3) The timestep decreasing with refined mesh makes sense. The change in error is a complex thing to pin down. There can be a lot of sources of error, not just the mesh. If changing the mesh is not changing the error, then it is likely coming from another source (Boundary conditions, numerical model, etc.)
1. Thank you for your sharing.

2. My timestep is 1e-5, if I lower it to 1e-6, the calculation time would be too large to burden, how can I solve it?

3. I find the another sources have no problem, but the results change with the increasing of mesh numbers, it will not reach steady until one mesh number, what is the reason? Have you met this problem?
hitzhwan is offline   Reply With Quote

Old   October 11, 2023, 23:02
Default
  #12
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
1. Thank you for your sharing.

2. My timestep is 1e-5, if I lower it to 1e-6, the calculation time would be too large to burden, how can I solve it?

3. I find the another sources have no problem, but the results change with the increasing of mesh numbers, it will not reach steady until one mesh number, what is the reason? Have you met this problem?
2) Yeah that is the challenge with the VOF model. Your only option is to increase the mesh size, but if you need it small to capture physics then you'll have to deal with the small timestep to maintain accuracy. I have had VOF models that require 1e-8 or less for parts of the simulation, sadly.

3) I am unsure of exactly the problem you are having. I would need to know more about what your setup is and what variables you are tracking.
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 12, 2023, 04:26
Default 1)How long does it take you to calculate for the case with 1e-8, have you tried the a
  #13
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
2) Yeah that is the challenge with the VOF model. Your only option is to increase the mesh size, but if you need it small to capture physics then you'll have to deal with the small timestep to maintain accuracy. I have had VOF models that require 1e-8 or less for parts of the simulation, sadly.

3) I am unsure of exactly the problem you are having. I would need to know more about what your setup is and what variables you are tracking.
1)How long does it take you to calculate for the case with 1e-8, have you tried the adaptive mesh function, can it help your case? When I use the adaptive mesh, it may lead disvergence, what is the reason?

2)I mean the mesh independency study, the variable can be any you want ,it is just to make sure the calculation model is accurate with the mesh model.
hitzhwan is offline   Reply With Quote

Old   October 12, 2023, 09:21
Default
  #14
Senior Member
 
CFDKareem's Avatar
 
Kareem
Join Date: Nov 2022
Location: New York
Posts: 118
Rep Power: 3
CFDKareem is on a distinguished road
Quote:
Originally Posted by hitzhwan View Post
1)How long does it take you to calculate for the case with 1e-8, have you tried the adaptive mesh function, can it help your case? When I use the adaptive mesh, it may lead disvergence, what is the reason?

2)I mean the mesh independency study, the variable can be any you want ,it is just to make sure the calculation model is accurate with the mesh model.
For my work I prefer a fixed mesh, but use adaptive time stepping to help speed up the simulation. Even through the timestep is variable, I set up an automatic export of the data at a consistent time step. These models can take anywhere from 2-24 hours to solve depending on the mesh density and exact physics being tracked. The total time modeled in my work is usally around .01 seconds.
__________________
Please like the answer if it helped!

Video Tutorials and Tips: https://www.youtube.com/@cfdkareem/featured
CFDKareem is offline   Reply With Quote

Old   October 13, 2023, 23:00
Default “I set up an automatic export of the data at a consistent time step. ”,but the time s
  #15
Senior Member
 
Join Date: Dec 2017
Posts: 384
Rep Power: 9
hitzhwan is on a distinguished road
Quote:
Originally Posted by CFDKareem View Post
For my work I prefer a fixed mesh, but use adaptive time stepping to help speed up the simulation. Even through the timestep is variable, I set up an automatic export of the data at a consistent time step. These models can take anywhere from 2-24 hours to solve depending on the mesh density and exact physics being tracked. The total time modeled in my work is usally around .01 seconds.
“I set up an automatic export of the data at a consistent time step. ”,but the time step is not fixed, how can you process the data in flow time?


How many mesh number do you have for the 1e-8s time step, it only take less than 24 hours? What is parameters for you pc?
hitzhwan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
steady state vof for liquid jet in cross flow miana Fluent Multiphase 0 May 7, 2014 12:55
error message cuteapathy CFX 14 March 20, 2012 06:45
Moving mesh or VOF? Giovanni Main CFD Forum 16 September 24, 2001 08:25


All times are GMT -4. The time now is 09:59.