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

Unknown type type heRhoThermo in rhoCentralFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2022, 12:42
Default Unknown type type heRhoThermo in rhoCentralFoam
  #1
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 3
sreehahaha is on a distinguished road
Dear Foamers,

I'm trying to model water using the rhoCentralFoam solver and I found the thermoPhysicalProperties file for water from Toby's website: https://holzmann-cfd.com/community/b...operties-water

that has the following snippet:
Code:
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       polynomial;
    thermo          hPolynomial;
    equationOfState icoPolynomial;
    specie          specie;
    energy          sensibleEnthalpy;
}
However, when I try to run the solver, I get an error saying
Code:
Unknown type type heRhoThermo
Supported type types:
1
(
hePsiThermo
)
Can someone please help me to figure out why I'm getting this error? I'm using OF9.

Many thanks in advance.
S
sreehahaha is offline   Reply With Quote

Old   November 2, 2022, 12:59
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
The error indicates that rhoCentralFoam only supports hePsiThermo.

Change thermodynamics to hePsiThermo (more versatile at possibly higher computational cost)

Or change solver to rhoPimpleFoam (and thus algorithms to solve the case)

Or extend rhoCentralFoam to heRhoThermo (possibly of limited use)
dlahaye is offline   Reply With Quote

Old   November 3, 2022, 06:26
Default
  #3
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 3
sreehahaha is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
The error indicates that rhoCentralFoam only supports hePsiThermo.

Change thermodynamics to hePsiThermo (more versatile at possibly higher computational cost)

Or change solver to rhoPimpleFoam (and thus algorithms to solve the case)

Or extend rhoCentralFoam to heRhoThermo (possibly of limited use)
Thank you, dlahaye, for the quick reply. When I use hePsiThermo, I get another error saying I cannot use 'icoPolynomial'. Could you please suggest a workaround to avoid this impasse so that I can use Tobi's polynomials to evaluate density etc.?

Many thanks,
S
sreehahaha is offline   Reply With Quote

Old   November 3, 2022, 06:41
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
What is yr constant/thermophysicalProperties?

What are Tobi's polynomials? Can you use standard Janna instead?

Domenico.
dlahaye is offline   Reply With Quote

Old   November 3, 2022, 07:22
Default
  #5
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 3
sreehahaha is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
What is yr constant/thermophysicalProperties?

What are Tobi's polynomials? Can you use standard Janna instead?

Domenico.
In the link above, Tobi has given the thermophysicalProperties file. I just copied it for water. I guess it can only be used with solvers that support heRhoThermo. I haven't tried using Janaf though. Will give it a try, thanks.

S
sreehahaha is offline   Reply With Quote

Old   November 3, 2022, 07:38
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
rhoCentralFoam for water flow? Really? What are you trying to simulate?
dlahaye is offline   Reply With Quote

Old   November 3, 2022, 09:26
Default
  #7
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 3
sreehahaha is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
rhoCentralFoam for water flow? Really? What are you trying to simulate?
It's a fluctuating hydrodynamics simulation of water. All the fields fluctuate about a mean value, and so I'll need a compressible solver.

I thought rhoCentralFoam might be the best one as it is density based, and so I can plug in an appropriate EOS for water. Tobi's EOS was a starting point. Do you think I'd be better off trying another solver? It'd be very helpful if you have any suggestions.

Thanks,
S
sreehahaha is offline   Reply With Quote

Old   November 4, 2022, 02:41
Default
  #8
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
I am surprise flow of water to be compressible. What is the Mach number of the flow?
dlahaye is offline   Reply With Quote

Old   November 4, 2022, 06:24
Default
  #9
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 3
sreehahaha is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
I am surprise flow of water to be compressible. What is the Mach number of the flow?
As an example, if you're familiar with molecular dynamics simulations, local density fluctuations arise due to the thermal motion of atoms/molecules. This local rarefaction gets rectified in the next instant due to atoms moving into it, simultaneously creating rarefaction at a different location. As you may know, this happens even in liquids and solids and not just in gas, as thermal motion of molecules is ubiquitous. This density fluctuation causes all other fields (pressure, velocity etc.) to fluctuate as well.

Fluctuating hydrodynamics simulations are the continuum counterpart of molecular dynamics simulations. So, here also, all fields fluctuate around their mean values. This is achieved by adding divergence of some stochastic fluxes to NS and energy equations that satisfy the fluctuation-dissipation theorem. As a result, if you look at water simulated by FH, you'll see local fluctuations in all fields even though the global values of the same fields remain constant. So, the Mach number is irrelevant here to address compressibility.

S
sreehahaha is offline   Reply With Quote

Reply

Tags
compressible liquid, compressible solver, equation of state, herhothermo, rhocentralfoam


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
Instability in buoyantSimpleFoam Avandri OpenFOAM Running, Solving & CFD 0 August 7, 2020 16:13
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 05:59
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Divergent temperature in chtMultiRegion(Simple)Foam akrasemann OpenFOAM Running, Solving & CFD 13 March 24, 2014 02:54
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


All times are GMT -4. The time now is 18:07.