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

[Other] Tabulated thermophysicalProperties library

Register Blogs Community New Posts Updated Threads Search

Like Tree36Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2019, 15:23
Question
  #1
New Member
 
Join Date: Mar 2017
Posts: 25
Rep Power: 9
.bastian is on a distinguished road
Hi Yuusha, hi folks,


i kinda don't get it compiled using your instructions given on your github page.

Code:
Allwmake /home/sebastian/OpenFOAM/FOAMExtensions/tabulatedThermophysicalProperties/src
wmakeLnInclude: linking include files to OpenFOAM/lnInclude
wmake thermophysicalModels/specie
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /home/sebastian/OpenFOAM/sebastian-6/src/OpenFOAM/ does not exist
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam6/src/thermophysicalModels/specie/lnInclude -I/home/sebastian/OpenFOAM/sebastian-6/src/OpenFOAM/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c reaction/reactions/makeTabularReactions.C -o Make/linux64GccDPInt32Opt/reaction/reactions/makeTabularReactions.o
In file included from lnInclude/tabularThermoPhysicsTypes.H:42,
                 from lnInclude/tabularReactionTypes.H:36,
                 from reaction/reactions/makeTabularReactions.C:27:
lnInclude/tabularEOS.H:41:10: fatal error: extrapolation2DTable.H: file or folder not found
 #include "extrapolation2DTable.H"
              ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/opt/openfoam6/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/reaction/reactions/makeTabularReactions.o] error 1
Can anyone give me a hint what I'm doing wrong?

EDIT: Got it. I've messed up the correct path in the bashrc.

Last edited by .bastian; March 30, 2019 at 17:37.
.bastian is offline   Reply With Quote

Old   August 13, 2019, 15:59
Default
  #2
New Member
 
igor
Join Date: Jun 2014
Posts: 7
Rep Power: 11
iiigoriii is on a distinguished road
Dear Yuusha,
thank you for your work. Could you please also add example with tabular reaction?
Thanks, BR, ii
iiigoriii is offline   Reply With Quote

Old   August 14, 2019, 07:00
Default
  #3
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8
Yuusha is on a distinguished road
Hi iiigoriii,


Unfortunately I havent'got a case with reactionThermo. I have tested it a long time ago with a two gas mixture without reaction and it works well. However I do not use it anymore.
Maybe you can try to modify the current tutorial by adding a second specie and look at OpenFOAM reacting test cases to add the needed files.
I have added a issue in GitHub to remind me to add a reacting tutorial case.
Yuusha is offline   Reply With Quote

Old   November 22, 2019, 05:08
Default Support for OFv7
  #4
New Member
 
Vincent
Join Date: Aug 2019
Location: Germany
Posts: 14
Rep Power: 6
vince_cfd is on a distinguished road
Hallo everyone,
has anyone tested this under OFv7 yet? I can't make it work in OFv7, but I'm not sure if I'm doing it wrong, or if it's a compatibility problem.

Using the ./Allwmake command seems to do a lot, but also returns an error at the end:
Code:
/home/cfd/OpenFOAM_ESI/OpenFOAM-v1906/wmake/rules/General/transform:34: recipe for target 'Make/linux64GccDPInt32Opt/tabularThermo/tabularThermos.o' failed
 make: *** [Make/linux64GccDPInt32Opt/tabularThermo/tabularThermos.o] Error 1
When trying to run the tutorial testcase it returns >>>could not load "libTabularThermophysicalModels.so"<<< and some other library files.
Any ideas?


EDIT: Just found the OF7 version: simply click on the Branch drop-down menu and select the correct version. Installing it now.

Last edited by vince_cfd; November 22, 2019 at 07:19.
vince_cfd is offline   Reply With Quote

Old   December 4, 2019, 13:09
Exclamation Tabulated thermo properties in parallel?
  #5
New Member
 
Join Date: May 2019
Posts: 3
Rep Power: 6
CarlosRom90 is on a distinguished road
Hello everyone,


I have tried to compute in parallel the tutorial case from https://github.com/Yuusha0/tabulated...icalProperties.


Surprisingly, it didn't work with the decomposeParDict delivered in tutorial case system folder, where the authors proposed to use the "scotch" methods.


I even tried with simple decomposition but it also failed.


Any ideas?


Thanks in advance.



