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

using the object registry to access a particle cloud

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2011, 03:45
Default using the object registry to access a particle cloud
  #1
Member
 
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 16
gregor is on a distinguished road
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:erfectGas> > > > >::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:e rfectGas> > > > >::typeName
What is going wrong and how can i fix it ? Help would be much appreciated

gregor
gregor is offline   Reply With Quote

Old   June 8, 2011, 05:58
Default
  #2
Member
 
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 16
gregor is on a distinguished road
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
gregor 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
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 14:56
Get direct access to a particle gruber OpenFOAM 3 November 3, 2009 05:26
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36


All times are GMT -4. The time now is 06:50.