CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   equations in Hirsch's numerical computation of internal and external flows - 2nd edit (https://www.cfd-online.com/Forums/main/169655-equations-hirschs-numerical-computation-internal-external-flows-2nd-edit.html)

Thecomebackkid April 15, 2016 04:24

equations in Hirsch's numerical computation of internal and external flows - 2nd edit
 
Hi, i am following a book, Hirsch's numerical computation of internal and external flows - 2nd edition, vol 1. I have a task to extend a set of equations from 2d to 3d but i cant understand how Hirsch defines/derives his 2d numerical solution. The equations i refer to are (12.4.27).

I cant understand how he gets the equations can anyone explain?

Thecomebackkid April 15, 2016 16:15

http://postimg.org/image/3w9v1ko97/http://postimg.org/image/3w9v1ko97/http://postimg.org/image/3w9v1ko97/ can anyone explain how the equations 12.4.27 are formed/derived to me please :)

I know that the scheme is second order central difference but would like to be able to derive the equations from Taylor series expansion.

FMDenaro April 15, 2016 17:24

Quote:

Originally Posted by Thecomebackkid (Post 595246)
http://postimg.org/image/3w9v1ko97/http://postimg.org/image/3w9v1ko97/http://postimg.org/image/3w9v1ko97/ can anyone explain how the equations 12.4.27 are formed/derived to me please :)

I know that the scheme is second order central difference but would like to be able to derive the equations from Taylor series expansion.


I do not have the book at this moment, the grid is non-uniform and staggering is used?
I see the use of linear averaging for the mid-section values

Thecomebackkid April 15, 2016 17:33

Quote:

Originally Posted by FMDenaro (Post 595256)
I do not have the book at this moment, the grid is non-uniform and staggering is used?
I see the use of linear averaging for the mid-section values

yes your right grid is clustered and staggering is applied to connect values at the cell centers with face defined values. weighted averages are applied to obtain the interface values.

FMDenaro April 15, 2016 17:40

Quote:

Originally Posted by Thecomebackkid (Post 595258)
yes your right grid is clustered and staggering is applied to connect values at the cell centers with face defined values. weighted averages are applied to obtain the interface values.

Ok, I think that once the grid arrengement is defined you can apply the linear average between connected nodes. It can be somehow tedious to do the manipulation but it is not very complicated to verify the formulas.

Thecomebackkid April 15, 2016 17:45

Quote:

Originally Posted by FMDenaro (Post 595260)
Ok, I think that once the grid arrengement is defined you can apply the linear average between connected nodes. It can be somehow tedious to do the manipulation but it is not very complicated to verify the formulas.

can you explain what you mean further please?

FMDenaro April 15, 2016 17:48

Quote:

Originally Posted by Thecomebackkid (Post 595262)
can you explain what you mean further please?


you should know from the book the arrangement of the staggered variables to verify the equation

Thecomebackkid April 15, 2016 18:08

Quote:

Originally Posted by FMDenaro (Post 595263)
you should know from the book the arrangement of the staggered variables to verify the equation

http://postimg.org/image/wsi9o4ood/

is this what you are talking about?

FMDenaro April 15, 2016 18:26

Yes. ;)

Thecomebackkid April 15, 2016 18:29

Quote:

Originally Posted by FMDenaro (Post 595271)
Yes. ;)

ok i still not sure how to get the (12.4.27) equations for u_x,v_x,u_y,v_y etc can you show me? thanks for helping me btw.

Thecomebackkid April 18, 2016 20:25

Quote:

Originally Posted by FMDenaro (Post 595271)
Yes. ;)

ok i think i have understood how the equations for 2d are derived but i have tried to extend the scheme to be three dimensional. can you tell me if i am correct in my 3d formulas please?

http://imageshack.com/a/img923/3116/prEM4i.png

Thecomebackkid April 20, 2016 07:05

please help fellow cfders.:)


All times are GMT -4. The time now is 18:32.