|
[Sponsors] |
August 13, 2017, 17:54 |
Adding a custom member fucntion in OF4.1
|
#1 |
Senior Member
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13 |
Dear FOAMers,
I am trying to add a custom divDevRhoReff() in OpenFOAM4.1. I have added the following lines in "src/TurbulenceModels/incompressible/IncompressibleTurbulenceModel/IncompressibleTurbulenceModel.C". Also, I haved added its definition in "linearViscousStress.C" file. When I call this function(turbulence->divDevRhoReffCustom (U)) from simpleFoam, it gives the following error, "class Foam::IncompressibleTurbulenceModel<Foam::transpor tModel>’ has no member named ‘divDevRhoReffCustom" . Could someone please suggest me something on this. Thank you very much. Code:
template<class TransportModel> Foam::tmp<Foam::fvVectorMatrix> Foam::IncompressibleTurbulenceModel<TransportModel>::divDevRhoReffCustom ( volVectorField& U ) const { return divDevRhoReffCustom(U); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding new member function to GidaspowErgunWenYu.C of dragModel | kiang | OpenFOAM Programming & Development | 0 | June 21, 2017 05:23 |
conjugateHeatFoam + interFoam | farhagim | OpenFOAM Programming & Development | 15 | July 19, 2016 07:55 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 11:39 |
Adding a new member function to SingleStepCombustion | tatu | OpenFOAM Programming & Development | 1 | January 8, 2014 23:54 |
OpenFoam 14 installation problem | gfcoppola | OpenFOAM Installation | 20 | November 2, 2007 13:38 |