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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2013, 12:01
Default programing problem: autoPtr<incompressible::RASModel> ...
  #1
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 322
Rep Power: 15
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):

Code:
    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:

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

Code:
    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.

Thanks,
Mostafa
adambarfi is offline   Reply With Quote

Old   June 3, 2013, 10:54
Default
  #2
New Member
 
FengWei
Join Date: Jun 2013
Posts: 5
Rep Power: 12
Fengwei is on a distinguished road
http://www.cfd-online.com/Forums/ope...g-autoptr.html i hope this maybe give you some help
Fengwei is offline   Reply With Quote

Reply


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
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 03:22.