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

How to read data in DEFINE_SOURCE( ) from DPM?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2006, 09:40
Default How to read data in DEFINE_SOURCE( ) from DPM?
  #1
Josh
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!
  Reply With Quote

Old   February 8, 2006, 10:25
Default Re: How to read data in DEFINE_SOURCE( ) from DPM?
  #2
RoM
Guest
 
Posts: n/a
particle concentration in kg/m3Cell = C_DPMS_CONCENTRATION(c,t)

RoM
  Reply With Quote

Old   February 8, 2006, 10:49
Default Re: How to read data in DEFINE_SOURCE( ) from DPM?
  #3
Josh
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; }
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


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 16:56
export data from DPM model Jiri Novak FLUENT 0 March 6, 2007 10:18
Saving particle (DPM) data to file? Philip FLUENT 2 June 12, 2006 01:41
Tecplot can't read data file from Fluent. stephen FLUENT 8 November 21, 2001 20:27
Read the Mesh data from Gambit David Main CFD Forum 7 September 5, 2000 19:56


All times are GMT -4. The time now is 09:45.