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

Navier-Stokes discretization

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By LuckyTran
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2022, 16:45
Default Navier-Stokes discretization
  #1
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 5
daylen is on a distinguished road
Hi, im having trouble understanding the simple algorithm, specifically the discretization step of the momentum equation, in the link a matrix form of the momentum equation is showed, how do you get it?



https://www.openfoam.com/documentati...olver-momentum


or the semi-discretization in this other link: https://openfoamwiki.net/index.php/O...hm_in_OpenFOAM


again, how do you arrive to such equations?
daylen is offline   Reply With Quote

Old   August 24, 2022, 18:42
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,737
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The discretization is not shown and you need to do it. What is given is a very high level procedure. However, given that there is some discretization, you should arrive at a linear system with some coefficient matrix.

First you need to integrate the governing equations over the comutational cell and apply the gauss-divergence theorem. Then you need to discretize term by term.

The things you need to discretize are:
  1. the temporal discretization the du/dt term (1st or 2dt order euler, which is just upwinding)
  2. the advection term (i.e. 1st, 2nd order upwind etc)
  3. the diffusion term (usually central difference)
After you do all of this (it is a lot of work), then you should get a linear system. If you don't, then you did something wrong. Go back and check every step. The particular coefficient matrix that you end up with depends on the actual discretization scheme you use, whether you apply limiters, and all the little details. That's why the presentation omits it.
aerosayan and daylen like this.
LuckyTran is offline   Reply With Quote

Old   August 24, 2022, 21:46
Default
  #3
Member
 
Gabriel
Join Date: Aug 2021
Posts: 37
Rep Power: 5
daylen is on a distinguished road
i was confused by the non linear terms of the momentum equations, but from what i read (versteeg) and your post they can be linearized, obtaining a linear system.


Thanks a lot.
daylen is offline   Reply With Quote

Old   August 24, 2022, 23:33
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,737
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The way it works is you trade one non-linear PDE valid everywhere into system of algebraic equations that you solve over each cell. You linearize the non-linear thingy and achieve order reduction at the expense of increasing the order of the number of equations you have to solve from 1 to N (the number of cells). Perfectly balanced as all things should be.
daylen likes this.
LuckyTran 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
Filtered navier stokes equation..LES:: Palani Velladurai Main CFD Forum 7 September 6, 2013 02:51
how many BC's should be assigned physically in navier stokes runs? immortality Main CFD Forum 13 August 30, 2013 20:08
Navier Stokes, Pressure BC, Discretization Sree Main CFD Forum 0 August 1, 2007 04:55
Newbie:Viscoelasticity and Navier stokes equation Rajil Saraswat Main CFD Forum 2 June 9, 2003 07:21
help: I am trying to solve Navier Stokes compressible and viscid flow Jose Choy Main CFD Forum 2 May 18, 2000 05:45


All times are GMT -4. The time now is 11:25.