CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   DPM UDF for switching law (https://www.cfd-online.com/Forums/fluent-udf/177469-dpm-udf-switching-law.html)

amilachandra September 14, 2016 09:15

DPM UDF for switching law
 
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 September 15, 2016 03:43

:( Hi, does anyone know the reason ?


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