CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

programing problem: autoPtr<incompressible::RASModel> ...

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

LinkBack Thread Tools Display Modes
Old   March 9, 2013, 13:01
Default programing problem: autoPtr<incompressible::RASModel> ...
Senior Member
adambarfi's Avatar
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 319
Rep Power: 8
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
Hi everybody,

I want to know what is the role of autoPtr<..::..> and what should I place in <..::..> and how can I find out the arrangement of it?

here is a example (buoyantBoussinesqSimpleFoam solver):

    singlePhaseTransportModel laminarTransport(U, phi);
    autoPtr<incompressible::RASModel> turbulence
        incompressible::RASModel::New(U, phi, laminarTransport)
I find in OpenFOAM/OpenFOAM-2.1.0/src/turbulenceModels/incompressible/turbulenceModel and at turbulenceModel.C the following:

autoPtr<turbulenceModel> turbulenceModel::New
    const volVectorField& U,
    const surfaceScalarField& phi,
    transportModel& transport,
    const word& turbulenceModelName

    return autoPtr<turbulenceModel>
        cstrIter()(U, phi, transport, turbulenceModelName)
but how can I understand what should I write in < >???????

I'm using viscoelasticFluidFoam and I'm trying to read some parameter from OpenFOAM/OpenFOAM-2.1.0/src/transportModels/viscoelastic/viscoelasticLaws/Giesekus, the Giesekus.C file.

when I see the buoyantBoussinesqSimpleFoam solver, I thought that the key is the autoPtr but How???

please help me!
any hints or tips appreciated.

adambarfi is offline   Reply With Quote

Old   June 3, 2013, 10:54
New Member
Join Date: Jun 2013
Posts: 5
Rep Power: 6
Fengwei is on a distinguished road i hope this maybe give you some help
Fengwei is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52

All times are GMT -4. The time now is 00:50.