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

hTabulated for solid in chtMultiRegionFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2021, 11:33
Default hTabulated for solid in chtMultiRegionFoam?
  #1
Member
 
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5
Clau.77 is on a distinguished road
Hello!


I am using OF version 8. I read that it is possible to include the cp values via hTabulated in the thermodynamicProperties. So i tried to use it on my solid component but it didn't work. Is it not possible to do this?


And is there a Tutorial from version8 that uses hTabulated? I only found tutorials from older versions


Thanks in advance
Clau.77 is offline   Reply With Quote

Old   April 20, 2021, 15:34
Default
  #2
Member
 
saidc
Join Date: Feb 2020
Location: Türkiye
Posts: 61
Rep Power: 6
saidc. is on a distinguished road
Hi Claudia,

If you share the error, you can find help easier. Firstly, you should check source code in version-8 because there is a description and usage example there (src/thermophysicalModels/specie/thermo/hTabulated/hTabulatedThermo.H). Also, in v2012 there is a tutorial for tabulated thermophysical types there that you can modify for your own case (multiphase/icoReactingMultiPhaseInterFoam/inertMultiphaseMultiComponent).

Quote:
And is there a Tutorial from version8 that uses hTabulated?
You can use "grep -r hTabulated" command for search in tutorials case. If any tutorial is using it that command will find the path.

Kind Regards,
Said.
saidc. is offline   Reply With Quote

Old   April 21, 2021, 05:01
Default
  #3
Member
 
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5
Clau.77 is on a distinguished road
Thank you for your reply Said


The error is:


Code:
*** Reading solid mesh thermophysical properties for region plate

    Adding to thermos

Selecting thermodynamics package 
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       tabulated;
    thermo          hTabulated;
    equationOfState icoTabulated;
    specie          specie;
    energy          sensibleEnthalpy;
}



--> FOAM FATAL ERROR: 
Unknown solidThermo type 
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       tabulated;
    thermo          hTabulated;
    equationOfState icoTabulated;
    specie          specie;
    energy          sensibleEnthalpy;
}


Valid solidThermo types are:

heSolidThermo  pureMixture  constAnIso   eConst       rhoConst  specie  sensibleInternalEnergy  

heSolidThermo  pureMixture  constAnIso   ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constAnIso   ePower       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constIso     eConst       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constIso     ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constIso     ePower       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  exponential  eConst       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  exponential  ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  exponential  ePower       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  polynomial   eConst       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  polynomial   ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  polynomial   ePower       rhoConst  specie  sensibleInternalEnergy  


    From function static typename Table::iterator Foam::basicThermo::lookupThermo(const Foam::dictionary&, Table*, int, const char**, const Foam::word&) [with Thermo = Foam::solidThermo; Table = Foam::HashTable<Foam::autoPtr<Foam::solidThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>; typename Table::iterator = Foam::HashTable<Foam::autoPtr<Foam::solidThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>::iterator]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/basic/lnInclude/basicThermoTemplates.C at line 46.

FOAM exiting

I tried using hTabulated with rhoSimpleFoam and it worked, but it doesn't for chtMultiRegion (neither for solid or gas).

I am pretty new to OF and C++, but when I checked the source code, it seems that hTabulated it just not included in chtMultiRegionFoam. I am wondering, whether it is possible to add it there?



Also, another weird thing I noticed is that in the solidThermo/Make directory the files file is not .txt (see the attached picture). Is there something wrong?
Attached Images
File Type: png Make_file.PNG (11.8 KB, 32 views)
Clau.77 is offline   Reply With Quote

Old   November 23, 2021, 11:18
Default
  #4
New Member
 
Germilly Barreto
Join Date: Jul 2016
Location: Portugal
Posts: 25
Rep Power: 9
Germilly is on a distinguished road
Hello Claudia,

Have you solved it? I think I am facing the same issue. I am trying to use hTabulated for solid in chtMultiRegionFoam, but it seems not compatible with this solver/solid.

Germilly
Germilly is offline   Reply With Quote

Old   March 14, 2022, 02:42
Default
  #5
Member
 
Join Date: Nov 2020
Posts: 53
Rep Power: 5
mikulo is on a distinguished road
Quote:
Originally Posted by Clau.77 View Post
Thank you for your reply Said


The error is:


Code:
*** Reading solid mesh thermophysical properties for region plate

    Adding to thermos

Selecting thermodynamics package 
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       tabulated;
    thermo          hTabulated;
    equationOfState icoTabulated;
    specie          specie;
    energy          sensibleEnthalpy;
}



--> FOAM FATAL ERROR: 
Unknown solidThermo type 
thermoType
{
    type            heRhoThermo;
    mixture         pureMixture;
    transport       tabulated;
    thermo          hTabulated;
    equationOfState icoTabulated;
    specie          specie;
    energy          sensibleEnthalpy;
}


Valid solidThermo types are:

heSolidThermo  pureMixture  constAnIso   eConst       rhoConst  specie  sensibleInternalEnergy  

heSolidThermo  pureMixture  constAnIso   ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constAnIso   ePower       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constIso     eConst       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constIso     ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  constIso     ePower       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  exponential  eConst       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  exponential  ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  exponential  ePower       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  polynomial   eConst       rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  polynomial   ePolynomial  rhoConst  specie  sensibleInternalEnergy  
heSolidThermo  pureMixture  polynomial   ePower       rhoConst  specie  sensibleInternalEnergy  


    From function static typename Table::iterator Foam::basicThermo::lookupThermo(const Foam::dictionary&, Table*, int, const char**, const Foam::word&) [with Thermo = Foam::solidThermo; Table = Foam::HashTable<Foam::autoPtr<Foam::solidThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>; typename Table::iterator = Foam::HashTable<Foam::autoPtr<Foam::solidThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>::iterator]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/thermophysicalModels/basic/lnInclude/basicThermoTemplates.C at line 46.

FOAM exiting

I tried using hTabulated with rhoSimpleFoam and it worked, but it doesn't for chtMultiRegion (neither for solid or gas).

I am pretty new to OF and C++, but when I checked the source code, it seems that hTabulated it just not included in chtMultiRegionFoam. I am wondering, whether it is possible to add it there?



Also, another weird thing I noticed is that in the solidThermo/Make directory the files file is not .txt (see the attached picture). Is there something wrong?

Hey, heRhoThermo, hTabulated, icoTabulated... are only valid for fluid thermo. You can't use it for solids .. try..

thermoType
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo eConst;
equationOfState rhoConst;
specie specie;
energy sensibleInternalEnergy;
}
mikulo is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, htabulated, openfoam, solid, thermodynamicproperties.


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
Error in thermophysical properties (chtMultiRegionFoam) mukut OpenFOAM Pre-Processing 28 November 23, 2021 06:34
Error in chtMultiRegionFoam michael157 OpenFOAM Running, Solving & CFD 17 May 22, 2017 03:32
What does this error when use solver chtMultiRegionFoam mean sajad6 OpenFOAM Running, Solving & CFD 7 October 6, 2014 07:38
chtmultiregionFoam error oilsok OpenFOAM Running, Solving & CFD 1 June 12, 2014 11:19
Custom boundary condition: unexpected behavior with chtMultiRegionFoam leroyv OpenFOAM Programming & Development 3 February 1, 2014 07:49


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