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

Adding a custom member fucntion in OF4.1

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2017, 18:54
Default Adding a custom member fucntion in OF4.1
  #1
Senior Member
 
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13
Vino is on a distinguished road
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); 
}
Vino is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Adding new member function to GidaspowErgunWenYu.C of dragModel kiang OpenFOAM Programming & Development 0 June 21, 2017 06:23
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 08:55
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 12:39
Adding a new member function to SingleStepCombustion tatu OpenFOAM Programming & Development 1 January 9, 2014 00:54
OpenFoam 14 installation problem gfcoppola OpenFOAM Installation 20 November 2, 2007 14:38


All times are GMT -4. The time now is 11:21.