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

[LPT] Particle Forces and CollidingCloud

Register Blogs Community New Posts Updated Threads Search

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

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:

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

Code:
error: ‘const parcelType {aka const class Foam::KinematicParcel<Foam::particle>}’ has no member named ‘omega’
     vector velang= p.omega();
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:

Code:
namespace Foam
{
    typedef CollidingCloud
    <
        KinematicCloud
        <
            Cloud
            <
                basicKinematicCollidingParcel
            >
        >
    > basicKinematicCollidingCloud;
}
So I think (I don't have a big understanding on this) that there must be a way to use p.omega() in a particle force.

Thank you for your help

EDIT:

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
Code:
#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 14:05. Reason: solution found
cojua8 is offline   Reply With Quote

Reply

Tags
colliding, forces, kinematic, lpt, omega


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 15:48.