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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2022, 13:42
Default Unknown type type heRhoThermo in rhoCentralFoam
  #1
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4
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, 13:59
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
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, 07:26
Default
  #3
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4
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, 07:41
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
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, 08:22
Default
  #5
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4
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, 08:38
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
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, 10:26
Default
  #7
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4
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, 03:41
Default
  #8
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
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, 07:24
Default
  #9
New Member
 
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


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