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

Like Tree29Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2019, 03:59
Default
  #41
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 4
calf.Z is on a distinguished road
Quote:
Originally Posted by janGaertner View Post
What you use depends on the table you have. If your viscosity table is organized with temperature as the first argument you have to use muTable(T,p) otherwise muTable(p,T).
Thanks for the clarification.

I think the thermophysicalTable.py provided in the github link just allows you to transform the format of the tabulated table?

If I want to obtain thermo propertities from NIST or coolprop, should I write another .py code to realize it? Thank you.
calf.Z is offline   Reply With Quote

Old   January 7, 2019, 08:44
Default
  #42
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
Yuusha is on a distinguished road
Quote:
Originally Posted by calf.Z View Post
Thanks for the clarification.

I think the thermophysicalTable.py provided in the github link just allows you to transform the format of the tabulated table?

If I want to obtain thermo propertities from NIST or coolprop, should I write another .py code to realize it? Thank you.

The python script allows you to import tables from any text file which is formatted in csv or equivalent. Use python3 thermophysicalTable.py --help to see all available options.


Quote:
Originally Posted by janGaertner View Post
@Yuusha: Maybe it would be good to change this to be consistent with the function call.

Most of the time, I need many different temperatures and only one or a few different pressures. That's why I prefer the format with one line by temperature when it is possible. I think it is more human readable.
Yuusha is offline   Reply With Quote

Old   February 3, 2019, 17:23
Thumbs up 2 new versions for tables
  #43
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
Yuusha is on a distinguished road
Hi,

Two new versions of thermophysical tables is available at GitHub : https://github.com/Yuusha0/tabulated...icalProperties


The first one (v.3.1.0) fixes several bugs, improve the tutorial and add a bahsrc file in etc/ directory. This file let you choose the folder when you want to place the source code. It does not break compatiility with older versions.


The second one (v.4.0 and master branch) add tables for density-based solvers (thanks to calf.Z), and change the out of bound default boundary from extrapolate to clamp. This last feature may break backward compatibility.
wyldckat and vince_cfd like this.
Yuusha is offline   Reply With Quote

Old   February 7, 2019, 03:37
Default
  #44
Member
 
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 36
Rep Power: 4
HenrikJohansson is on a distinguished road
Hi,

Would it be possible to compile this library for foam-extend 4.0?

What would the changes needed to be to implement it if not compatible?

I'm currently using the real gas branch of foam-extend by Chris Lucas but having problems calculating the NASA polynomials correctly.
__________________
/ Henrik Johansson
HenrikJohansson is offline   Reply With Quote

Old   February 8, 2019, 14:33
Default
  #45
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
Yuusha is on a distinguished road
Hi Henrik,


Unfortunately I never used foam-extend. So I don't know if it is easy to port the tables in it. Did you test to compile the source code with foam extend ? Did you see any errors ?
Yuusha is offline   Reply With Quote

Old   February 11, 2019, 04:05
Default
  #46
Member
 
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 36
Rep Power: 4
HenrikJohansson is on a distinguished road
Hi Yuusha,

It can't open wmake/scripts/AllwmakeParseArguments when running ./Allwmake.

So I removed the
Code:
$WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
Then i get the following error
Code:
tabularThermo/tabularThermo.H:39:25: fatal error: fluidThermo.H: No such file or directory compilation terminated.

rhoTabularThermo/rhoTabularThermos.C:27:23: fatal error: rhoThermo.H: No such file or directory compilation terminated.

tabularThermo/tabularThermos.C:27:23: fatal error: psiThermo.H: No such file or directory compilation terminated.

chemistryReaders/chemistryReader/makeTabularChemistryReaders.C:28:39: fatal error: tabularThermoPhysicsTypes.H: No such file or directory compilation terminated.

tabularReactionThermo/tabularReactionThermos.C:29:31: fatal error: rhoReactionThermo.H: No such file or directory compilation terminated.
Maybe these five libraries are named diffrently in foam-extend. I have not yet had time to look into that. It could maybe also be a linking error in the make/options?

After futher examination of the code I saw that a few needed components for the tableRead codes have been implemented in foam-extend 4.1. I'm currently installing it.

After installing foam-extend 4.1 I get the following errors:
Code:
unknown option: '-u OpenFOAM'

usage: wmakeLnInclude [-f] <dir> [-lnOption]

    Link all the source files in the <dir> into <dir>/lnInclude

Note
    The '-f' option forces an update when the lnInclude directory already exists
    and also changes the default linking from 'ln -s' to 'ln -sf'.

