programing problem: autoPtr<incompressible::RASModel> ...
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); Code:
autoPtr<turbulenceModel> turbulenceModel::New Code:
return autoPtr<turbulenceModel> 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 |
http://www.cfd-online.com/Forums/ope...g-autoptr.html i hope this maybe give you some help
|
All times are GMT -4. The time now is 11:41. |