CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   BSL-EARSM implementation in OF-7 (https://www.cfd-online.com/Forums/openfoam-programming-development/234926-bsl-earsm-implementation-7-a.html)

Katta March 24, 2021 08:06

BSL-EARSM implementation in OF-7
 
2 Attachment(s)
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 }

mAlletto March 26, 2021 05:31

can you post the compiler errors?

Katta March 29, 2021 13:13

1 Attachment(s)
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


All times are GMT -4. The time now is 02:48.