|
[Sponsors] |
Adding New phaseCompressible Turbulence Model |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 16, 2016, 12:26 |
|
#21 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
For anyone who may read this thread in the future, OpenFOAM foundation has adapted a similar approach. Unfortunately, this update is available only for OpenFOAM-dev but eventually, it will be part of the upcoming versions.
It is commit OpenFOAM-dev : 028617c30c68a66c00a3cda28e8706709f9f9e10 |
|
November 16, 2016, 12:35 |
|
#22 |
Member
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13 |
Thanks Hassan,
I missed that function definition when I was copying over the functions from 2.3. Sometimes it takes a second set of eyes! Now I just have a floating point exception somewhere I've got to find haha. Hopefully, shouldn't be too hard. Thanks again for your help! Schuyler |
|
November 17, 2016, 08:28 |
|
#23 |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Thanks for reply.
I have uploaded my files, please go through this. Yes it a CFD support version downloaded from following link : http://www.cfdsupport.com/openfoam-in-box.html it is OpenFoam in box based on openFoam 3.0.x For compiling my turbulence model I followed the steps as given here: http://hassankassem.me/posts/newturbulencemodel/ |
|
November 17, 2016, 09:01 |
|
#24 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
You have a similar problem, the definition of one function is missing:
You called it at line 110. Code:
volScalarField Ck() const; Hassan |
|
November 18, 2016, 05:34 |
|
#25 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
Thanks for reply, I will try to do what u said. But can u please tell me how can I learn to understand the OpenFoam codes ? can u please provide me some study references for that ? |
||
November 18, 2016, 08:18 |
|
#26 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Quote:
Actually, this problem is related to C++. There are many C++ online material and books. Regarding this problem you need to review C++ source files organization, usually at the end of any C++ book. Please check this link from C++ wikibooks [LINK] Best wishes, Hassan |
||
November 25, 2016, 00:26 |
|
#27 | |
Member
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10 |
Quote:
Still the problem is not solved. My turbulence model is compiled successfully but while running my case i am getting following error : reactingFoam: symbol lookup error: /home/adlak/OpenFOAM/adlak-3.0.x-cfdsupport/platforms/linux64Gcc49DPInt32Opt/lib/libdynamicSmagorinsky.so: undefined symbol: _ZNK4Foam9LESModels18dynamicSmagorinskyINS_15EddyD iffusivityINS_18ThermalDiffusivityINS_27Compressib leTurbulenceModelINS_11fluidThermoEEEEEEEE2CkEv I have uploaded my files. |
||
November 26, 2016, 11:35 |
|
#28 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Quote:
Try this to find the missing link; Code:
c++filt _ZNK4Foam9LESModels18dynamicSmagorinskyINS_15EddyDiffusivityINS_18ThermalDiffusivityINS_27CompressibleTurbulenceModelINS_11fluidThermoEEEEEEEE2CkEv |
||
March 18, 2019, 10:04 |
|
#29 |
Senior Member
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8 |
||
January 14, 2020, 12:04 |
Still problems
|
#30 |
New Member
Dhruv
Join Date: Jan 2020
Location: Blacksburg, Virginia
Posts: 6
Rep Power: 6 |
Hello Hassan
I read your blogpost and it helped me a lot. I am currently trying to implement a recent k-Omega SST model in OpenFOAM7. I obeyed all the instructions in the blogpost and read the previous posts in this thread but I am still facing the same "Unknown RAS Model" error. I have not changed the original OpenFOAM repo on my device to keep it intact and I have written the name of the library correctly in controlDict. Thanks Dhruv |
|
February 12, 2020, 12:12 |
|
#31 | |
Senior Member
|
Quote:
Dear Hassan, I copied your files and put them into phasecompressibleturbulencemodel folder. But it failed to be compiled. The error is in the following: $ wmake wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file myphaseCompressibleTurbulenceModels.C could not open file ThermalDiffusivity.H for source file myphaseCompressibleTurbulenceModels.C could not open file EddyDiffusivity.H for source file myphaseCompressibleTurbulenceModels.C could not open file laminar.H for source file myphaseCompressibleTurbulenceModels.C could not open file RASModel.H for source file myphaseCompressibleTurbulenceModels.C could not open file LESModel.H for source file myphaseCompressibleTurbulenceModels.C $(/home/ofuser/blueCFD/OpenFOAM-5.x/wmake/scripts/makeReinterpretExePath x86_64-w64-mingw32-g++) -std=c++11 -Dmingw_w64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -DWIN64 -DLITTLE_ENDIAN -DWIN64 -DLITTLE_ENDIAN -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O2 -DNDEBUG -gdwarf -DNoRepository -ftemplate-depth-100 -D_FILE_OFFSET_BITS=64 -D_MODE_T_ -I/home/ofuser/blueCFD/OpenFOAM-5.x/applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/transportModels/compressible/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/thermophysicalModels/basic/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/thermophysicalModels/specie/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/thermophysicalModels/solidThermo/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/thermophysicalModels/solidSpecie/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/meshTools/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/applications/solvers/multiphase/twoPhaseEulerFoam/interfacialModels/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/transportModels/incompressible/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/TurbulenceModels/compressible/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/TurbulenceModels/phaseCompressible/lnInclude @Make/mingw_w64GccDPInt32Opt/includeHeaderPaths -IlnInclude -I. -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/ofuser/blueCFD/OpenFOAM-5.x/src/OSspecific/MSwindows/lnInclude -c myphaseCompressibleTurbulenceModels.C -o J:/blueCFD-Core-2017/ofuser-of5/applications/solvers/mytwoPhaseEulerFoam4/phaseCompressibleTurbulenceModels/Make/mingw_w64GccDPInt32Opt/myphaseCompressibleTurbulenceModels.o myphaseCompressibleTurbulenceModels.C:32:10: fatal error: ThermalDiffusivity.H: No such file or directory #include "ThermalDiffusivity.H" ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [/home/ofuser/blueCFD/OpenFOAM-5.x/wmake/rules/General/transform:26: Make/mingw_w64GccDPInt32Opt/myphaseCompressibleTurbulenceModels.o] Error 1 |
||
March 25, 2020, 07:43 |
|
#32 | |
New Member
amanda
Join Date: Oct 2019
Posts: 2
Rep Power: 0 |
Quote:
I'm facing the same problem. I'm not sure, if it becauses of Windows. Did you solve it? |
||
March 25, 2020, 08:10 |
|
#33 |
Senior Member
|
||
March 25, 2020, 08:54 |
|
#34 |
New Member
amanda
Join Date: Oct 2019
Posts: 2
Rep Power: 0 |
Hi, is there any method to fix this problem on windows?
|
|
March 25, 2020, 09:08 |
|
#35 |
Senior Member
|
||
Tags |
phasecompressible, phaseincompressible, tubulence model, turbulence, twophaseeulerfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding graviational acc. to turbulence model | fertinaz | OpenFOAM Programming & Development | 6 | December 12, 2020 01:04 |
chtMultiRegionSimpleFoam: strange error | samiam1000 | OpenFOAM Running, Solving & CFD | 26 | December 29, 2015 23:14 |
Turbulence model choice | dave13 | CFX | 3 | December 22, 2015 08:12 |
Compressible turbulence model issues | 351Cleveland | OpenFOAM | 5 | October 24, 2013 16:41 |
What model of turbulence choose to study an external aerodynamics case | raffale | OpenFOAM | 0 | August 23, 2012 06:45 |