CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   using the object registry to access a particle cloud (http://www.cfd-online.com/Forums/openfoam/89238-using-object-registry-access-particle-cloud.html)

gregor June 8, 2011 03:45

using the object registry to access a particle cloud
 
Hi everybody,

I am trying to access a thermoCoalCloud through the object registry. But the following line of code

Code:

const thermoCoalCloud& coalCloud = obr_.lookupObject<thermoCoalCloud>("coalCloud1");
gives me this ambiguous error

Quote:

/home/gregor/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C:120: error: reference to ‘Foam::ReactingMultiphaseCloud<Foam::CoalParcel<Fo am::sutherlandTransport<Foam::specieThermo<Foam::j anafThermo<Foam::perfectGas> > > > >::typeName’ is ambiguous
/home/gregor/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/intermediate/lnInclude/reactingMultiphaseCloud.H:63: error: candidates are: const Foam::word Foam::reactingMultiphaseCloud::typeName
/home/gregor/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/intermediate/lnInclude/reactingCloud.H:63: error: const Foam::word Foam::reactingCloud::typeName
/home/gregor/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/intermediate/lnInclude/thermoCloud.H:63: error: const Foam::word Foam::thermoCloud::typeName
/home/gregor/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/intermediate/lnInclude/kinematicCloud.H:63: error: const Foam::word Foam::kinematicCloud::typeName
/home/gregor/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/basic/lnInclude/Cloud.H:109: error: const Foam::word Foam::Cloud<Foam::CoalParcel<Foam::sutherlandTrans port<Foam::specieThermo<Foam::janafThermo<Foam::pe rfectGas> > > > >::typeName
What is going wrong and how can i fix it ? Help would be much appreciated :)

gregor

gregor June 8, 2011 05:58

ok i am using now

Code:

    const Cloud<CoalParcel<gasThermoPhysics> >& coalCloud = obr_.lookupObject<Cloud<CoalParcel<gasThermoPhysics> > >("coalCloud1");
maybe there is a better and more elegant way to do it but for now it is working


All times are GMT -4. The time now is 09:49.