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

Adding New phaseCompressible Turbulence Model

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2016, 12:26
Default
  #21
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
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
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   November 16, 2016, 12:35
Default
  #22
Member
 
W. Schuyler Hinman
Join Date: Apr 2013
Location: Calgary, Alberta, Canada
Posts: 38
Rep Power: 13
schuyler is on a distinguished road
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
hk318i likes this.
schuyler is offline   Reply With Quote

Old   November 17, 2016, 08:28
Default
  #23
Member
 
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10
Adlak is on a distinguished road
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/
Attached Files
File Type: gz dynamicSmagorinsky.tar.gz (4.1 KB, 17 views)
Adlak is offline   Reply With Quote

Old   November 17, 2016, 09:01
Default
  #24
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
You have a similar problem, the definition of one function is missing:
You called it at line 110.
Code:
volScalarField Ck() const;
Best wishes,
Hassan
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   November 18, 2016, 05:34
Default
  #25
Member
 
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10
Adlak is on a distinguished road
Quote:
Originally Posted by hk318i View Post
You have a similar problem, the definition of one function is missing:
You called it at line 110.
Code:
volScalarField Ck() const;
Best wishes,
Hassan

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 ?
Adlak is offline   Reply With Quote

Old   November 18, 2016, 08:18
Default
  #26
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Quote:
Originally Posted by Adlak View Post
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 ?

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
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   November 25, 2016, 00:26
Default
  #27
Member
 
Mukesh Adlak
Join Date: Jun 2016
Posts: 32
Rep Power: 10
Adlak is on a distinguished road
Quote:
Originally Posted by hk318i View Post
You have a similar problem, the definition of one function is missing:
You called it at line 110.
Code:
volScalarField Ck() const;
Best wishes,
Hassan
Dear Hassan,
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.
Attached Files
File Type: gz dynamicSmagorinsky.tar.gz (4.1 KB, 3 views)
Adlak is offline   Reply With Quote

Old   November 26, 2016, 11:35
Default
  #28
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
Quote:
Originally Posted by Adlak View Post
Dear Hassan,
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.

Try this to find the missing link;

Code:
c++filt _ZNK4Foam9LESModels18dynamicSmagorinskyINS_15EddyDiffusivityINS_18ThermalDiffusivityINS_27CompressibleTurbulenceModelINS_11fluidThermoEEEEEEEE2CkEv
__________________
@HIKassem | HassanKassem.me
hk318i is offline   Reply With Quote

Old   March 18, 2019, 10:04
Default
  #29
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by hk318i View Post
Hello,

Code:
  
 Duplicate entry laminar in runtime selection table TurbulenceModel
 Duplicate entry LES in runtime selection table TurbulenceModel
Best wishes,
Hassan Kassem
I have also encountered this Duplicate entry problem. Have you solved it? Thank you.
calf.Z is offline   Reply With Quote

Old   January 14, 2020, 12:04
Default Still problems
  #30
New Member
 
Dhruv
Join Date: Jan 2020
Location: Blacksburg, Virginia
Posts: 6
Rep Power: 6
TurbulentGuy is on a distinguished road
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
TurbulentGuy is offline   Reply With Quote

Old   February 12, 2020, 12:12
Default
  #31
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by hk318i View Post
You maybe need to run wclean first. In case, it did not wok, I'm attaching here two examples which you can use for comparison.

Bw,
Hassan

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
qi.yang@polimi.it is offline   Reply With Quote

Old   March 25, 2020, 07:43
Default
  #32
New Member
 
amanda
Join Date: Oct 2019
Posts: 2
Rep Power: 0
sunjh is on a distinguished road
Quote:
Originally Posted by TurbulentGuy View Post
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
Hey Dhruv,

I'm facing the same problem. I'm not sure, if it becauses of Windows. Did you solve it?
sunjh is offline   Reply With Quote

Old   March 25, 2020, 08:10
Default
  #33
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by sunjh View Post
Hey Dhruv,

I'm facing the same problem. I'm not sure, if it becauses of Windows. Did you solve it?
Hi, if you use linux there are no this problem.
qi.yang@polimi.it is offline   Reply With Quote

Old   March 25, 2020, 08:54
Default
  #34
New Member
 
amanda
Join Date: Oct 2019
Posts: 2
Rep Power: 0
sunjh is on a distinguished road
Hi, is there any method to fix this problem on windows?
sunjh is offline   Reply With Quote

Old   March 25, 2020, 09:08
Default
  #35
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by sunjh View Post
Hi, is there any method to fix this problem on windows?
I also tried to ask this before. However, I found the method is available in linux. I gave up this issue. In my opinion, you'd better use linux-openfoam.
qi.yang@polimi.it is offline   Reply With Quote

Reply

Tags
phasecompressible, phaseincompressible, tubulence model, turbulence, twophaseeulerfoam

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
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


All times are GMT -4. The time now is 07:54.