PS: The decomposeParDict file in below:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 8;

method scotch;


// ************************************************** *********************** //
CarlosRom90 is offline   Reply With Quote

Old   December 5, 2019, 06:24
Default
  #6
New Member
 
Join Date: Mar 2017
Posts: 25
Rep Power: 9
.bastian is on a distinguished road
Quote:
Originally Posted by CarlosRom90 View Post
[...]
Surprisingly, it didn't work with the decomposeParDict delivered in tutorial case system folder, where the authors proposed to use the "scotch" methods.

I even tried with simple decomposition but it also failed.

Any ideas?

[...]
Ciao Carlos,

this should do the trick:

1. Comment or remove the following lines in your control dict, that this:

Code:
libs
(
    "libuserspecie.so"
    "libTabularThermophysicalModels.so"
    "libtabularReactionThermophysicalModels.so"
);
becomes:
Code:
// libs
// (
//     "libuserspecie.so"
//     "libTabularThermophysicalModels.so"
//     "libtabularReactionThermophysicalModels.so"
// );
2. Run decomposePar

3. Undo step 1 and run your simulation.

Certainly not the most elegant solution, baer it works - At least for me
SHUBHAM9595 and CarlosRom90 like this.
.bastian is offline   Reply With Quote

Old   January 27, 2020, 14:32
Default Official release for OpenFOAM-7
  #7
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8
Yuusha is on a distinguished road
Hi,

The official release for OpenFOAM-7 is available on GitHub : https://github.com/Yuusha0/tabulated...icalProperties.

Sorry for the long delay. Apart from the switch to OpenFOAM-7 this new release brings some fixes.

First, a new numbering system is used for release. I think it is easier to understand. The first number is the OpenFOAM version (in that case 7), the second number is the tabulated properties version for this OpenFOAM (so 7.1 for the first with OpenFOAM-7) and the last number will be used for bug fixes (actually it is 7.1.0).

Second, the bug with sensibleEnthalpy model is now (normally) fixed. Feel free to test it if you have cases using this model.

Third, the tutorial has been improved. It is a more physical case and it supports sensibleEnthalpy thermopysical model.

And last but not least, old version (OpenFOAM-6 one) is now preserved in a Old_OF6 version on GitHub. So it will be easier if you want to download it or suggest bug fixes.
Yuusha is offline   Reply With Quote

Old   January 28, 2020, 13:31
Exclamation Tabulated thermo + chtMultiRegionFoam
  #8
New Member
 
Join Date: May 2019
Posts: 3
Rep Power: 6
CarlosRom90 is on a distinguished road
Hi everyone,


First, thanks .bastian your tip worked in my case


Second, Yuusha, I was wondering if the tabulated thermo would work for cases with conjugate heat transfers (chtMultiRegionFoam).



Thank you!
CarlosRom90 is offline   Reply With Quote

Old   January 29, 2020, 03:26
Default
  #9
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8
Yuusha is on a distinguished road
Hi CarlosRom90,


There is no problem for using the tabulated thermo for the fluid part in chtMultiRegionFoam. Unfortunately, you cannot use it for the solid part.
Yuusha is offline   Reply With Quote

Old   January 29, 2020, 11:57
Exclamation Tabulated thermo + chtMultiRegionFoam (2)
  #10
New Member
 
Join Date: May 2019
Posts: 3
Rep Power: 6
CarlosRom90 is on a distinguished road
Thank you for your answer Yuusha.


I'm trying to use chtMultiRegionFoam solver with tabulatedThermo (fluid part).


To test both together I used the heatTransfer/chtMultiRegionFoam/heatedDuct tutorial as test case.



So, I added the required libraries inside controlDict:


libs
(
"libuserspecie.so"
"libTabularThermophysicalModels.so"
"libtabularReactionThermophysicalModels.so"
);



and when I run the simulation to check the available thermophysical models I get only the following with tabularThermo:


" heRhoThermo-reactingMixture-tabular-hTabular-tabularEOS -specie-sensibleInternalEnergy "

I am interested in:


heRhoThermo-pureMixture-tabular-hTabular-tabularEOS -specie-sensibleInternalEnergy


heRhoThermo-pureMixture-tabular-hTabular-tabularEOS -specie-sensibleEnthalpy




