|
[Sponsors] |
Can I get x,y,z coordinates of a particle in lagrangian simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 30, 2012, 14:16 |
Can I get x,y,z coordinates of a particle in lagrangian simulation
|
#1 |
Member
Join Date: Jun 2011
Posts: 86
Rep Power: 15 |
Hi,
Can I get x, y, z coordinates of particles moving in a fluid. The particles are tracked using lagrangian approach. Thank you. |
|
January 30, 2012, 15:11 |
|
#2 |
Senior Member
|
Hi,
try this: report-> discrete phase-> sample select default-interior in boundaries panel and desired injections from injection pane then open the created file with a text editor which has "dpm" extension. Bests,
__________________
Amir |
|
January 30, 2012, 15:51 |
|
#3 | |
Member
Join Date: Jun 2011
Posts: 86
Rep Power: 15 |
Quote:
Any thoughts? |
||
January 31, 2012, 04:28 |
|
#4 | |
Senior Member
|
Quote:
Bests,
__________________
Amir |
||
January 31, 2012, 04:47 |
|
#5 |
Member
Laurent B
Join Date: Jun 2009
Location: Lille, FRANCE
Posts: 70
Rep Power: 17 |
Hi,
This is an udf example which save in a file particle data (id, position, velocity and velocity derivatives). It may be useful : # include "udf.h" FILE *fp; DEFINE_ON_DEMAND(open_file) { fp=fopen("data.txt","a"); } DEFINE_DPM_SCALAR_UPDATE(trajectory,cell,thread,in itialize,p) { // COMPILED MODE ONLY fprintf(fp,"%d %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g %10.6g \n",p->part_id,p->state.pos[0],p->state.pos[1],p->state.pos[2],p->state.V[0],p->state.V[1],p->state.V[2],p->state.time,C_DUDX(cell, thread), C_DUDY(cell, thread), C_DUDZ(cell, thread), C_DVDX(cell, thread), C_DVDY(cell, thread), C_DVDZ(cell, thread), C_DWDX(cell, thread), C_DWDY(cell, thread), C_DWDZ(cell, thread)); } DEFINE_ON_DEMAND(close_file) { fclose(fp); } |
|
April 5, 2012, 19:00 |
Modifying Cd by particle spacing
|
#6 | |
New Member
John
Join Date: Jan 2012
Posts: 3
Rep Power: 14 |
@mali28
Quote:
Hi mali28, I am currently trying to do the same thing. What exactly are/were you simulating? Since it looks like you solved your problem, would you be kind enough to tell me just how you did it? Thanks! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lagrangian particle tracking | skabilan | OpenFOAM Running, Solving & CFD | 7 | July 15, 2014 13:40 |
Euler-Euler vs. Lagrangian particle tracking for biomass pyrolysis in a rotary kiln | audrey | Main CFD Forum | 0 | February 22, 2011 13:09 |
Pressure gradient in particle simulation | Mikka | Main CFD Forum | 0 | August 5, 2007 22:55 |
Pressure gradient in particle simulation | Mikka | Main CFD Forum | 0 | June 30, 2007 23:16 |
air particle simulation software | kong | Main CFD Forum | 0 | February 11, 2006 23:33 |