Making dependency list for source file reaction/reactions/makeTabularReactions.C
could not open file tabularReactionTypes.H for source file reaction/reactions/makeTabularReactions.C
could not open file thermo.H for source file reaction/reactions/makeTabularReactions.C
could not open file tabularTransport.H for source file reaction/reactions/makeTabularReactions.C
could not open file hTabularThermo.H for source file reaction/reactions/makeTabularReactions.C
could not open file tabularEOS.H for source file reaction/reactions/makeTabularReactions.C
could not open file infiniteReactionRate.H for source file reaction/reactions/makeTabularReactions.C
SOURCE=reaction/reactions/makeTabularReactions.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeTabularReactions.o
reaction/reactions/makeTabularReactions.C:27:34: fatal error: tabularReactionTypes.H: No such file or directory
compilation terminated.
reaction/reactions/makeTabularReactions.dep:214: recipe for target 'Make/linux64GccDPOpt/makeTabularReactions.o' failed
make: *** [Make/linux64GccDPOpt/makeTabularReactions.o] Error 1
Making dependency list for source file tabularThermo/tabularThermo.C
Making dependency list for source file tabularThermo/tabularThermos.C
Making dependency list for source file rhoTabularThermo/rhoTabularThermo.C
Making dependency list for source file rhoTabularThermo/rhoTabularThermos.C
could not open file psiThermo.H for source file tabularThermo/tabularThermos.C
could not open file rhoThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file fluidThermo.H for source file rhoTabularThermo/rhoTabularThermo.C
could not open file fluidThermo.H for source file tabularThermo/tabularThermo.C
could not open file rhoThermo.H for source file rhoTabularThermo/rhoTabularThermo.C
could not open file rhoThermo.H for source file tabularThermo/tabularThermos.C
could not open file makeThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file makeThermo.H for source file tabularThermo/tabularThermos.C
could not open file Vector.H for source file rhoTabularThermo/rhoTabularThermo.C
could not open file Vector.H for source file tabularThermo/tabularThermo.C
could not open file tabularEOS.H for source file tabularThermo/tabularThermos.C
could not open file tabularEOS.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file incompressiblePerfectGas.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file Boussinesq.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file rhoConst.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file perfectFluid.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file PengRobinsonGas.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file adiabaticPerfectFluid.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file hTabularThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file sensibleEnthalpy.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file sensibleInternalEnergy.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file thermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file hTabularThermo.H for source file tabularThermo/tabularThermos.C
could not open file tabularTransport.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file hePsiThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file heRhoThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file fluidThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file Vector.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file heThermo.H for source file rhoTabularThermo/rhoTabularThermos.C
could not open file sensibleEnthalpy.H for source file tabularThermo/tabularThermos.C
could not open file sensibleInternalEnergy.H for source file tabularThermo/tabularThermos.C
could not open file thermo.H for source file tabularThermo/tabularThermos.C
could not open file tabularTransport.H for source file tabularThermo/tabularThermos.C
could not open file hePsiThermo.H for source file tabularThermo/tabularThermos.C
could not open file heRhoThermo.H for source file tabularThermo/tabularThermos.C
could not open file fluidThermo.H for source file tabularThermo/tabularThermos.C
could not open file Vector.H for source file tabularThermo/tabularThermos.C
could not open file heThermo.H for source file tabularThermo/tabularThermos.C
SOURCE=tabularThermo/tabularThermo.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/finiteVolume/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/transportModels/compressible/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tabularThermo.o
SOURCE=tabularThermo/tabularThermos.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/finiteVolume/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/transportModels/compressible/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tabularThermos.o
SOURCE=rhoTabularThermo/rhoTabularThermo.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/finiteVolume/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/transportModels/compressible/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhoTabularThermo.o
SOURCE=rhoTabularThermo/rhoTabularThermos.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/finiteVolume/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/meshTools/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/transportModels/compressible/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/rhoTabularThermos.o
tabularThermo/tabularThermos.C:27:23: fatal error: psiThermo.H: No such file or directory
rhoTabularThermo/rhoTabularThermos.C:27:23: fatal error: rhoThermo.H: No such file or directory
compilation terminated.
compilation terminated.
In file included from rhoTabularThermo/rhoTabularThermo.C:27:0:
rhoTabularThermo/rhoTabularThermo.H:39:25: fatal error: fluidThermo.H: No such file or directory
compilation terminated.
In file included from tabularThermo/tabularThermo.C:27:0:
tabularThermo/tabularThermo.H:39:25: fatal error: fluidThermo.H: No such file or directory
compilation terminated.
rhoTabularThermo/rhoTabularThermo.dep:162: recipe for target 'Make/linux64GccDPOpt/rhoTabularThermo.o' failed
make: *** [Make/linux64GccDPOpt/rhoTabularThermo.o] Error 1
make: *** Waiting for unfinished jobs....
rhoTabularThermo/rhoTabularThermos.dep:468: recipe for target 'Make/linux64GccDPOpt/rhoTabularThermos.o' failed
make: *** [Make/linux64GccDPOpt/rhoTabularThermos.o] Error 1
tabularThermo/tabularThermos.dep:471: recipe for target 'Make/linux64GccDPOpt/tabularThermos.o' failed
make: *** [Make/linux64GccDPOpt/tabularThermos.o] Error 1
tabularThermo/tabularThermo.dep:162: recipe for target 'Make/linux64GccDPOpt/tabularThermo.o' failed
make: *** [Make/linux64GccDPOpt/tabularThermo.o] Error 1
Making dependency list for source file chemistryReaders/chemistryReader/makeTabularChemistryReaders.C
Making dependency list for source file tabularReactionThermo/tabularReactionThermos.C
could not open file rhoReactionThermo.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file heRhoThermo.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file hTabularThermo.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file heTabularThermo.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file tabularEOS.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file thermo.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file tabularTransport.H for source file tabularReactionThermo/tabularReactionThermos.C
could not open file tabularThermoPhysicsTypes.H for source file chemistryReaders/chemistryReader/makeTabularChemistryReaders.C
SOURCE=chemistryReaders/chemistryReader/makeTabularChemistryReaders.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/transportModels/compressible/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/solidSpecie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/reactionThermo/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/makeTabularChemistryReaders.o
SOURCE=tabularReactionThermo/tabularReactionThermos.C ;  g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/henrik/foam/foam-extend-4.1/src/transportModels/compressible/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/OpenFOAM/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/basic/lnInclude     -I/home/henrik/foam/foam-extend-4.1/tabulatedThermophysicalProperties-master/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/specie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/solidSpecie/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/thermophysicalModels/reactionThermo/lnInclude     -I/home/henrik/foam/foam-extend-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/henrik/foam/foam-extend-4.1/src/foam/lnInclude -I/home/henrik/foam/foam-extend-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/tabularReactionThermos.o
chemistryReaders/chemistryReader/makeTabularChemistryReaders.C:28:39: fatal error: tabularThermoPhysicsTypes.H: No such file or directory
compilation terminated.
tabularReactionThermo/tabularReactionThermos.C:29:31: fatal error: rhoReactionThermo.H: No such file or directory
compilation terminated.
chemistryReaders/chemistryReader/makeTabularChemistryReaders.dep:225: recipe for target 'Make/linux64GccDPOpt/makeTabularChemistryReaders.o' failed
make: *** [Make/linux64GccDPOpt/makeTabularChemistryReaders.o] Error 1
make: *** Waiting for unfinished jobs....
tabularReactionThermo/tabularReactionThermos.dep:588: recipe for target 'Make/linux64GccDPOpt/tabularReactionThermos.o' failed
make: *** [Make/linux64GccDPOpt/tabularReactionThermos.o] Error 1
Looks like alot of files are missing. Maybe the implementation would be alot diffrent in foam-extend. At least with extend 4.1 the table reader library is implemented.
__________________
/ Henrik Johansson

Last edited by HenrikJohansson; February 13, 2019 at 04:57.
HenrikJohansson is offline   Reply With Quote

Old   March 30, 2019, 15:23
Question
  #47
New Member
 
Join Date: Mar 2017
Posts: 25
Rep Power: 5
.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
  #48
New Member
 
igor
Join Date: Jun 2014
Posts: 7
Rep Power: 8
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
  #49
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
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
  #50
New Member
 
Vincent
Join Date: Aug 2019
Location: Germany
Posts: 14
Rep Power: 2
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?
  #51
New Member
 
Join Date: May 2019
Posts: 3
Rep Power: 3
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
  #52
New Member
 
Join Date: Mar 2017
Posts: 25
Rep Power: 5
.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
CarlosRom90 likes this.
.bastian is offline   Reply With Quote

Old   January 27, 2020, 14:32
Default Official release for OpenFOAM-7
  #53
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
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
  #54
New Member
 
Join Date: May 2019
Posts: 3
Rep Power: 3
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
  #55
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
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)
  #56
New Member
 
Join Date: May 2019
Posts: 3
Rep Power: 3
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 1, 2020, 23:46
Default tabularThermo for OF 4.x
  #57
New Member
 
ata
Join Date: Feb 2015
Posts: 3
Rep Power: 7
ata313ata is on a distinguished road
Dear tilasoldo,
Have you succeeded to adapt it for OF 4.x?

Quote:
Originally Posted by tilasoldo View Post
Hi chriss85,

First of all thank you for your work, I am amazed by the fact that OpenFoam still doesn't provide a solution for tabulated thermophysical properties, and you implementation is truly wonderful.

I am (also) aiming at adapting it for OpenFOAM 4.x, as some classes have changed since OF 2.3 I will publish my code as soon as I get to validate it!

Regards,
Xavier L.
ata313ata is offline   Reply With Quote

Old   February 3, 2020, 05:45
Default
  #58
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
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   February 3, 2020, 05:52
Default
  #59
New Member
 
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 4
Yuusha is on a distinguished road
Quote:
Originally Posted by ata313ata View Post
Dear tilasoldo,
Have you succeeded to adapt it for OF 4.x?
Hi ata,
I think we never publicly publish an OpenFOAM-4 version of the library. You can try version 1.x or 2.x in my GitHub which have been developed for OpenFOAM-5. But I'm not sure they work on OpenFOAM-4.
Yuusha is offline   Reply With Quote

Old   April 8, 2020, 06:32
Default new thermophysicalModel, what are changes in files and options files
  #60
New Member
 
pranay
Join Date: Mar 2020
Posts: 7
Rep Power: 2
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

Reply

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
[Other] Multi species mass transport library [update] novyno OpenFOAM Community Contributions 108 August 25, 2019 15:06
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 01:38.