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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2017, 20: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 01:51.
G-NO is offline   Reply With Quote

Reply

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

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


All times are GMT -4. The time now is 00:20.