CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Extracting lagrangian particle data in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2021, 05:03
Default Extracting lagrangian particle data in OpenFoam
  #1
New Member
 
Danmark
Join Date: Nov 2021
Posts: 1
Rep Power: 0
Christian_Ja is on a distinguished road
Hello.

I am new to OpenFoam and are writing a solver based on icoUncoupledKinematicParcelFoam.

I would like to define a list of all the particle diameters and individual velocities. My first guess was to write something like:

while (runTime.loop())
{
Info<< "Time = " << runTime.timeName() << nl << endl;

Info<< "Evolving " << kinematicCloud.name() << endl;

mu = laminarTransport.nu()*rhoInfValue;

kinematicCloud.evolve();

labelList dia = kinematicCloud.d();

runTime.write();

runTime.printExecutionTime(Info);


}

where dia is a list of all the diameters. However, when I try to compile it says:
error: ‘Foam::basicKinematicCollidingCloud {aka class Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cl oud<Foam::CollidingParcel<Foam::KinematicParcel<Fo am:article> > > > >}’ has no member named ‘d’

From the OpenFoam API website, I can see that KinematicParcel has a member called d. I thought that the basicKinematiCollidingCloud would inherit this member.

Is this understanding wrong and how could I extract the diameter values?

If anyone has some insight into this I would be very grateful
Christian_Ja is offline   Reply With Quote

Reply

Tags
icouncoupledkinematicp, lagrangian data


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
[OpenFOAM] Paraview python script, creating data using only CLI, saving in csv/excel file Ash Kot ParaView 1 September 24, 2021 13:23
Lagrangian particle position data at runtime vishwesh OpenFOAM Programming & Development 3 July 11, 2018 10:48
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


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