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

thermophysicalProperties for a liquid for chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2010, 07:59
Default thermophysicalProperties for a liquid for chtMultiRegionFoam
  #1
Member
 
Sebastian Lang
Join Date: Aug 2009
Posts: 47
Rep Power: 16
sebonator is on a distinguished road
Hi,

I want to use the chtMultiRegionFoam-Solver to calculate the heat transport in a pump. As the pumped media is water and the properties should be temperature-dependent, I have to adapt the thermophysicalProperties to water.

I studied the chapter on thermophysical Models in the user-guide and the multiRegionHeater-tutorial to understand the usage of this solver and I am able to simulate heat transport with air. Unfortunately, I am not able to adapt the options for thermophysical Models described in the user-guide to my case with water, because the chtMultiRegionFoam-solver seems to support only the heat transport with gases. At least, the error message that appears when starting the solver makes me believe this:

--> FOAM FATAL ERROR:
Unknown basicPsiThermo type hRhoThermo<pureMixture<polynomialtransport<specieT hermo<hPolynomialThermo<icoPolynimial>>>>>

The list of valid basicPsiThermo types that follows this error only consists of types which use the <perfectGas> equation of state, which is absolutely not suited for calculating water, isn't ist?!?!?!

My questions now are:
1)Is it in general possible to calculate the heat transport in water with the chtMultiRegionSolver?

2)If yes, what is necessary to make the thermophysical model I want to use (see the error-message above) work with this solver? If anything in the solver itself has to be changed and recompiled, please describe that in detail, because I am not that familiar with the file structure, the libraries and classes of OpenFOAM.

Thanks for every answer!
Sebastian
sebonator is offline   Reply With Quote

Old   November 15, 2010, 12:20
Default
  #2
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
Chris Lucas is on a distinguished road
Hi,

as I understand your case, you want to simulate a compressible water flow. So why do you need a Multi Region Solver? Can't you simply use rhoPisoFOAM or rhoSimpleFOAM ?

About the thermophysical models you want to use, the combination is not defined in the template so you have to redefine it. Have a look that the file rhoThermos.C ( I guess). Otherwise, have a look through the forum; this question has been answers before (something about icoPolynimial).

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   November 15, 2010, 13:48
Default
  #3
Member
 
Sebastian Lang
Join Date: Aug 2009
Posts: 47
Rep Power: 16
sebonator is on a distinguished road
Hi Chris,

thanks for your Reply!

No, I want to simulate the water flow, the temperature changes in the water and the temperature changes in the solid parts surrounding the flow, so I think the chtMultiRegionFoam-Solver is exactly what I need.

I already searched the forum, but I will retry to search for icoPolynomial as you said. I will report it here, if I find anything interesting concerning the topic.

Can you explain a bit what you want to say with "the combination is not defined in the template so you have to redefine it"? As I said, I am absolutely not familiar with the classes used by OpenFoam, so I would appreciate if you could explain more detailed WHERE I have to redefine WHAT in order to use my combination of interest.

Thanks in advance!
Greetings Sebastian
sebonator is offline   Reply With Quote

Old   November 16, 2010, 03:53
Default
  #4
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
Chris Lucas is on a distinguished road
Hi,

have a look @ this. simply exchange hPsiThermo with hRhoThermo, which you are using

http://www.cfd-online.com/Forums/ope...roperties.html

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   November 16, 2010, 03:56
Default
  #5
Member
 
Sebastian Lang
Join Date: Aug 2009
Posts: 47
Rep Power: 16
sebonator is on a distinguished road
Hi there,

I only wanted to emphasize that I do not explicitly want to simulate the water flow as compressible! I thought the "icoPolynomial" equation of state chosen for the thermophysical model tells the solver to calculate an incompressible flow.

I am grateful for every answer!
Greetings Sebastian
sebonator is offline   Reply With Quote

Old   November 16, 2010, 11:45
Default
  #6
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 17
Chris Lucas is on a distinguished road
Hi,

have a look at this

http://www.cfd-online.com/Forums/ope...egionfoam.html

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   November 16, 2010, 16:37
Default
  #7
Member
 
Sebastian Lang
Join Date: Aug 2009
Posts: 47
Rep Power: 16
sebonator is on a distinguished road
Hi Chris,

I saw that modified solver, too, but later in the thread canesin sais that he neglected natural convection and as I also want to simulate the heat transfer in the not running pump, this solver doesn't suit me. But thanks for your reply again!

I spent the whole day again in reading the forum and going through the source code. I tried to add the combination of my thermophysical model to the hPsiThermos.C file as you advised in the first link, Chris. Then I recompiled the whole thermophysical source by using the Allwmake located in the thermophysicalModels directory. When I then tried to start the solver, the same error message as shown above appaered again.

The entries I added in hPsiThermos.C are:
makeBasicPsiThermo
(
hPsiThermo,
pureMixture,
polynomialTransport,
hPolynomialThermo,
icoPolynomial
)

After that, I tried to add the combination also in the basicMixtures.C file. I also included all the missing .H files for the parts of my model, because errors appeared when I tried to recompile without that. This was not necessary during my changes to the hPsiThermos.C file!

Unfortunately, the recompiling still does not work. The error deals with the icoPolynomial equation of state I want to use. The compiler says, that the equation of state function (don't know if that is the correct expression in an object-orientated program) expects two input arguments: the type, which I tell to be icoPolynomial, and the size of the polynomial that approximates the temperature dependency of the density. I then tried to add the size of the polynomial as a fifth argument to the makeBasicMixture function in basicMixtures.C, but that resultet in a compiling error which said, that there is no fifth argument allowed in makeBasicMixture!

The entries I added in basicMixtures.C are:
makeBasicMixture
(
pureMixture,
polynomialTransport,
hPolynomialThermo,
icoPolynomial
)

I don't know what I did wrong... Does anyone see my mistake? Or does at least anyone know where I have to define the size of the polynom?

Thanks for every answer!
Greetings Sebastian
sebonator is offline   Reply With Quote

Old   November 16, 2010, 17:36
Default
  #8
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 89
Rep Power: 17
juho is on a distinguished road
Hi,

Couple of weeks ago the chtMultiRegionFoam in the 1.7.x version was updated to use hRhoThermo and the hRhoThermo was updated to allow the icoPolynomial equation of state and polynomial material properties. This has been mentioned in several threads here on the forum.

What you should do is install the latest 1.7.x version from the Git repository (check http://www.openfoam.com/download/git.php). It includes the modified solver and a tutorial with liquid and gas regions to get you started.
juho is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, liquid, thermophysical, thermophysicalproperties


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
How to define a RGP file for liquid air? eis CFX 2 July 22, 2018 04:51
RGP file for liquid air eis CFX 0 April 22, 2010 10:34
radiation of molton liquid metal in enclosure richard CFX 0 April 8, 2008 15:43
Need some help for total liquid fraction linus FLUENT 0 December 19, 2006 03:29
entrainment of droplets from liquid surface Elisabeth A. Hove Siemens 0 October 16, 2002 10:11


All times are GMT -4. The time now is 14:22.