|
[Sponsors] |
how to extend solver compressibleInterFoam to consider ideal gas |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2013, 21:15 |
how to extend solver compressibleInterFoam to consider ideal gas
|
#1 |
New Member
jianfeng zou
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
Hi, everyone. I am a beginner to use OpenFOAM and my interest is computing the interface between two immiscible compressible gases. It seems that current compressibleInterFoam solver is designed to solve 2 compressible, isothermal immiscible fluids. So if I could extend this solver to consider the interface between two or more ideal gases or real gas? Thanks in advance. I have no idea what should I do at all, please give me some advice.
|
|
February 20, 2013, 14:09 |
|
#2 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Hello, Your question sounds very complex (for me).
You are interested in two-phase flow of immiscible ideal-gases, but interFoam family solvers considers for liquids with large density variation. Are you sure that assumptions, made in interFoam solvers family are suitable for your task? If yes, then you can do modifications easily: 1) relate compressibility of each gas to temperature psi = 1/((R/M)*T) 2) rho = psi*p 3) write temperature equation, like this: fvm::ddt(T) + fvm::div(phi,T) - fvm::Sp(divU,T) == (... some expansion sources ...) I solved this case and if you need, then we need to examine your problem step by step |
|
February 20, 2013, 14:44 |
|
#3 |
New Member
jianfeng zou
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
Thank Kraposhin. I just intend to calculate the interaction of a shock wave with cylindrical Helium gas inhomogeneities, like the experiment conducted by J.*F. Haas and B. Sturtevant (JOURNAL OF FLUID MECHANICS, 1987). A front tracking code was used to perform this simulation in my previous work. And I hope OpenFOAM will work on the same case.
And which solver did you make the mentioned modifications, interFoam or compressibleInterFoam? Could you please give me a detailed description about where and how in the solver should be modified? |
|
February 22, 2013, 12:25 |
|
#4 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
Have a nice day, jianfeng
I have good news for you - in my archives i found old version of non-isothermal compressibleInterFoam (see attachment). i made test case (based on original) and it behaves well. But! dp/dt works very strange (for me) Last edited by mkraposhin; February 22, 2013 at 12:28. Reason: i forgot to attach files with source code of solver and test case |
|
February 25, 2013, 02:35 |
|
#5 |
New Member
jianfeng zou
Join Date: Feb 2013
Posts: 6
Rep Power: 13 |
Kraposhin, really thank you for your share. I have compiled the attached code successfully and I will test it with my own case. Hope it work fine.
|
|
February 28, 2013, 14:43 |
OF version
|
#6 |
New Member
Concordia_CFD
Join Date: Jul 2010
Location: Canada
Posts: 24
Rep Power: 15 |
Hi,
Is the solver developed for OF-1.5 dev.? Thanks |
|
March 1, 2013, 14:52 |
|
#7 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 21 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Density and compressiblity | Mohsin | FLUENT | 7 | June 7, 2015 23:23 |
Using ideal gas law and sutherland law in Fluent | RyGuy | FLUENT | 4 | June 28, 2012 03:07 |
Liquid instead of gas in a compressible solver !? | iggor | OpenFOAM | 15 | October 14, 2009 12:58 |
Imlplementing Real Gas Effect in compressbl solver | saurav pathak | Main CFD Forum | 0 | February 18, 2008 06:27 |
Using ideal gas law to simulate pressure decline | Björn Mattsson | FLUENT | 5 | September 5, 2005 05:03 |