|
[Sponsors] |
March 26, 2018, 13:58 |
[LPT] Particle Forces and CollidingCloud
|
#1 |
Member
Joaquín Neira
Join Date: Oct 2017
Posts: 38
Rep Power: 8 |
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())); Code:
error: ‘const parcelType {aka const class Foam::KinematicParcel<Foam::particle>}’ has no member named ‘omega’ vector velang= p.omega(); basicKinematicCollidingCloud has this form: Code:
namespace Foam { typedef CollidingCloud < KinematicCloud < Cloud < basicKinematicCollidingParcel > > > basicKinematicCollidingCloud; } 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" 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 |
|
Tags |
colliding, forces, kinematic, lpt, omega |
Thread Tools | Search this Thread |
Display Modes | |
|
|