CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

[LPT] Particle Forces and CollidingCloud

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2018, 13:58
Default [LPT] Particle Forces and CollidingCloud
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 8
cojua8 is on a distinguished road

I'm working on LPT with basicKinematicCollidingCloud and I'm trying to program a new Magnus force.

for this, I created new files based on existing force, and changing the return value to:

value.Su() =  Cl*0.75*mass*(^(p.U()-p.Uc()));
The problem is, when compiling I get the following error:

error: ‘const parcelType {aka const class Foam::KinematicParcel<Foam::particle>}’ has no member named ‘omega’
     vector velang=;
After looking in the files why I get this, I found it is because the omega member belongs to CollidingCloud and not KinematicCloud.

basicKinematicCollidingCloud has this form:

namespace Foam
    typedef CollidingCloud
    > basicKinematicCollidingCloud;
So I think (I don't have a big understanding on this) that there must be a way to use in a particle force.

Thank you for your help


I found the solution and it is quite easy:

Create a copy of makeParcelForces.H and add the force with the omega term.

Then, in file makeBasicKinematicCollidingParcelSubmodels.C change
#include "makeParcelForcesPM.H"
with the new file name.

This way, when calling wmake libso there will be no error.

The cause of the error was that all the parcel types call the same files for building themselves, and some of them don't have the properties required.

Last edited by cojua8; March 27, 2018 at 13:05. Reason: solution found
cojua8 is offline   Reply With Quote


colliding, forces, kinematic, lpt, omega

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

All times are GMT -4. The time now is 20:25.