CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Air compression using multiphase solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2020, 16:20
Default Air compression using multiphase solver
  #1
New Member
 
Join Date: Feb 2020
Posts: 5
Rep Power: 6
dygu is on a distinguished road
Hello,

I am trying to simulate the compression and expansion of an ideal gas (air) in a multiphase setting where the secondary phase (water) is acting to compress the air. I am using the compressibleInterDyMFoam solver (DyM for future use on dynamic grids; tested using OFv1812 and OFv1912) and I've created a simple 2D test case shown below:



I am using an oscillating inlet flow rate at the bottom to achieve the up-down motion of the air-water interface. The initial pressure in air is p0=1.79kPa. Here is the air pressure as a function of time sampled at a single probe location:



After each compression/expansion cycle, the air pressure continues to increase rather than follow the expected PV^gamma=constant behavior. I found the exact same behavior using the same solver but with just a cube of air that is compressed and expanded by a sinusoidal motion of one of the walls (no water in the cube). I was able to trace the error down to the time integration scheme (Euler). The backward scheme resolved this error but I am unable to use it robustly when two phases are present in the domain, like in this test case. I understand that the backward scheme can be unbounded. I have also tried the CrankNicolson scheme with a range of coefficients but I have found it to be extremely unstable even on this perfect orthogonal grid and the error was still present (but somewhat smaller relative to Euler).

I've attached this same test case and I'd appreciate any hints as to how to proceed in achieving the expected thermodynamic behavior using this multiphase solver.

Thank you
Attached Files
File Type: zip multiphase-air-compression-2D.zip (13.2 KB, 9 views)
dygu is offline   Reply With Quote

Reply

Tags
compressible air, mutiphase


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
air circulation with buoyantBoussinesqSimpleFoam solver Datsusong OpenFOAM Running, Solving & CFD 5 June 7, 2018 09:36
3D multiphase micro model: mixing effect of air and water at the T junction ehsanfareed FLUENT 2 March 22, 2015 22:29
Radiation interface hinca CFX 15 January 26, 2014 17:11
Multiphase air and exhaust gas mixture hamzamotiwala STAR-CCM+ 5 September 28, 2011 05:38
multiphase model, water in air? bugra Main CFD Forum 10 January 2, 2010 13:09


All times are GMT -4. The time now is 04:23.