|
[Sponsors] |
September 14, 2016, 10:15 |
DPM UDF for switching law
|
#1 |
New Member
Amila C Kahawalage
Join Date: Jun 2015
Posts: 8
Rep Power: 11 |
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 ………..? |
|
September 15, 2016, 04:43 |
|
#2 |
New Member
Amila C Kahawalage
Join Date: Jun 2015
Posts: 8
Rep Power: 11 |
Hi, does anyone know the reason ?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for DPM Law Switch | Leepox | Fluent UDF and Scheme Programming | 0 | August 26, 2013 06:36 |
Convert VOF droplet to DPM particle via UDF | TedBrogan | Fluent UDF and Scheme Programming | 1 | May 1, 2012 12:01 |
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT | subhankar_bhandari | Fluent UDF and Scheme Programming | 0 | August 19, 2010 04:09 |
DPM - UDF for fluctuating bubble size | Jaroslav Kotara | FLUENT | 1 | April 19, 2006 10:02 |
UDF DPM Unsteady | Lourival | FLUENT | 5 | February 24, 2006 08:36 |