|
[Sponsors] |
April 27, 2011, 08:17 |
Force dependent on particle position
|
#1 |
New Member
Join Date: Feb 2011
Posts: 1
Rep Power: 0 |
Hi,
I am having some trouble calculating a force that is dependent on particle position. In my case I must access the particle position from within particleForces. My C++ is not brilliant, I am more of a Fortran, C, Ruby, ... guy. Anyway I included Particle.H and vector.H in particleForces.C In the calculation function added: const vector& position_, const ParticleType& p, But I dont know how to get the current particle position... while compiling I get: particleForces/particleForces.C:220: error: ‘ParticleType’ was not declared in this scope particleForces/particleForces.C:220: error: ‘p’ was not declared in this scope Any suggestions? How to obtain the current particle position in particleForces? Thanks |
|
August 23, 2011, 20:44 |
|
#2 |
New Member
Join Date: Aug 2011
Posts: 1
Rep Power: 0 |
Hi, I'm trying to do a similar thing at the moment and seem to be stuck at the same point. I'm wondering if you ever got an answer to this question or found a way to do it?
Thanks |
|
Tags |
particle forces, particle position |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
print position of Lagrangian particle? | sven82 | OpenFOAM Running, Solving & CFD | 4 | June 16, 2016 09:58 |
how to perform temperature gradient on a particle (Thermophoretic Force) | wwt650420 | FLUENT | 3 | March 23, 2011 03:10 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |
how to know position of particle in PTK | areriko | CFX | 0 | November 19, 2007 22:19 |
Help: UDF of "particle body force" !!! | zhaoh | FLUENT | 3 | January 16, 2007 21:17 |