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

adiabatic perfect fluid

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By ma-tri-x
  • 3 Post By ma-tri-x
  • 1 Post By ma-tri-x
  • 1 Post By ma-tri-x

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2013, 15:16
Default adiabatic perfect fluid
  #1
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
Hi everyone!

I want to calculate a bubble with compressibleInterFoam with version 2.2.1.
In the TermoPhysicalPropertiesair or ""water you can specify the equationOfState that is used. However it seems that adiabaticPerfectFluid (provided with the source code) is not a valid option. If I type "bla" into the entry and look at the list in the error message, only incompressiblePerfectFluid, PerfectGas, PerfectFluid, icoPolynomial are shown as valid. Is this an error in the code or am I wrong? I would like to use the equation from adiabaticPerfectFluid.

Thanks!
Tscar likes this.
ma-tri-x is offline   Reply With Quote

Old   January 31, 2016, 07:34
Default
  #2
Member
 
Join Date: Nov 2014
Posts: 36
Rep Power: 12
Tscar is on a distinguished road
Hi,
did you find solution to this?
Tscar is offline   Reply With Quote

Old   February 1, 2016, 07:12
Default
  #3
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
Yes, it was my Master-Thesis. But I changed to OpenFoam extend 3.1. And changed the solver to my needs. Never worked with commercial OpenFoam anymore since then.
ma-tri-x is offline   Reply With Quote

Old   February 1, 2016, 12:22
Default
  #4
Member
 
Join Date: Nov 2014
Posts: 36
Rep Power: 12
Tscar is on a distinguished road
Thank you for your reply. May I ask you for a case where you used the adiabaticPerfectFluid model? It would surely save me a few hours.
Tscar is offline   Reply With Quote

Old   February 2, 2016, 13:02
Default
  #5
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
Sorry, as I said, I used openfoam extend, which doesn't have this kind of structure. I didn't solve it with openfoam 221. What I did was taking the compressibleInterFoam from openfoam extend and then modified the equations of state p(rho) such that in pEqn.H and createFields.H they resemble an adiabatic one for the gas and the compressible Tait Equation for the liquid. See my article http://www.sciencedirect.com/science...45793015003795

Regards,
Max
ma-tri-x is offline   Reply With Quote

Old   May 9, 2016, 11:56
Default
  #6
New Member
 
chubb87
Join Date: May 2011
Posts: 21
Rep Power: 15
chubb87 is on a distinguished road
For me it is possible to use adiabaticPerfectFluid with standard OpenFoam version (2.4.0), which is the same as Tait equation I think.

Regards
chubb87 is offline   Reply With Quote

Old   June 15, 2016, 12:41
Default
  #7
New Member
 
Myth
Join Date: Jul 2011
Location: Unitek kingdom
Posts: 17
Rep Power: 15
mg.mithun is on a distinguished road
Send a message via Yahoo to mg.mithun Send a message via Skype™ to mg.mithun
Hi Max,
Can you share your thesis with me
mg.mithun@gmail.com
mg.mithun is offline   Reply With Quote

Old   December 8, 2016, 21:13
Smile
  #8
New Member
 
Big Orange
Join Date: Mar 2016
Posts: 11
Rep Power: 10
bigorange is on a distinguished road
Quote:
Originally Posted by ma-tri-x View Post
Yes, it was my Master-Thesis. But I changed to OpenFoam extend 3.1. And changed the solver to my needs. Never worked with commercial OpenFoam anymore since then.
Hi, ma-tri-x! What do you mean by saying " commercial OpenFoam"? Do you mean that the OpenFoam extend is a better choice if one wants to use OpenFoam by modifing the exist solvers easily?

Regards,
big orange
bigorange is offline   Reply With Quote

Old   December 9, 2016, 13:25
Default
  #9
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
Quote:
Originally Posted by mg.mithun View Post
Hi Max,
Can you share your thesis with me
mg.mithun@gmail.com
Hi mg.mithun!

Have I already replied to your request? If not, here's a link to download the thesis:
https://www.dropbox.com/s/rm9bctajnx...ation.pdf?dl=0

Best regards,
Max
mg.mithun, Open_Foam and mikulo like this.
ma-tri-x is offline   Reply With Quote

Old   December 9, 2016, 13:30
Default
  #10
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
Quote:
Originally Posted by bigorange View Post
Hi, ma-tri-x! What do you mean by saying " commercial OpenFoam"? Do you mean that the OpenFoam extend is a better choice if one wants to use OpenFoam by modifing the exist solvers easily?

Regards,
big orange
I am not putting judgement. The basis of the solvers is the same, as I see it. And the package is weight too complex to judge what branch of the software works better in handling own code development, especially when you're not a professional but only skilled c++ programmer.
The point is, that the solver code differs in terms of putting the fluids into categories (resulting into some different handling of the top-level classes in the object-oriented structure) from extend to openfoam. No judgement.
Open_Foam likes this.
ma-tri-x is offline   Reply With Quote

Old   December 9, 2016, 20:32
Smile
  #11
New Member
 
Big Orange
Join Date: Mar 2016
Posts: 11
Rep Power: 10
bigorange is on a distinguished road
Quote:
Originally Posted by ma-tri-x View Post
I am not putting judgement. The basis of the solvers is the same, as I see it. And the package is weight too complex to judge what branch of the software works better in handling own code development, especially when you're not a professional but only skilled c++ programmer.
The point is, that the solver code differs in terms of putting the fluids into categories (resulting into some different handling of the top-level classes in the object-oriented structure) from extend to openfoam. No judgement.
Hi, ma-tri-x!

Thanks for your reply! I understand what you mean!
bigorange is offline   Reply With Quote

Old   July 22, 2017, 11:19
Default
  #12
New Member
 
Ram_Rahim
Join Date: Jul 2017
Posts: 2
Rep Power: 0
Open_Foam is on a distinguished road
Hi ma-tri-x,
I found your thesis very interesting but I was wondering how you added the Tait equation. Is there any source code available online for that. If not, can you share any test case for the same to my email (ram22071989@gmail.com) ?
:-)
Open_Foam is offline   Reply With Quote

Old   July 26, 2017, 11:20
Default Build in Tait-equation
  #13
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 13
ma-tri-x is on a distinguished road
Just replace the linear Equation of state in pEqn.H:
Code:
rho1 = rho10*pow((p+B1)/(pRef+B1),1.0/gamma1.value());
Open_Foam likes this.
ma-tri-x is offline   Reply With Quote

Old   July 27, 2017, 06:16
Default
  #14
New Member
 
Ram_Rahim
Join Date: Jul 2017
Posts: 2
Rep Power: 0
Open_Foam is on a distinguished road
Thank you for your reply but is this the only thing required to implement TAIT equation of state for water as suggested in your thesis shared above?
Thank you again
Open_Foam is offline   Reply With Quote

Old   October 13, 2020, 06:57
Default
  #15
New Member
 
Join Date: Aug 2019
Posts: 19
Rep Power: 7
Didu is on a distinguished road
I'm also trying to use the adiabaticPerfectFluid, in theory is the best, but how can I change the value of the constant K (Bulk Modulus)? since K=rho/psi
Didu is offline   Reply With Quote

Reply

Tags
adiabaticperfectfluid, compressibleinterfoam, termophysicalproperties, version 2.2.1


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
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Fluid Structure Interaction Apollo Main CFD Forum 5 July 4, 2011 17:15
fluid structure interaction taru agrawal FLUENT 4 September 10, 2007 04:12
What is the total energy for incompressible fluid? Harry Dong Main CFD Forum 12 February 4, 2006 01:55


All times are GMT -4. The time now is 12:47.