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

PANS Turbulence Model Compilation Issue - OpenFOAM v-11

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2023, 11:30
Default PANS Turbulence Model Compilation Issue - OpenFOAM v-11
  #1
New Member
 
Ishak
Join Date: Dec 2023
Posts: 3
Rep Power: 2
Ishak.Mazing is on a distinguished road
Hello Everyone,

I'm trying to upload a PANS Turbulent model from openFOAM v7 to openFoam v11.

I changed some syntaxe like below:
" TransportModel " ==> "MomentumTransportModel"

remove : "typedef typename BasicTurbulenceModel :: transportModel transportModel;"

remove and replace those line "transportModel& transport,
word& propertiesName = turbulenceModel :: propertiesName," ==> "const viscosity& viscosity,"

change also fvOption..

And when i fixed all the errors, I get one error that I didn't know how to fix
Error:
Code:
incompressibleMomentumTransportModels.C:72:1:   required from here
/home/ishak/OpenFOAM/OpenFOAM-11/src/OpenFOAM/lnInclude/runTimeSelectionTables.H:72:38: error: invalid new-expression of abstract class type ‘Foam::RASModels::kEpsilonPANS<Foam::incompressibleMomentumTransportModel>’
   72 |             return autoPtr<baseType>(new baseType##Type parList);              \
../momentumTransportModels/lnInclude/RASModel.H:107:9: note: in expansion of macro ‘declareRunTimeSelectionTable’
  107 |         declareRunTimeSelectionTable
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../momentumTransportModels/lnInclude/kEpsilonPANS.H:118:7: note:   because the following virtual functions are pure within ‘Foam::RASModels::kEpsilonPANS<Foam::incompressibleMomentumTransportModel>’:
  118 | class kEpsilonPANS
      |       ^~~~~~~~~~~~
../momentumTransportModels/lnInclude/momentumTransportModel.H:208:37: note:     ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::momentumTransportModel::omega() const’
  208 |         virtual tmp<volScalarField> omega() const = 0;
      |                                     ^~~~~
make: *** [/home/ishak/OpenFOAM/OpenFOAM-11/wmake/rules/General/transform:25: /home/ishak/OpenFOAM/OpenFOAM-11/platforms/linux64GccDPInt32Opt/src/MomentumTransportModels/incompressible/incompressibleMomentumTransportModels.o] Error 1
make: *** Waiting for unfinished jobs....
Here's also the code of the kEpsilonPANS:

Is there anyone who can help me please or are facing the same issue?

Last edited by Ishak.Mazing; December 7, 2023 at 03:52.
Ishak.Mazing is offline   Reply With Quote

Reply

Tags
openfoam, pans, turbulence


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
New turbulence model in OpenFOAM 5 with porosity scalar shinjanghosh OpenFOAM Programming & Development 0 January 15, 2020 01:06
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
OpenFOAM: LES turbulence model names Ollie Main CFD Forum 1 April 11, 2011 14:03


All times are GMT -4. The time now is 01:44.