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

The 4 basic rules to avoid unphysical situations

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 6 Post By agd
  • 1 Post By LuckyTran
  • 2 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2024, 10:33
Default The 4 basic rules to avoid unphysical situations
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
These are described at the end of Chapter 3 of

Numerical Heat Transfer and Fluid Flow by Patankar, 1980

but I never see them mentioned in CFD books like for example

Computational Fluid Dynamics: Principles and Applications by Blazek

Numerical Computation of Internal and External Flows by Hirsch

Computational Gasdynamics by Laney

An Introduction to Computational Fluid Dynamics - the Finite Volume Method
by Versteeg and Malalasekera


Why is that so ?
celestial is offline   Reply With Quote

Old   January 4, 2024, 10:01
Default
  #2
agd
Senior Member
 
Join Date: Jul 2009
Posts: 357
Rep Power: 18
agd is on a distinguished road
Rather than forcing your readers to dig up reference books that may not be quickly available, why not list the conditions you refer to? If you want an answer to a question try not to make your audience do all the work for you.
arjun, tas38, zacko and 3 others like this.
agd is offline   Reply With Quote

Old   January 5, 2024, 15:12
Default
  #3
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
You have a point. Coming to think of it not everybody these days refers to a 45 year book. I will gladly list them:



Rule 1: Consistency at control-volume faces. When a face is common to
two adjacent control volumes, the flux across it must be represented by
the same expression in the discretization equations for the two control
volumes.

Rule 2: All coefficients in discretization equations must always be
of the same sign.

Rule 3: Negative-slope linearization of the source term. This is a must to avoid instabilities.

Rule 4: a coefficient equals the sum of the neighbor coefficients. This ensures that adding a constant to our unknown field variable satisfies the same differential equation.


I can attach a pdf of chapter 3 discretization methods if this is still unclear.

Kindest Regards
celestial is offline   Reply With Quote

Old   January 5, 2024, 18:20
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Of course I am not here to harp on Patankar, it is a great text. But the rules are there for pedagogical purposes, not some grand theory.

Rule 1. If a=b then b=a. I admit I have never once cited in any publication the symmetric property even though I have known it since I was about 12 years old.
Rule 2. A positive semi-definite matrix can be obtained if all its elements are positive, a trivial case.
Rule 3. A negative definite matrix is not positive semi-definite. Also trivial.
Rule 4. It is preferably for the matrix to be diagonally dominant

Unironically, there is an algebraic theorem that says exactly all that:
A symmetric diagonally dominant matrix with real positive diagonal entries is positive definite

How come nobody is citing this theorem? That's not the point. The book is to attempting to explain how these results come about.
aerosayan likes this.
LuckyTran is offline   Reply With Quote

Old   January 5, 2024, 20:17
Default
  #5
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Also expanding on Rule-4: What Patankar is trying to say is ...

The common linear system equation Ax = b, can also be represented as (\alpha I + A)x = b

Generally cellVolume/dt is used as \alpha

Why?

Because it makes the matrix diagonally dominant, so it's easier for iterative solvers to converge faster.
aerosayan is offline   Reply With Quote

Old   January 6, 2024, 00:47
Default
  #6
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
"Rule 4: a coefficient equals the sum of the neighbor coefficients. This ensures that adding a constant to our unknown field variable satisfies the same differential equation."


Would not converge in normal case. This type of matrix you get out of pure neumann case where diagonal is equal to negative sum of off diagonals.

You need at least one equation where diagonal is more than (not just equal to) negative sum of off dias.
arjun is offline   Reply With Quote

Old   January 6, 2024, 04:15
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,777
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
To be honest, such rules are at present only a mandatory task for CFD students no longer for scientific publications.
sbaffini and arjun like this.
FMDenaro is offline   Reply With Quote

Old   January 6, 2024, 15:11
Default
  #8
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
To be honest, such rules are at present only a mandatory task for CFD students no longer for scientific publications.
But aren't those books targeting students?
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Old   January 6, 2024, 15:42
Default
  #9
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Quote:
Originally Posted by celestial View Post
These are described at the end of Chapter 3 of

Numerical Heat Transfer and Fluid Flow by Patankar, 1980

but I never see them mentioned in CFD books like for example

Computational Fluid Dynamics: Principles and Applications by Blazek

Numerical Computation of Internal and External Flows by Hirsch

Computational Gasdynamics by Laney

An Introduction to Computational Fluid Dynamics - the Finite Volume Method
by Versteeg and Malalasekera


Why is that so ?
Can't speak for all the books, but I'm pretty sure they are, maybe just not in the same pedagogical form or order.
sbaffini is offline   Reply With Quote

Old   January 6, 2024, 15:42
Default
  #10
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
We regularly break these rules all the time. Especially rules 2, 3, and 4.


These rules are like speed limits signs on roadways. They are suggestions for what ought to be done but it it's frequently necessary to break the rule. You have to drive faster than the speed limit so you don't get rear-ended by driver behind or when you need to overtake someone that is doing the speed limit. So when you teach someone to drive, do you tell them to never, ever, ever go faster than the speed limit?
LuckyTran is offline   Reply With Quote

Old   January 7, 2024, 12:05
Default
  #11
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
In chapter 3, Patankar talks about the physics of the 1D thermal diffusion equation with source.

At this stage in the text, he is not concerned about the numerical aspects to the solution of Ax=b (for example, whether matrix A is orthogonal, symmetric definite or whatever).

He refers to these rules throughout the book (even to the incompressible NavierStokes equations).

If you are interested in reading it online, here is the link to the whole book:

https://ia902208.us.archive.org/13/i...ankar_text.pdf

At any rate, great thanks to all of you for the replies.
celestial is offline   Reply With Quote

Old   January 7, 2024, 13:13
Default
  #12
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
I am very sure everyone commenting here has read patankar's book.
arjun is offline   Reply With Quote

Old   January 7, 2024, 13:41
Default
  #13
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The book is titled Numerical Heat Transfer and Fluid Flow. I want to say it's on the first page but it's actually on the cover!
LuckyTran is offline   Reply With Quote

Old   January 7, 2024, 14:21
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,777
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by celestial View Post
In chapter 3, Patankar talks about the physics of the 1D thermal diffusion equation with source.

At this stage in the text, he is not concerned about the numerical aspects to the solution of Ax=b (for example, whether matrix A is orthogonal, symmetric definite or whatever).

He refers to these rules throughout the book (even to the incompressible NavierStokes equations).

If you are interested in reading it online, here is the link to the whole book:

https://ia902208.us.archive.org/13/i...ankar_text.pdf

At any rate, great thanks to all of you for the replies.



I don't know if you have read the CFD textbooks, if you had you would have known that rule 1) is largely discussed and is a fundamental property of FVM.
FMDenaro 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
Basic rules for mesh partition for parallel runs hsieh OpenFOAM Running, Solving & CFD 1 December 24, 2006 11:07
basic rules for partition domain for parallel run phsieh2005 Main CFD Forum 19 September 18, 2006 09:34


All times are GMT -4. The time now is 20:19.