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

DPM UDF for switching law

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2016, 09:15
Default DPM UDF for switching law
  #1
New Member
 
Amila C Kahawalage
Join Date: Jun 2015
Posts: 5
Rep Power: 10
amilachandra is on a distinguished road
Hi, All

I want to write Fluent UDF for switching customs law in DPM model as shown bellow

#include "udf.h"
#include "dpm.h"
DEFINE_DPM_SWITCH (Cal_SwitchLaw,p,coupled)
{
Material *m=P_MATERIAL(p);
real fv=DPM_VOLATILE_FRACTION(p);

if (P_T(p)<DPM_VAPOR_TEMP(p,m))
P_CURRENT_LAW(p)=DPM_LAW_INITIAL_INERT_HEATING;
else
{
if (P_MASS(p)>(P_INIT_MASS(p)*(1-fv)))
P_CURRENT_LAW(p)=DPM_LAW_USER_1;
else
P_CURRENT_LAW(p)=DPM_LAW_FINAL_INERT_HEATING;
}

}

I am using ANSYS Fluent 16.2 version (64 bit).
I use following software with Fluent to run and compiled the udf
MS visual studio express edition 2010 with SP1 and MS windows SDK for windows 7.1 and .net framework 4
I compiled the UDF without errors. I can not run the programme. It shows following error message


Updating solution at time level N... done.
Injecting 48 particle parcels with mass 0.0004 at t = 0

Advancing DPM injections ...

Error: received a fatal signal (Segmentation fault).

Error: received a fatal signal (Segmentation fault).
Error Object: #f


Can any one help me ………..?
amilachandra is offline   Reply With Quote

Old   September 15, 2016, 03:43
Default
  #2
New Member
 
Amila C Kahawalage
Join Date: Jun 2015
Posts: 5
Rep Power: 10
amilachandra is on a distinguished road
Hi, does anyone know the reason ?
amilachandra is offline   Reply With Quote

Reply


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
UDF for DPM Law Switch Leepox Fluent UDF and Scheme Programming 0 August 26, 2013 05:36
Convert VOF droplet to DPM particle via UDF TedBrogan Fluent UDF and Scheme Programming 1 May 1, 2012 11:01
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari Fluent UDF and Scheme Programming 0 August 19, 2010 03:09
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 09:02
UDF DPM Unsteady Lourival FLUENT 5 February 24, 2006 07:36


All times are GMT -4. The time now is 22:13.