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

BSL-EARSM implementation in OF-7

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Katta

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2021, 08:06
Default BSL-EARSM implementation in OF-7
  #1
New Member
 
Katta
Join Date: Sep 2020
Posts: 2
Rep Power: 0
Katta is on a distinguished road
Hello,



My aim is the implementation of the compressible BSL-EARSM model in OF-7. In the following, I have described the steps which were already taken.

What was already done:


  • make the newest version of BSL-EARSM (written for OF-4.1) working as compressible model in OF-4.1 - see attached file bslearsmComp_OF4.1
  • comparison of kOmegaSSTBase.C of OF-4.1 and OF-7 to detect syntax differences between the OF-versions and adaption of bslearsmComp.C (which is most similar to kOmegaSSTBase) → no more errors concerning variables and equations occurring - see attached file bslearsmComp_OF7
  • adaption of Make/files and Make/options towards the changed file-structure of OF-7
  • usage of the makeTurModel.C- file from this blog http://hassankassem.me/posts/newturbulencemodel/ and comparison of the syntax of the files used as basis for makeTurModel.C from OF-4.1 and OF-7:
    • OF/src/TurbulenceModels/compressible/turbulentFluidThermoModels/makeTurbulenceModel.H:
      • same syntax for OF-4.1 and OF-7
      • definition in OF-4.1 includes #include „EddyDiffusivity.H"
      • definition in OF-7 added in lines 26-35: #define makeTurbulenceModelTypes(…)
    • OF/src/TurbulenceModels/compressible/turbulentFluidThermoModels/ turbulentFluidThermoModel.H:
      • same syntax for OF-4.1 and OF-7
      • OF-7 added line 49 and line 63 including the laminar mode
      • in OF-7 is a file „…/turbulentFluidThermoModels.H“ existing which is not there in OF-4.1
    • makeTurModel.C -file in OF/user-7/…run/bslearsmComp- file:
      • change of name of include-file: „laminar.H“ in OF-4.1 changed to
        „laminarModel.H“ in OF-7
        → error: log.wmake-file in the bslearsmComp-file of OF-7

My estimation is that the problem for not correctly compiling the bslearsm model is caused by the changed syntax from OF-4.1 to OF-7. Maybe, therefore the macro "createBaseTurbulenceModel" in makeTurModel.C can't work correctly as in OF-4.1?

Any help is appreciated.

Best regards,

Katharina

p { margin-bottom: 0.25cm; line-height: 120%; page-break-before: auto }p.western { so-language: en-US }p.cjk { font-size: 10pt }a:link { so-language: zxx }
Attached Files
File Type: gz bslearsmComp_OF7.tar.gz (16.3 KB, 8 views)
File Type: gz bslearsmComp_OF4.1.tar.gz (4.8 KB, 5 views)
lpz456 likes this.
Katta is offline   Reply With Quote

Old   March 26, 2021, 05:31
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
can you post the compiler errors?
mAlletto is offline   Reply With Quote

Old   March 29, 2021, 13:13
Default
  #3
New Member
 
Katta
Join Date: Sep 2020
Posts: 2
Rep Power: 0
Katta is on a distinguished road
The problem of not correctly compiling the library of the compressible bslearsm model for OF7 is solved - many thanks to Hassan Kassem.



The working code is attached.


To compile the library on your OF7-system just copy the attached file in the run-directory and execute:
wmake libso
wmake libso



To use the turbulence model:
  • add to the system/controlDict-file:
    libs(
    "libbslearsmComp.so"
    );
  • add to the constant/turbulenceProperties-file:
    simulationType RAS;

    RAS
    {
    RASModel bslearsmComp;
    ...
    }

Attention: there may occur errors if you try to use an incompressible solving solver with the compressible bslearsm model.




Best regards,
Katharina
Attached Files
File Type: gz bslearsmComp_OF7.tar.gz (6.0 KB, 15 views)
Katta is offline   Reply With Quote

Reply

Tags
turbulence model, turbulence modeling


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
Radiation Models in General and the P1 implementation Tobi OpenFOAM Running, Solving & CFD 8 September 21, 2021 05:59
A new EARSM turbulence model implementation elbertj OpenFOAM Programming & Development 8 February 6, 2018 14:12
BSL EARSM Turbulence Model JuPa CFX 5 September 17, 2017 21:03
Implementation issues of fvSchemes / laplacianScheme, in particular gaussLaplacianSch thomek OpenFOAM Programming & Development 0 October 18, 2010 05:10
EARSM implementation Biga Main CFD Forum 0 February 1, 2005 13:03


All times are GMT -4. The time now is 19:12.