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

UDF charge density in mhd model dpm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2017, 21:42
Default UDF charge density in mhd model dpm
  #1
New Member
 
Jinho
Join Date: Apr 2017
Posts: 1
Rep Power: 0
G-NO is on a distinguished road
I want to use the charge density of the inert particles with udf when I turn on the mhd model and use dpm.
However, when using discrete phase sample on reports, it caused an error even writing code that only takes very simple constants.

Error at Node 2: get_udf_function: function charge_density :: abc has wrong type: 2! = 43

I wonder what kind of type requires and what the wrong type means.
If anyone has applied udf to charge density, please help.

P.S. code is very simple

#include "udf.h"
DEFINE_DPM_PROPERTY(charge_density,c,t,p,i)
{
return 5;
}

Thanks for read my post.

Last edited by G-NO; April 26, 2017 at 02:51.
G-NO is offline   Reply With Quote

Reply

Tags
charge density, dpm in fluent, mhd, udf code


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
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 1 January 4, 2017 08:11
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
UDF fails to model 9.81m/s^2 gravity jpo Fluent UDF and Scheme Programming 2 January 24, 2012 19:15
DPM model w/ Wave model - errors in documentation HS FLUENT 0 April 12, 2006 05:37
DPM; particle seeded / deleted by UDF Laika FLUENT 6 January 23, 2006 00:40


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