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

Compiling and using new turbulence model in OF 5

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2023, 08:00
Default Compiling and using new turbulence model in OF 5
  #1
New Member
 
Hamed Hoorijani
Join Date: May 2019
Location: Gent, Belgium
Posts: 23
Rep Power: 7
Hamedhoorijani is on a distinguished road
Hi,

I want to use a set of turbulence models that were used by a previous student in our lab. I placed the models in the $FOAM_USER_PROJECT_DIR directory and managed to compile them without any errors or warnings.

I attempted to test these turbulence models using the pimpleFOAM solver with the pitzDaily tutorial case. However, I encountered the error below, and I'm having difficulty understanding its reason. I also tried using these models with compressible solvers, rhoPimpleFOAM (I made the necessary changes during the compilation step), but I obtained the same results.


pimpleFOAM:

Quote:
*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.0-20180606 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.0-20180606
Exec : pimpleFoam
Date : Nov 17 2023
Time : 11:21:24
Host : "..."
PID : 787780
I/O : uncollated
Case : ...
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model WrayAgarwal2017
pimpleFoam: symbol lookup error: /user/gent/462/vsc46236/OpenFOAM/vsc46236-5.0-20180606/platforms/linux64GccDPInt32Opt/lib/libWAincompressibleturbulencemodels.so: undefined symbol: _ZN4Foam9RASModels15WrayAgarwal2017INS_29Incompres sibleTurbulenceModelINS_14transportModelEEEEC1ERKN S_17geometricOneFieldES8_RKNS_14GeometricFieldINS_ 6VectorIdEENS_12fvPatchFieldENS_7volMeshEEERKNS9_I dNS_13fvsPatchFieldENS_11surfaceMeshEEESL_RKS3_RKN S_4wordESQ_

rhoPimpleFOAM:

Quote:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5.0-20180606 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 5.0-20180606
Exec : rhoPimpleFoam
Date : Nov 17 2023
Time : 11:57:40
Host : "..."
PID : 802042
I/O : uncollated
Case : /.../pitzDaily
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: no residual control data found. Calculations will employ 3 corrector loops

Reading thermophysical properties

Selecting thermodynamics package
{
type hePsiThermo;
mixture pureMixture;
transport const;
thermo eConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}

Reading field U

Reading/calculating face flux field phi

pressureControl
pMax 200000
pMin 50000

Creating turbulence model

Selecting turbulence model type RAS
Selecting RAS turbulence model WrayAgarwal2017

rhoPimpleFoam: symbol lookup error: /user/gent/462/vsc46236/OpenFOAM/vsc46236-5.0-20180606/platforms/linux64GccDPInt32Opt/lib/libWAcompressibleturbulencemodels.so: undefined symbol: _ZN4Foam9RASModels15WrayAgarwal2017INS_15EddyDiffu sivityINS_18ThermalDiffusivityINS_27CompressibleTu rbulenceModelINS_11fluidThermoEEEEEEEEC1ERKNS_17ge ometricOneFieldERKNS_14GeometricFieldIdNS_12fvPatc hFieldENS_7volMeshEEERKNSD_INS_6VectorIdEESE_SF_EE RKNSD_IdNS_13fvsPatchFieldENS_11surfaceMeshEEESS_R KS5_RKNS_4wordESX_
]

I would greatly appreciate any hints or guidance.
Best regards
Hamedhoorijani is offline   Reply With Quote

Old   November 17, 2023, 09:41
Default
  #2
New Member
 
nicola andreini
Join Date: Jan 2020
Location: Florence
Posts: 5
Rep Power: 6
nicola_andreini is on a distinguished road
I had the same error as you, in my case there was a variable in the code that had not been changed. Specifically in my code (SchnerrSauer cavitation model) there was an rRB(limitedAlpha) that I had forgotten to remove. Although the compilation returned no errors, once I launched the calculation I was getting the same error as you.

I hope it helps you.
nicola_andreini is offline   Reply With Quote

Old   November 20, 2023, 17:34
Default
  #3
New Member
 
Hamed Hoorijani
Join Date: May 2019
Location: Gent, Belgium
Posts: 23
Rep Power: 7
Hamedhoorijani is on a distinguished road
Quote:
Originally Posted by nicola_andreini View Post
I had the same error as you, in my case there was a variable in the code that had not been changed. Specifically in my code (SchnerrSauer cavitation model) there was an rRB(limitedAlpha) that I had forgotten to remove. Although the compilation returned no errors, once I launched the calculation I was getting the same error as you.

I hope it helps you.
Thank you, dear Nicola, for your comment. I will check the code to see if there are any variables that haven't changed. Although I haven't checked the code yet, I will.
Hamedhoorijani is offline   Reply With Quote

Reply

Tags
c++ code, openfoam 5.x, turbule model


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



All times are GMT -4. The time now is 16:15.