I think it should not be too complicated, but I tried to modified the src/ folder inside the tabulatedThermophysicalProperties-master and I didn't success...



Could you maybe give me an advice?


Thank you in advance!



Quote:
Originally Posted by Yuusha View Post
Hi CarlosRom90,


There is no problem for using the tabulated thermo for the fluid part in chtMultiRegionFoam. Unfortunately, you cannot use it for the solid part.
CarlosRom90 is offline   Reply With Quote

Old   February 3, 2020, 05:45
Default
  #11
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8
Yuusha is on a distinguished road
Quote:
Originally Posted by CarlosRom90 View Post
and when I run the simulation to check the available thermophysical models I get only the following with tabularThermo:


" heRhoThermo-reactingMixture-tabular-hTabular-tabularEOS -specie-sensibleInternalEnergy "

I am interested in:


heRhoThermo-pureMixture-tabular-hTabular-tabularEOS -specie-sensibleInternalEnergy


heRhoThermo-pureMixture-tabular-hTabular-tabularEOS -specie-sensibleEnthalpy




I think it should not be too complicated, but I tried to modified the src/ folder inside the tabulatedThermophysicalProperties-master and I didn't success...



Could you maybe give me an advice?


Thank you in advance!
Ok. I don't know why but OpenFOAM uses reaction thermo for chtMultiRegionFoam.


You have to edit the tabularReactionsThermos.C file in the src/thermophysicalModels/reactionThermo/tabularReactionThermo/ directory. Copy the structure written line 56 paste in the same file whith the desired properties. Maybe it is :
makeReactionThermos
(
rhoThermo,
rhoReactionThermo,
heRhoThermo,
pureMixture,
tabularTransport,
sensibleInternalEnergy,
hTabularThermo,
tabularEOS,
specie
);


and

makeReactionThermos
(
rhoThermo,
rhoReactionThermo,
heRhoThermo,
pureMixture,
tabularTransport,
sensibleEnthalpy,
hTabularThermo,
tabularEOS,
specie
);



Recompile the src folder and it should work.
Yuusha is offline   Reply With Quote

Old   April 8, 2020, 06:32
Default new thermophysicalModel, what are changes in files and options files
  #12
New Member
 
pranay
Join Date: Mar 2020
Posts: 7
Rep Power: 6
pranay347 is on a distinguished road
Quote:
Originally Posted by Yuusha View Post
Ok. I don't know why but OpenFOAM uses reaction thermo for chtMultiRegionFoam.


You have to edit the tabularReactionsThermos.C file in the src/thermophysicalModels/reactionThermo/tabularReactionThermo/ directory. Copy the structure written line 56 paste in the same file whith the desired properties. Maybe it is :
makeReactionThermos
(
rhoThermo,
rhoReactionThermo,
heRhoThermo,
pureMixture,
tabularTransport,
sensibleInternalEnergy,
hTabularThermo,
tabularEOS,
specie
);


and

makeReactionThermos
(
rhoThermo,
rhoReactionThermo,
heRhoThermo,
pureMixture,
tabularTransport,
sensibleEnthalpy,
hTabularThermo,
tabularEOS,
specie
);



Recompile the src folder and it should work.

hi

i am too trying to make a new thermophysicalModel for my case i just need to make new combination of

thermoType
{
type heRhoThermo;
mixture pureMixture;
transport sutherland;
thermo hPolynomial;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy
}
so i added this class in thermophysicalModel/basic/rhoreaction/rhothermos.c file and compiled without changing the file and option files in make folder, it compiled but not using in the simulation as its giving same error of "unknown reaction thermo" and listing valid thermo types.
so do i need to change the files and option files ? if so what are the changes? and any other changes?

Thank you
Pranay
pranay347 is offline   Reply With Quote

Old   April 23, 2020, 10:53
Default New release of tabulated properties
  #13
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8
Yuusha is on a distinguished road
Hi,


A new version (v7.2.0) is available on GitHub : https://github.com/Yuusha0/tabulated...icalProperties.

It fixes a bug with tables for multi-species simulations. It adds a 'pseudo tutorial' for multi-species with tabulated properties. The tutorial does not properly work. It crashes after some iterations. But you can use it to set-up more quickly your multi-species calculations.

