CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   conservative finite differences and finite volumes (https://www.cfd-online.com/Forums/main/128907-conservative-finite-differences-finite-volumes.html)

Joachim January 23, 2014 15:26

conservative finite differences and finite volumes
 
Hey everyone!

I have a question regarding finite volume / difference methods. If someone could explain this to me, that would be really cool.

Let's say you have a structured grid. If you use generalizes coordinates, can you say that a conservative finite difference scheme IS a finite volume scheme? (computing the fluxes at the midpoints, etc).

Basically, can you use the methods for cartesian finite volumes schemes with finite difference approximations in generalized coordinates?

(U1n+1(i,j)) - U1n(i,j))/dt = F1(i+1/2,j) - F1(i-1/2,j) + G1(i,j+1/2) - G1(i,j-1/2)

where U1, F1 and G1 are defined using generalized coordinates, etc.

sorry if the question is not super clear!

Thanks!

Joachim

FMDenaro January 23, 2014 15:41

FD is a method for discretizing the pointwise form of NS equations, conversely FV is a method for discretizing the integral form of the NS equations ...
Therefore, the methods are definitely different in general

Joachim January 23, 2014 15:46

hmm, you sometime end up with the same equations after using both methods though...
My question: if you try to solve the equation in generalized coordinates:

dU1/dt + dF1/dxsi = 0

then, using finite volumes, you would end up with

dU1/dt + F1(i+1/2,j) - F1(i-1/2,j) = 0

(assuming the midpoint rule)
since delta_xsi = 1. Your volume would appear as the jacobian of the cell in the equation. Then you can get the fluxes using finite differences in generalized coordinates. Can you then still say that this approach is finite volume?

FMDenaro January 23, 2014 16:10

Quote:

Originally Posted by Joachim (Post 471512)
hmm, you sometime end up with the same equations after using both methods though...
My question: if you try to solve the equation in generalized coordinates:

dU1/dt + dF1/dxsi = 0

then, using finite volumes, you would end up with

dU1/dt + F1(i+1/2,j) - F1(i-1/2,j) = 0

(assuming the midpoint rule)
since delta_xsi = 1. Your volume would appear as the jacobian of the cell in the equation. Then you can get the fluxes using finite differences in generalized coordinates. Can you then still say that this approach is finite volume?


the only case in which FV and FD produces the same algebraic equation is for linear equation discretized with second order central scheme, otherwise you get different equations.

Then, the integral equation writes as

d/dt Int [V] U dV + Int [BV] n.F dS = 0

in physical space. You can use any type of grid and write this equation in a FV manner directly in the physical space. It retains its phycial meaing of conservation equation

Conversely,

dU/dt + Div.F dS = 0

need a transformation into the computational space but that does not correspond to solve a physical integral equation in the transformed space

FMDenaro January 23, 2014 16:12

just as note, you can looking for some similar posts on CFD Online

Joachim January 23, 2014 16:14

so solving the integral form of the equations written in generalized coordinates does not make the scheme finite volume?

FMDenaro January 23, 2014 16:30

Quote:

Originally Posted by Joachim (Post 471517)
so solving the integral form of the equations written in generalized coordinates does not make the scheme finite volume?

In my opinion it has no sense to think that the system of coordinates can make the method finite volume or something else...
have a look to the dedicated chapter in the Ferziger & Peric book

Joachim January 23, 2014 16:32

I have it right there...the don't use general coordinates at all for finite volume methods.
I thought that solving the integral form of the equations would make a finite volume scheme, not the coordinates...


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