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

Courant number increase suddenly in the transient run

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2017, 20:51
Default Courant number increase suddenly in the transient run
  #1
New Member
 
Ian
Join Date: Oct 2013
Posts: 23
Rep Power: 12
windfire is on a distinguished road
Hello everyone,
i use CFX to simulate waterhammer, Courant number is less than 0.5 in the first two cycle ,when transient run after a two cycle of the pressure, Courant number increase suddenly and large than one, the rusult begin to oscillate, What could cause this? thank you!


2.JPG

??.JPG

1.JPG
windfire is offline   Reply With Quote

Old   December 25, 2017, 03:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Could be due to many things. It could be real, it could be a numerical artefact. If numerical artefact it could be divergence, too big a time step, and many others.

I recommend you use adaptive time steps homing in on 3-5 coeff loops per iteration. That tends to work better than Courant number for CFX.
ghorrocks is offline   Reply With Quote

Old   December 26, 2017, 21:12
Default
  #3
New Member
 
Ian
Join Date: Oct 2013
Posts: 23
Rep Power: 12
windfire is on a distinguished road
thank you for rely this question,i have used adaptive time steps, the pressure oscillate better when Courant less than 0.5, due to no-slip condition at the
hydraulically smooth pipe wall, pressure should not increase with time in thoery, but pressure increase with time actually, What could cause this? thank you!
Attached Images
File Type: jpg QQ??20171227095604.jpg (30.3 KB, 12 views)
File Type: jpg QQ??20171227095622.jpg (34.4 KB, 9 views)
windfire is offline   Reply With Quote

Old   December 28, 2017, 17:16
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
It could be vortex shedding, transition to turbulence or one of the many flow instabilities. And yes, they can build up over time as they get themselves going.

If you are confident your transient simulation is well converged and accurate then the effect is real. Have a look at the transient results and you should see some form of transient flow happening.
ghorrocks is offline   Reply With Quote

Old   December 28, 2017, 22:05
Default
  #5
New Member
 
Ian
Join Date: Oct 2013
Posts: 23
Rep Power: 12
windfire is on a distinguished road
Thank you Glenn,

i have changed initial time step from 0.001 to 0.01, the pressure oscillation begin to decrease, then i set up to 0.1, the pressure oscillation drop very fast in sevel time steps,because i simualte water hammer occurred in a horizontal pipe, outlet flow discharge sudden drop to zero in 0.5s, the time step have such a strong influence the results of the calculation? what could cause this? thank you!
Attached Images
File Type: jpg QQ??20171229105436.jpg (38.5 KB, 8 views)
File Type: jpg QQ??20171229104635.jpg (38.6 KB, 7 views)
File Type: jpg QQ??20171229104617.jpg (20.8 KB, 5 views)
windfire is offline   Reply With Quote

Old   December 29, 2017, 03:38
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
As you increase the time step size you are resolving the transient terms with less and less accuracy, and then some of the transient effects are either not present or muffled.

You need to do a sensitivity analysis where you make the time step size smaller (not bigger!) until the result converges. Or even better, use adaptive time stepping, homing in on 3-5 coeff loops per iteration and it will find the correct time step for you.
ghorrocks is offline   Reply With Quote

Old   January 2, 2018, 10:24
Default
  #7
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Is a water hammer simulation one where the acoustic Courant number is more critical, and the standard Courant number is meaningless? Pressure waves and such would tell me yes.
I performed a helium relief analysis which had pressure waves and I had to use time steps which related to the Courant number using the speed of sound in the fluid, not the fluid velocity itself. My standard Courant number was always 0.00, I have never seen that acoustic Courant number before in the output, why does it show up for you?
evcelica is offline   Reply With Quote

Old   January 2, 2018, 16:44
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
That is a good point Erik. You are correct, the acoustic Courant number (which is also known as the Courant-Lewy-Friedrichs or CFL number) is the important parameter for defining the time step. And I must admit that I am not sure the 3-5 coeff loops per iteration approach adequately handles this.

Many years ago I did lots of work on pressure waves in compressible flow and I used either a CFL number of around 0.5 or a time step size calculated to give CFL of approximately 0.5. I have not checked the 3-5 coeff loops per iteration approach gives reasonable time step sizes for this class of simulation.

Erik correctly points out that the incompressible Courant number (usually known as Courant Number) is meaningless in these type of flows and should not be used.
ghorrocks is offline   Reply With Quote

Old   January 2, 2018, 17:47
Default
  #9
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
CFL number of 0.5 sounds about right for what I did as well. I was initially shooting for ~1, but noticed it was always hovering around half of that. I believe I did have to use a maximum time step setting. Adaptive time stepping would increase too much and I would have time steps that would not converge, then it would decrease the time step and bounce back and forth at this unstable maximum. Setting the maximum time made it much more smooth and the simulation ran much faster.
evcelica is offline   Reply With Quote

Old   January 2, 2018, 18:11
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
For water hammer simulations the acoustic velocity is usually far greater than any fluid velocity, which means a fixed time step size gives pretty much constant CFL number for the entire simulation. In addition, second order time differencing looses significant accuracy when the time step size changes. This meant that for a lot of my work just using a fixed time step, calculated to give a CFL of around 0.5 was best. (Reference: https://opus.lib.uts.edu.au/handle/2100/248 and section 5.2.6 looks at time step size in a shock tube simulation. Note that this was done on CFX 4, which is quite different to the current CFX - but the time step required for good modelling of compressible flows is similar)

Note that first order time differencing is not so badly affected by time step size changes, but second order is quite sensitive to it.
ghorrocks is offline   Reply With Quote

Old   January 3, 2018, 10:03
Default
  #11
New Member
 
Ian
Join Date: Oct 2013
Posts: 23
Rep Power: 12
windfire is on a distinguished road
Thank you all, i have made sensitivity analysis of time step, but all results seems to make me satisfy, i also simulated water hammer occurred in a 3m pipe , but this model get a stable results, is it length of pipe influence results more obvious?

PS:Attach Files is stable results of 3m, i decrease discharge of previous model,i found that the stability also strengthen.
Attached Images
File Type: jpg QQ??20180104094721.jpg (39.1 KB, 8 views)

Last edited by windfire; January 3, 2018 at 21:10.
windfire is offline   Reply With Quote

Old   January 3, 2018, 17:28
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Please post your output file and an image showing the results. A comparison between the 3m pipe stable results and the unstable results would be good.
ghorrocks 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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


All times are GMT -4. The time now is 04:13.