CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Thermophysical Property Units

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2013, 08:43
Default Thermophysical Property Units
  #1
New Member
 
Johan Zietsman
Join Date: Aug 2013
Posts: 1
Rep Power: 0
johanz is on a distinguished road
I am using OpenFOAM 2.2.0.

I am busy using the chtMultiRegionFoam solver to configure a heat transfer case that involves multiple materials. When I started editing the thermophysicalProperties files, I found it very hard to determine what the units of the properties were. I am referring to the following content of the file:

mixture
{
specie
{
nMoles 1;
molWeight 63.546; // molar weight, [kg/kmol]
}

transport
{
kappa 401; // thermal conductivity, [W/(m.K)]
}

thermodynamics
{
Hf 0; // ??? enthalpy of formation, [J/kmol]
Cp 24449; // heat capacity at constant pressure, [J/(kmol K)], ref. FactSage FactPS database
}

equationOfState
{
rho 8960; // density, [kg/m^3]
}
}

I delved into the header files to find comments where the units were documented. These parameters are implemented with the scalar data type, and not a dimensionedScalar data type. This makes me a bit worried.

Is there a specific method in that I can use to determine the units of quantities such as those above, or are the units implicitly implemented in the code with comments documenting the choice of units?

Was the implementation of units on thermophysical properties changed in version 2.2.0 to eliminate the units? If so, what is the reason for this.

Thanks for the help.

Johan
johanz is offline   Reply With Quote

Old   January 21, 2014, 06:01
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
Quote:
Originally Posted by johanz View Post
I am using OpenFOAM 2.2.0.
...
Code:
mixture
{
    ...
thermodynamics
    {
        Hf      0; // ??? enthalpy of formation, [J/kmol]
        Cp      24449; // heat capacity at constant pressure, [J/(kmol K)], ref. FactSage FactPS database
    }
...
...
Comparing the example given at http://www.openfoam.org/docs/user/thermophysical.php with the value (for air) from https://en.wikipedia.org/wiki/Heat_capacity it looks like cp is in J/(kg K) and not J/(kmol K).

In the bug report http://www.openfoam.org/mantisbt/view.php?id=1008#c2487 it is explained that:
Quote:
In the source code, typically upper case letters (e.g. Ha) indicate [J/kg] and lower case (e.g. ha) [J/kmol].
Internally in https://github.com/OpenFOAM/OpenFOAM...ThermoI.H#L129 the sensible enthalpy is calculated which has the units J/kmol (according to https://github.com/OpenFOAM/OpenFOAM...tThermo.H#L154) so cp has the units J/(kmol K). The conversion is from kg to kmol is done when reading it in https://github.com/OpenFOAM/OpenFOAM...stThermo.C#L52

The same seems to apply to Hf (so also given as J/kg in thermophysicalProperties)
acgnipper, api and saidc. like this.
jherb is offline   Reply With Quote

Old   December 16, 2018, 11:08
Default
  #3
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by jherb View Post
Comparing the example given at http://www.openfoam.org/docs/user/thermophysical.php with the value (for air) from https://en.wikipedia.org/wiki/Heat_capacity it looks like cp is in J/(kg K) and not J/(kmol K).

In the bug report http://www.openfoam.org/mantisbt/view.php?id=1008#c2487 it is explained that:
Internally in https://github.com/OpenFOAM/OpenFOAM...ThermoI.H#L129 the sensible enthalpy is calculated which has the units J/kmol (according to https://github.com/OpenFOAM/OpenFOAM...tThermo.H#L154) so cp has the units J/(kmol K). The conversion is from kg to kmol is done when reading it in https://github.com/OpenFOAM/OpenFOAM...stThermo.C#L52

The same seems to apply to Hf (so also given as J/kg in thermophysicalProperties)
Sorry for bumping this again. But I'm confused a bit about this explanation.
If, according to this, Hf is in J/kg, for water the value should be approximately 3.33e5 (J/kg). Following is an excerpt from the thermophysicalProperties directory of bubbleColumnEvaporator tutorial.
Code:
    thermodynamics
    {
        Hf          -1.5879e+07;
        Cp          4195;
    }
How do we explain this? Not just a question of units but of the actual magnitude as well.
(A quick way to compare different ways in which Hf is defined in all tutorials:
Code:
find <tutorial path> -name thermoPhysicalProperties | xargs grep -rn "Hf "
This is what I did to check how it was defined in various scenarios.)
deepbandivadekar is offline   Reply With Quote

Reply


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
Thermophysical properties for natural convection Ciefdi OpenFOAM Running, Solving & CFD 0 November 7, 2013 12:44
units in OpenFOAM megacrout OpenFOAM 4 July 19, 2011 09:04
units of geometrical parameters lost SoobY ANSYS Meshing & Geometry 2 January 10, 2011 04:58
Variable thermophysical property for incompressible flow JinBiao OpenFOAM Running, Solving & CFD 4 September 1, 2010 09:11
To dimensionalize or not to dimensionalize !! tolani owosina Main CFD Forum 8 November 13, 1999 14:45


All times are GMT -4. The time now is 01:28.