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

troublshooting 2D finite diff solution of pressure wave

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2019, 17:12
Default troublshooting 2D finite diff solution of pressure wave
  #1
New Member
 
frank
Join Date: Feb 2017
Posts: 8
Rep Power: 9
Fahraynk is on a distinguished road
Hi, I'm trying to solve a basic problem with finite difference method in 2D.

I am modeling a pressure wave moving from right to left in a 2D domain. The solution seems fine until the wave hits the right boundary. Then, a pressure gradient develops and the velocity from right to left starts to increase.

I have a square grid and set the left side boundary overpressure to 20K Pascals, and temperature to be 356.79 Kelvins.

All other boundary conditions on all walls are outflow conditions. They are calculated based on a calculated slope of their adjacent points.

Initial temperature is 298 [K].

Initially, a pressure wave travels from the left wall to the right wall. The wave travels as expected, raising the pressure as it goes.

The problem is after the wave hits the right outflow boundary. If time keeps incrementing, the pressure falls on the right hand side and I get a pressure gradient.

The gradient looks like this from right to left for one row of grid at time = 0.10:

121055.9
120744.7
120433.5
120122.4
119811.2
119500.1
119188.9
118877.7
118566.6
118255.4
117944.2
117633.1
117321.9
117010.8
116699.6
116388.4
116077.3
115766.1
115455.0

My question is... is this gradient normal? I thought the pressure would reach a steady state after the wave passes. While troubleshooting, I noticed the velocity seems to keep increasing long after the wave passes, and there is no velocity gradient. I suppose this increase is due to the pressure gradient. The temperature and internal energy show a similar gradient. Density stays approximately constant.

Any help appreciated. Should it reach steady state right after the wave passes?
Fahraynk is offline   Reply With Quote

Old   October 3, 2019, 17:36
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Fahraynk View Post
All other boundary conditions on all walls are outflow conditions.



Wall or outflow? How many outflow sections?


However, for compressible flows you have to set properly the boundary conditions depending on the subsonic/supersonic conditions. That happens to take into account the direction of the characteristic curves.


See https://www.google.com/url?sa=t&rct=...J-tLsyDnGaxapa
FMDenaro is offline   Reply With Quote

Old   October 3, 2019, 21:09
Default
  #3
New Member
 
frank
Join Date: Feb 2017
Posts: 8
Rep Power: 9
Fahraynk is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Wall or outflow? How many outflow sections?


However, for compressible flows you have to set properly the boundary conditions depending on the subsonic/supersonic conditions. That happens to take into account the direction of the characteristic curves.


See https://www.google.com/url?sa=t&rct=...J-tLsyDnGaxapa

Hi, thank you for the reply. I set everything to outflow, no walls. The only thing I did not set to outflow are the pressure and temperature on the left side boundary.

Thanks for the paper, I will read through it.
Fahraynk is offline   Reply With Quote

Old   October 13, 2019, 19:23
Default
  #4
New Member
 
frank
Join Date: Feb 2017
Posts: 8
Rep Power: 9
Fahraynk is on a distinguished road
Edit : I forgot a vector square is a dot product, please ignore (can't figure out how to delete this reply)
Fahraynk is offline   Reply With Quote

Old   October 13, 2019, 19:35
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Fahraynk View Post
In this paper, they outline the non-conservation form in summation notation.

In equation 4 of the paper, are they saying the (e + V^2/2) term in the energy equation is written out (e + (p/2) (u^2 + v^2 + w^2)) ? (where V is vector of velocity [u, v, w] and e is internal energy)

Is that valid? Or am I wrong? Because in the energy equation as I have seen it, V is a vector, so the energy equation would really be three equations?



(uk uk) is just (u^2+v^2+w^2) (kinetic energy) that sum to the internal energy to provide the total energy E
Fahraynk likes this.
FMDenaro is offline   Reply With Quote

Old   October 17, 2019, 15:37
Default
  #6
New Member
 
frank
Join Date: Feb 2017
Posts: 8
Rep Power: 9
Fahraynk is on a distinguished road
Hi, after reading through the paper you graciously posted, I am stuck.

I'm trying to figure out \frac{\partial u_2}{\partial x_1} on a boundary when I can't use the interior flow-field. (u_2 is velocity in x_2 direction). I can't use the interior flow field, per the paper, because this represents an incoming wave.

The paper mentions something about solving 1D Euler to get this variable, but I'm not sure how to translate a 1D solution into \frac{\partial u_2}{\partial x_1}.

\frac{\partial u_2}{\partial x_1} comes from solving 2D subsonic inflow on one boundary. The paper states I need 4 conditions for a 3D boundary, so I assume 3 conditions for a 2D boundary. (Is that a valid assumption?) I choose pressure, density, and internal energy (P, p, e) to be constants on this boundary.

Then, I reduce the system to two equations on the boundary by following guidelines in the paper :
\frac{\partial (u_1 u_2)}{\partial x2} = 0
\frac{\partial u_2}{\partial t} + u_1 \frac{\partial u_2}{\partial x_1} + 2 \frac{\partial u_2}{\partial x_2} = 0

But I can't time step for the boundary condition until I figure out \frac{\partial u_2}{\partial x_1}.

Any help is greatly appreciated!

Quote:
Originally Posted by FMDenaro View Post
Wall or outflow? How many outflow sections?


However, for compressible flows you have to set properly the boundary conditions depending on the subsonic/supersonic conditions. That happens to take into account the direction of the characteristic curves.


See https://www.google.com/url?sa=t&rct=...J-tLsyDnGaxapa
Fahraynk is offline   Reply With Quote

Reply

Tags
finite difference


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
periodic straight tube flow, no mesh independent solution for pressure gradient thijs1909 FLUENT 5 May 16, 2018 10:04
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 06:35
CFX Solver stopped with error when requested for backup during solver running Mfaizan CFX 40 May 13, 2016 07:50
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC Endel OpenFOAM Running, Solving & CFD 3 September 11, 2014 17:29
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00


All times are GMT -4. The time now is 16:11.