|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Filippo
Join Date: Dec 2023
Location: Italy
Posts: 4
Rep Power: 3 ![]() |
Hi everyone,
this is my first post. I am writing my master thesis in the implementation of a new turbulence model. I have OpenFOAM 12 compiled in my $HOME directory. I have tried to compile an existing turbulence model called myKEpsilon by watching the following YouTube tutorial: http://www.youtube.com/watch?v=kfshFtULjt4&t=0s The result is the same of the video. Compiler doesn't give me any error but the compilation failed. In fact, if I type 'myKEpsilon -help' the bash respond with 'command not found'. In addition myKEpsilon folder after the compilation weights only 120 Kb, while the order of magnitude is 2 Mb. I had already tried to compile the same customize turbulent model with OpenFOAM 10 installed in "opt" directory (instead of $HOME directory). I really appreciate your help! Thanks, Filippo P.S. I attached below what I see after the compilation |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 825
Rep Power: 16 ![]() |
I am not sure what you expected to see when typing 'myKEpsilon -help'. Try it for kEpsilon and you'll get the same result. Remember, you are compiling a turbulence model and not a solver.
Your first check should be whether it has actually generated any output - look in the path at the end of the sceenshot you attached and see if the .so library file has been generated. If it has, then all is okay. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Filippo
Join Date: Dec 2023
Location: Italy
Posts: 4
Rep Power: 3 ![]() |
The .so file has been generated and it weights 16 KB. I tried to run a simple test case and I get the following error:
I modified "momentumTransport" and the "controlDict" as follows: /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 12 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; location "constant"; object momentumTransport; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // simulationType RAS; RAS { model myKEpsilon; turbulence on; printCoeffs on; } // ************************************************** *********************** // /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 12 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application foamRun; solver incompressibleFluid; startFrom latestTime; startTime 0; stopAt endTime; endTime 0.3; deltaT 0.0001; writeControl adjustableRunTime; writeInterval 0.01; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep yes; maxCo 5; libs ("libmyKEpsilonMomentumTransportModels.so"); // ************************************************** *********************** // |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,713
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi,
First. We do have code tags to make clear text passages. Second. As already mentioned, you probably compile a library and not an application. Hence typing "myKEpilson" does not make sense at all. Third: show us your compilation output Fourth: I did not checked the YouTube video but the lib you want to use was built for OpenFoam V12 or any other version? Best Tobi
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Filippo
Join Date: Dec 2023
Location: Italy
Posts: 4
Rep Power: 3 ![]() |
Thanks Tobi!!
I solved the problem by changing some lines in Make/options file. I checked the previous libs and they were built for Open FOAM 12. It helped me a lot the following article: https://www.tfd.chalmers.se/~hani/ku...lenceModel.pdf Thanks all again!! |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 99
Rep Power: 15 ![]() |
Hi there,
If you still in doubt what is happening or want to know more this video "https://youtu.be/8QbW8zr8saU" might help. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Filippo
Join Date: Dec 2023
Location: Italy
Posts: 4
Rep Power: 3 ![]() |
I will watch your video as soon as possible. Thanks again for your time!!
|
|
![]() |
![]() |
![]() |
Tags |
compilation, openfoam coding, wmake problems |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of k-epsilon and k-omega Models | Jade M | Main CFD Forum | 40 | January 27, 2023 07:18 |
[OpenFOAM.org] Not found many .so files when installing OpenFOAM 6 | lengjun | OpenFOAM Installation | 2 | December 12, 2022 22:08 |
[GUIDE] Switching turbulence model to SpalartAllmaras | gabrielfelix | OpenFOAM Running, Solving & CFD | 1 | March 24, 2022 20:19 |
Overflow Error in Multiphase Modelling with Two Continuous Fluids | ashtonJ | CFX | 6 | August 11, 2014 14:32 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 04:26 |