|
[Sponsors] |
April 13, 2010, 04:35 |
Create particle clouds at runtime
|
#1 |
Member
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 16 |
The standard way of defining a kinematic cloud is by creating a createClouds.H file with following constructor:
Code:
Info<< "Constructing kinematicCloud1" << endl; basicKinematicCloud kinematicCloud1 ( "kinematicCloud1", rho, U, mu, g ); Code:
kinematicCloudNames kinematicCloud1 kinematicCloud2; Code:
Info<< "Reading kinematicCloudList\n" << endl; IOdictionary kinematicCloudList ( IOobject ( "kinematicCloudList", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ) ); List<word> kinematicCloudNames(kinematicCloudList.lookup("kinematicCloudNames")); Code:
Map<kinematicCloud> kinematicClouds(kinematicCloudNames.size()); forAll(kinematicCloudNames, cloudI) { Info<< "Constructing " << kinematicCloudNames[cloudI] << endl; kinematicClouds.set(kinematicCloudNames[cloudI], new basicKinematicCloud ( kinematicCloudNames[cloudI], rho, U, mu, g ),true); } Code:
createClouds.H: In function ‘int main(int, char**)’: createClouds.H:29: fout: no matching function for call to ‘Foam::Map<Foam::kinematicCloud>::set(Foam::word&, Foam::basicKinematicCloud*, bool)’ /home/cedric/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTable.C:256: note: kandidaten zijn: bool Foam::HashTable<T, Key, Hash>::set(const Key&, const T&, bool) [with T = Foam::kinematicCloud, Key = int, Hash = Foam::Hash<int>] /home/cedric/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTableI.H:88: note: bool Foam::HashTable<T, Key, Hash>::set(const Key&, const T&) [with T = Foam::kinematicCloud, Key = int, Hash = Foam::Hash<int>] Is there a better system of grouping clouds? Or is there a better system to create clouds at runtime? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Meshing a Sphere | Ajay | FLUENT | 10 | September 3, 2016 14:18 |
Actuator disk model | audrich | FLUENT | 0 | September 21, 2009 07:06 |
Where's the singularity/mesh flaw? | audrich | FLUENT | 3 | August 4, 2009 01:07 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 01:29 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |