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

Adding particles/parcels to kinematicCloud

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By schf

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 25, 2017, 09:39
Default Adding particles/parcels to kinematicCloud
  #1
New Member
 
Join Date: Aug 2017
Posts: 10
Rep Power: 8
schf is on a distinguished road
Hello everybody,
I hope you can help me understanding the kinematicCloud. I created one like this:

Code:
const word kinematicCloudName
(
    args.optionLookupOrDefault<word>("cloudName", "mykinematicCloud")
);

Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
basicKinematicCloud mykinematicCloud
(
    kinematicCloudName,
    rho,
    U,
    mu,
    g
);
And now I want to add some particles by hand with a given velocity and diameter in a own function KinematicCloud<CloudType>::injectLPT(...).
As far as I understand, the kinematicCloud uses just parcels. So if i want to add single particles, I have to use one parcel per particle.

I implemented something similar for the solidCloud for adding particles to the cloud:
Code:
    solidParticle* ptr1 = new solidParticle(mesh_, coordinates_, celli_, tetFacei_, tetPti_,tempDiam, tempU);
    
    Cloud<solidParticle>::addParticle(ptr1);
But for the KinematicParcel I don't get it working

For this:
Code:
    KinematicParcel* ptr1 = new KinematicParcel(mesh_, coordinates_, celli_, tetFacei_, tetPti_);//,tempDiam, tempU);
I get this error:
Code:
In file included from xxx/src/lagrangian/intermediate/lnInclude/KinematicCloud.H:645:0,
                 from xxx/src/lagrangian/intermediate/lnInclude/basicKinematicCloud.H:36,
                 from myInterFoam.C:54:

xxx/src/lagrangian/intermediate/lnInclude/KinematicCloud.C: In Elementfunktion »void Foam::KinematicCloud<CloudType>::injectLPT(const vector&, const scalar&, const vector&)«:
xxx/src/lagrangian/intermediate/lnInclude/KinematicCloud.C:807:20: Fehler: missing template arguments before »*« token
     KinematicParcel* ptr1 = new KinematicParcel(mesh_, coordinates_, celli_, tetFacei_, tetPti_);//,tempDiam, tempU);
But which template arguments are missing?
schf is offline   Reply With Quote

 


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
How I can introduce my power heat (W) in chtMultiRegionFoam? aminem OpenFOAM Pre-Processing 32 August 29, 2019 02:23
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 11:05
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 07:55
chtMultiRegionSimpleFoam 3D problem Lucie OpenFOAM Pre-Processing 2 June 21, 2016 05:23
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 08:43


All times are GMT -4. The time now is 11:21.