|
[Sponsors] |
[Other] Tabulated thermophysicalProperties library |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 7, 2019, 04:59 |
|
#41 | |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
Quote:
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. |
||
January 7, 2019, 09:44 |
|
#42 | ||
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
Quote:
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:
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. |
|||
February 3, 2019, 18:23 |
2 new versions for tables
|
#43 |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
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. |
|
February 7, 2019, 04:37 |
|
#44 |
Member
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 38
Rep Power: 9 |
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 |
|
February 8, 2019, 15:33 |
|
#45 |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
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 ? |
|
February 11, 2019, 05:05 |
|
#46 |
Member
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 38
Rep Power: 9 |
Hi Yuusha,
It can't open wmake/scripts/AllwmakeParseArguments when running ./Allwmake. So I removed the Code:
$WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments 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. 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
__________________
/ Henrik Johansson Last edited by HenrikJohansson; February 13, 2019 at 05:57. |
|
March 30, 2019, 16:23 |
|
#47 |
New Member
Join Date: Mar 2017
Posts: 25
Rep Power: 9 |
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 EDIT: Got it. I've messed up the correct path in the bashrc. Last edited by .bastian; March 30, 2019 at 18:37. |
|
August 13, 2019, 16:59 |
|
#48 |
New Member
igor
Join Date: Jun 2014
Posts: 7
Rep Power: 12 |
Dear Yuusha,
thank you for your work. Could you please also add example with tabular reaction? Thanks, BR, ii |
|
August 14, 2019, 08:00 |
|
#49 |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
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. |
|
November 22, 2019, 06:08 |
Support for OFv7
|
#50 |
New Member
Vincent
Join Date: Aug 2019
Location: Germany
Posts: 14
Rep Power: 7 |
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 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 08:19. |
|
December 4, 2019, 14:09 |
Tabulated thermo properties in parallel?
|
#51 |
New Member
Join Date: May 2019
Posts: 3
Rep Power: 7 |
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; // ************************************************** *********************** // |
|
December 5, 2019, 07:24 |
|
#52 | |
New Member
Join Date: Mar 2017
Posts: 25
Rep Power: 9 |
Quote:
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" ); Code:
// libs // ( // "libuserspecie.so" // "libTabularThermophysicalModels.so" // "libtabularReactionThermophysicalModels.so" // ); 3. Undo step 1 and run your simulation. Certainly not the most elegant solution, baer it works - At least for me |
||
January 27, 2020, 15:32 |
Official release for OpenFOAM-7
|
#53 |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
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. |
|
January 28, 2020, 14:31 |
Tabulated thermo + chtMultiRegionFoam
|
#54 |
New Member
Join Date: May 2019
Posts: 3
Rep Power: 7 |
||
January 29, 2020, 04:26 |
|
#55 |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
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. |
|
January 29, 2020, 12:57 |
Tabulated thermo + chtMultiRegionFoam (2)
|
#56 |
New Member
Join Date: May 2019
Posts: 3
Rep Power: 7 |
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! |
|
February 2, 2020, 00:46 |
tabularThermo for OF 4.x
|
#57 | |
New Member
ata
Join Date: Feb 2015
Posts: 4
Rep Power: 11 |
Dear tilasoldo,
Have you succeeded to adapt it for OF 4.x? Quote:
|
||
February 3, 2020, 06:45 |
|
#58 | |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
Quote:
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. |
||
February 3, 2020, 06:52 |
|
#59 |
New Member
Join Date: Feb 2018
Location: France
Posts: 15
Rep Power: 8 |
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. |
|
April 8, 2020, 07:32 |
new thermophysicalModel, what are changes in files and options files
|
#60 | |
New Member
pranay
Join Date: Mar 2020
Posts: 7
Rep Power: 6 |
Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Multi species mass transport library [update] | novyno | OpenFOAM Community Contributions | 111 | November 10, 2021 00:37 |
ERROR: unable to find library | HJH | CFX | 6 | February 26, 2019 07:52 |
Forcing a solver to use your custom library. | cdunn6754 | OpenFOAM Programming & Development | 0 | March 30, 2017 17:05 |
Compiled library vs. inInclude Files, DSMC solver crashes after run | GPesch | OpenFOAM Programming & Development | 8 | April 18, 2013 08:17 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |