|
[Sponsors] |
programing problem: autoPtr<incompressible::RASModel> ... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 9, 2013, 12:01 |
programing problem: autoPtr<incompressible::RASModel> ...
|
#1 |
Senior Member
|
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) ); Code:
autoPtr<turbulenceModel> turbulenceModel::New ( const volVectorField& U, const surfaceScalarField& phi, transportModel& transport, const word& turbulenceModelName ) Code:
return autoPtr<turbulenceModel> ( cstrIter()(U, phi, transport, turbulenceModelName) ); 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 |
|
June 3, 2013, 10:54 |
|
#2 |
New Member
FengWei
Join Date: Jun 2013
Posts: 5
Rep Power: 12 |
http://www.cfd-online.com/Forums/ope...g-autoptr.html i hope this maybe give you some help
|
|
|
|
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 |