|
[Sponsors] |
Pressure boundaries at walls? Compressible Navier-Stokes 2D, Cavity problem. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 21, 2017, 16:04 |
Pressure boundaries at walls? Compressible Navier-Stokes 2D, Cavity problem.
|
#1 |
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Well, I'll try to be as clear as possible.
I have a cavity problem. The boundary conditions I have are heat fluxes at walls and no-slip condition (in this case, velocity is zero at walls) So, I'm solving transient navier stokes. I'm using a staggered grid. And the same grid for all properties. I don't have problem solving the energy equation, but... Mass conservation lets me get the new density values at the centers of the cells. Everything right? As I am dealing with air, I am using the ideal gas law so with T and density I can get the P values. But... Remember that I'm just getting density at the center of the nodes, right? (I have no problem getting T at the center of the cells and walls as I told before) When I deal with the momentum equation, a funny dP/dx (and also dP/dy, as it's a 2D problem) appears. Using central differences at the first node, it requires nowing both P1e and P1w. P1e can be approximated as 0.5*(P1+P2) but P1w... It's the value of the pressure at the wall. I have the temperature at the wall, so if I had the value of density at the wall I could use the ideal gas law to get the pressure... But conservation of mass only gives me values at the center of cells? So... I think I need a boundary condition at the wall (on density or pressure, but I think it should be the latest one). I tried everything I know, but I can't get the solution. I really spen a lot of hours on google, but everyone's talking about incompressible flows and mine is compressible :S Please, can somebody help me? If it's useful to say, I'm working with matlab and using finite volumes. Thank you in advance! |
|
March 21, 2017, 16:10 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Years ago I worked on this problem for 2D compressible flows on unstructured grid. My best results were obtained by solving the density equation in a FV built around the node on the wall. Of course, if you have a condition on the normal derivative of the temperature (dT/dn=q), you can use the derivative dp/dn = R (T*drho/dn + rho*q)
|
|
March 21, 2017, 16:15 |
|
#3 | |
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Quote:
The second one requires not only dT/dn, but also requires drho/dn. If I had rho at wall it would be great. But, conservation of mass (it's a transient problem, not steady) gives me the values at the center of the cells. I'll try to explain. Energy equation gives me the values at the temperatures at the center of the faces. But, with the q and the help of Taylor series I can get T at walls. But here, I don't have anything to help me so I can get rho at wall or drho/dn at the wall. Something is missing, but I don't now what... |
||
March 21, 2017, 16:19 |
|
#4 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
The continuity equation has a FV with some faces on the wall? Why are you using staggering for a compressible solver??
|
|
March 21, 2017, 16:26 |
|
#5 | |
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Quote:
Conservation of mass tells me: (rho_n+1-rho_n)*(dx*dy/dt)=(rho_e*u_e-rho_w*rho_w)*dy + (rho_n*v_n-rho_s*v_s)*dx At initial time I have all the properties in the whole domain. But, as I tried to tell in the previous post I don't have trouble getting the Temperature wherever I want but the conservation of mass only gives me the value of density at the center of the cells. The reason I'm going with an staggered grid... Well, It doesn't exist any special reason. I just learned that way, and I'm used to that kind of grids. |
||
March 21, 2017, 16:48 |
|
#6 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
I can just tell that I worked on colocated unstructured grids. Any grid node had its own FV around it. The FV around a node at the wall was build with the remaining faces.
|
|
March 22, 2017, 08:27 |
|
#7 | ||
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Quote:
I've been reading, and it seems like the boundary condition dP/dn at wall can be obtained if I have the boundary conditions of velocity and temperature at walls... But how? I think the key is this: Quote:
|
|||
March 22, 2017, 09:11 |
|
#8 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
No, after computed the density I just need a BC for the temperature. |
||
March 22, 2017, 11:40 |
|
#9 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,286
Rep Power: 34 |
Quote:
Traditionally T and P are computed and density is computed from them. T is computed at boundary because user either specifies it or specifies its gradient. For P, pressure is extrapolated from interior by using 0 gradient or from one sided gradient. For walls typically we use dPdn condition and most popular is where dPdn = 0. (that would gets into matrix as Neumann condition). Many people have bettered this estimate by assuming control volume around the boundary node (as is already mentioned). PS: dPdn can be estimated from cell centers including the neighbours. |
||
March 22, 2017, 11:50 |
|
#10 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
||
March 22, 2017, 17:14 |
|
#11 |
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Take a look. The idea is to project the momentum equation at the perpendicular direction of the wall, and I evaluate it at the wall. So, I get a neumann condition for the pressure which I can use.
|
|
March 22, 2017, 17:22 |
|
#12 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
If you use the momentum equation projected along the normal direction to the wall, you still have the problem of the density that theoretically is not constant.
I never used such procedure and I think it would introduce too much problems in the discretization. |
|
March 22, 2017, 17:32 |
|
#13 | |
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Quote:
I went to talk with three different teachers, two from the fluid mechanics area and the third one from computation area. I didn't told anything to any of them, and the three of them told me to do that. So to sum up.
|
||
March 22, 2017, 17:37 |
|
#14 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Have a look at this fundamental paper,
https://www.researchgate.net/publica..._viscous_flows it treats the case of isothermal and adiabatic walls. It clearly states that you have only 4 conditions to be te problem well posed, the 3 velocity components and the condition on the temperature. It also states that the density at the wall is computed from its balance equation. Now if you are able to theoretically argue this paper you are wellcome to do a submit your paper to a journal for a review. |
|
March 22, 2017, 17:55 |
|
#15 | |
New Member
Antonio
Join Date: Mar 2017
Posts: 8
Rep Power: 9 |
Quote:
It will take me some time to find what you told me at bold (I'll read it carefully). But I'll apreciate that you tell me what you disagree about what I exposed. This is for the final degree work, I'm studying industrial engineering in Málaga. So I have to learn a lot more before doing any kind of paper (if I ever do). |
||
March 22, 2017, 18:01 |
|
#16 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
Have a carefull reading of the paper. For NS equations, momentum and energy are parabolic but continuity is still hyperbolic. That implies a constraint on the set of BC.s. Give a look to sec. 3.6 where it explicitly states that the density value at the wall is computed from the continuity equation. Then, the pressure at a wall is not a BC but is derived from density and temperature. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
question regarding LES of pipe flow - pimpleFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 37 | December 26, 2017 15:42 |
interFoam (HELYX-OS) pressure boundary conditions | SFr | OpenFOAM Running, Solving & CFD | 8 | June 23, 2016 17:36 |
Low pressure de Laval simulation convergence problem | heksel8i | FLUENT | 3 | July 22, 2013 11:28 |
help: I am trying to solve Navier Stokes compressible and viscid flow | Jose Choy | Main CFD Forum | 2 | May 18, 2000 06:45 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |