|
[Sponsors] |
How to read data in DEFINE_SOURCE( ) from DPM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 8, 2006, 10:40 |
How to read data in DEFINE_SOURCE( ) from DPM?
|
#1 |
Guest
Posts: n/a
|
I need to calculate particle concentration in DEFINE_SOURCE( ),but the DPM data all have p in their variables like P_MASS(p) which the DEFINE_SOURCE( )cannot recognize. How to solve this problem? Thanks a lot!
|
|
February 8, 2006, 11:25 |
Re: How to read data in DEFINE_SOURCE( ) from DPM?
|
#2 |
Guest
Posts: n/a
|
particle concentration in kg/m3Cell = C_DPMS_CONCENTRATION(c,t)
RoM |
|
February 8, 2006, 11:49 |
Re: How to read data in DEFINE_SOURCE( ) from DPM?
|
#3 |
Guest
Posts: n/a
|
Thank you very much, Rom.
I use a UDF to solve electric field with the source defined by UDF. When I run the UDF, the following error occures: iter time/iter chip-exec: charge_density: wrong return type: void udf function expected Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () The UDF is shown below: #include "udf.h" #define QM -5e-6 #define N 2500 DEFINE_SOURCE(charge_density,c,t,dS,eqn) { real density; density=QM*C_DPMS_CONCENTRATION(c,t)/C_VOLUME(c,t); printf("density", density); return density; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam | jlpelerin | OpenFOAM Meshing & Mesh Conversion | 4 | April 25, 2011 17:56 |
export data from DPM model | Jiri Novak | FLUENT | 0 | March 6, 2007 11:18 |
Saving particle (DPM) data to file? | Philip | FLUENT | 2 | June 12, 2006 02:41 |
Tecplot can't read data file from Fluent. | stephen | FLUENT | 8 | November 21, 2001 21:27 |
Read the Mesh data from Gambit | David | Main CFD Forum | 7 | September 5, 2000 20:56 |