Last, it adds a new perfectGas switch option for equation of state property (default is false). With this option Cp - Cv is calculated for a perfect gas. It can help you with unstable calculation when the standard model does not work.
Skaiwalker and luks1910 like this.
Yuusha is offline   Reply With Quote

Old   November 9, 2020, 10:52
Default
  #14
New Member
 
Joaquín Aranciaga
Join Date: Oct 2018
Posts: 21
Rep Power: 7
joaran is on a distinguished road
Quote:
Originally Posted by .bastian View Post
Hi Yuusha, hi folks,


i kinda don't get it compiled using your instructions given on your github page.

Code:
Allwmake /home/sebastian/OpenFOAM/FOAMExtensions/tabulatedThermophysicalProperties/src
wmakeLnInclude: linking include files to OpenFOAM/lnInclude
wmake thermophysicalModels/specie
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /home/sebastian/OpenFOAM/sebastian-6/src/OpenFOAM/ does not exist
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam6/src/thermophysicalModels/specie/lnInclude -I/home/sebastian/OpenFOAM/sebastian-6/src/OpenFOAM/lnInclude -IlnInclude -I. -I/opt/openfoam6/src/OpenFOAM/lnInclude -I/opt/openfoam6/src/OSspecific/POSIX/lnInclude   -fPIC -c reaction/reactions/makeTabularReactions.C -o Make/linux64GccDPInt32Opt/reaction/reactions/makeTabularReactions.o
In file included from lnInclude/tabularThermoPhysicsTypes.H:42,
                 from lnInclude/tabularReactionTypes.H:36,
                 from reaction/reactions/makeTabularReactions.C:27:
lnInclude/tabularEOS.H:41:10: fatal error: extrapolation2DTable.H: file or folder not found
 #include "extrapolation2DTable.H"
              ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/opt/openfoam6/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/reaction/reactions/makeTabularReactions.o] error 1
Can anyone give me a hint what I'm doing wrong?

EDIT: Got it. I've messed up the correct path in the bashrc.



Hi all! First of all, thanks for sharing such a valuable tool.

I'm having the same output as Bastian when hitting "./Allwmake". I followed the instructions of the "README" in github. The sourcing part look fine to me:

[usuario@localhost src]$ echo $TAB_PROPERTIES
/home/usuario/OpenFOAM/usuario-7
[usuario@localhost src]$ emacs ../etc/bashrc&

Could anyone please guide me on how to solve this issue?
I'm using OF 7, and the last available version of the tabulated library.

Thank you!

I also could just solve this issue by placing the contents of the folder "tabulatedThermophysicalProperties" in $WM_PROJECT_USER_DIR

Last edited by joaran; November 9, 2020 at 13:45. Reason: Solved
joaran is offline   Reply With Quote

Old   October 2, 2022, 03:50
Default
  #15
New Member
 
Nishan Jain
Join Date: Aug 2010
Posts: 3
Rep Power: 15
vortexnix is on a distinguished road
Quote:
Originally Posted by joaran View Post
Hi all! First of all, thanks for sharing such a valuable tool.

I'm having the same output as Bastian when hitting "./Allwmake". I followed the instructions of the "README" in github. The sourcing part look fine to me:

[usuario@localhost src]$ echo $TAB_PROPERTIES
/home/usuario/OpenFOAM/usuario-7
[usuario@localhost src]$ emacs ../etc/bashrc&

Could anyone please guide me on how to solve this issue?
I'm using OF 7, and the last available version of the tabulated library.

Thank you!

I also could just solve this issue by placing the contents of the folder "tabulatedThermophysicalProperties" in $WM_PROJECT_USER_DIR

Or if you update bashrc such that
echo $TAB_PROPERTIES
gives
/home/usuario/OpenFOAM/usuario-7/tabulatedThermophysicalProperties
vortexnix 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
[Other] Multi species mass transport library [update] novyno OpenFOAM Community Contributions 111 November 9, 2021 23:37
ERROR: unable to find library HJH CFX 6 February 26, 2019 06:52
Forcing a solver to use your custom library. cdunn6754 OpenFOAM Programming & Development 0 March 30, 2017 16:05
Compiled library vs. inInclude Files, DSMC solver crashes after run GPesch OpenFOAM Programming & Development 8 April 18, 2013 07:17
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49


All times are GMT -4. The time now is 05:25.