CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Fraction Step Method Question

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2016, 11:10
Default Fraction Step Method Question
  #1
New Member
 
Matthew de Haast
Join Date: Aug 2014
Location: Cape Town
Posts: 9
Rep Power: 12
matdehaast is on a distinguished road
Hello

Just got a quick question that I seem to be conflicted on. With the classic projection method will the u^n+1 always satisfy the incompressibility constraint? ie the divergence of the velocity field after each step be zero?

Further is this true even when starting with an arbitrary initial field?

Thanks
Matt
matdehaast is offline   Reply With Quote

Old   January 15, 2016, 11:51
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
The projection method typically assumes that the previous timestep velocity field satisfies the divergence-free condition. This includes the initial conditions. You see this when you take the divergence of the time-discretized momentum equation...div(U_n) (and div(U_n-1), etc if you use a multi-level time discretization) will be assumed to be zero. Then div(U_n+1) is forced to zero by solution of the pressure(-like) field.

If you specify an initial velocity field that is NOT divergence free, I don't think that you have a well-posed problem. Having said that, the momentum equation will not care that the initial velocity field has a non-zero divergence and it will update the provisional velocity to the new time level. The projection method will remove the divergent portion of the provisional velocity field, so you should end up with a U_n+1 that is div() = 0. But, this will depend on the exact implementation of the fractional step method that you use.

TL;DR version. Don't specify non-physical initial conditions.
mprinkey is offline   Reply With Quote

Old   January 15, 2016, 13:13
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by matdehaast View Post
Hello

Just got a quick question that I seem to be conflicted on. With the classic projection method will the u^n+1 always satisfy the incompressibility constraint? ie the divergence of the velocity field after each step be zero?

Further is this true even when starting with an arbitrary initial field?

Thanks
Matt
No, not always... depending on the type of grid arrangement and colocation you can have either the Exact Projection Method (divergence-free constraint satisfied at machine accuracy) or the Approximate Projection Method (divergence-free constraint satisfied only up to the magnitude of the local truncation error).
You can find many papers about these methods
FMDenaro is offline   Reply With Quote

Old   January 16, 2016, 03:18
Default
  #4
New Member
 
Matthew de Haast
Join Date: Aug 2014
Location: Cape Town
Posts: 9
Rep Power: 12
matdehaast is on a distinguished road
Thank you both for your reply. I believe I understand much better now. The real issue I am having, which I suspect it was/is to do with not satisfying the incompressibility constraint, is that for Lid Cavity I am getting really weird issues in the top corners.

Please see the attachment to see what I am talking about.

Has anyone see/had this issue before?
Attached Images
File Type: png Lid_Cavity_Issue.png (50.7 KB, 20 views)

Last edited by matdehaast; January 16, 2016 at 03:20. Reason: grammar fix
matdehaast is offline   Reply With Quote

Old   January 16, 2016, 04:32
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
you did not add any scale for the values....

1) what about the spatial discretization you use?
2) what about the grid arrangement?
3) how do you compute Div vn+1 for the plot? is the same type of discretization used for the Div Grad p term?
4) has the pressure solver converged? what about the BC.s you set?
kaya likes this.
FMDenaro is offline   Reply With Quote

Old   January 16, 2016, 16:02
Default
  #6
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18
kmooney is on a distinguished road
Quote:
Originally Posted by matdehaast View Post
Thank you both for your reply. I believe I understand much better now. The real issue I am having, which I suspect it was/is to do with not satisfying the incompressibility constraint, is that for Lid Cavity I am getting really weird issues in the top corners.

Please see the attachment to see what I am talking about.

Has anyone see/had this issue before?
What 'issues' are you referring to? The top right and left face is no slip right? Aren't we just seeing the post processor interpolate from the no slip wall inward?
kmooney is offline   Reply With Quote

Old   January 17, 2016, 11:39
Default
  #7
Member
 
Kaya Onur Dag
Join Date: Apr 2013
Posts: 94
Rep Power: 13
kaya is on a distinguished road
ps. plotting without interpolations would provide more insight
kaya 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
multiphase turbulance case floating error harsha_kulkarni OpenFOAM Running, Solving & CFD 3 February 18, 2016 06:06
time step directories naming issue Andrea_85 OpenFOAM 3 April 3, 2014 09:38
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
InterFoam negative alpha karasa03 OpenFOAM 7 December 12, 2013 04:41
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 23:40


All times are GMT -4. The time now is 07:08.