CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   using the object registry to access a particle cloud (

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


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


/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 June 8, 2011 05:58

ok i am using now


    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 21:42.