|
[Sponsors] |
The 4 basic rules to avoid unphysical situations |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 3, 2024, 10:33 |
The 4 basic rules to avoid unphysical situations
|
#1 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
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 ? |
|
January 4, 2024, 10:01 |
|
#2 |
Senior Member
Join Date: Jul 2009
Posts: 357
Rep Power: 18 |
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.
|
|
January 5, 2024, 15:12 |
|
#3 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
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 |
|
January 5, 2024, 18:20 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66 |
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. |
|
January 5, 2024, 20:17 |
|
#5 |
Senior Member
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8 |
||
January 6, 2024, 00:47 |
|
#6 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34 |
"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. |
|
January 6, 2024, 04:15 |
|
#7 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,777
Rep Power: 71 |
To be honest, such rules are at present only a mandatory task for CFD students no longer for scientific publications.
|
|
January 6, 2024, 15:11 |
|
#8 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
But aren't those books targeting students?
__________________
Don't keep making the same mistakes. Try to make new mistakes. |
|
January 6, 2024, 15:42 |
|
#9 | |
Senior Member
|
Quote:
|
||
January 6, 2024, 15:42 |
|
#10 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66 |
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? |
|
January 7, 2024, 12:05 |
|
#11 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
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. |
|
January 7, 2024, 13:13 |
|
#12 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,274
Rep Power: 34 |
I am very sure everyone commenting here has read patankar's book.
|
|
January 7, 2024, 13:41 |
|
#13 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66 |
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!
|
|
January 7, 2024, 14:21 |
|
#14 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,777
Rep Power: 71 |
Quote:
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. |
||
|
|
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 |