|
[Sponsors] |
February 22, 2017, 11:16 |
Creating UDF Multiphase Mixture 3D
|
#1 |
New Member
Harsimrat Singh Sandhu
Join Date: Jan 2016
Posts: 2
Rep Power: 0 |
Hello
I have a 3D periodic geometry of a concentric annulus with liquid-solid two phase flow. I want to introduce the Krieger & Dougherty Model as a UDF for granular viscosity. I wrote the following code but it gives me an "received a fatal signal (Segmentation Fault)" error when I try to initialise the solution (Hybrid initialisation). #include "udf.h" #include "sg_mphase.h" DEFINE_PROPERTY(gran_vis_kd,c,t) { Thread *part = THREAD_SUB_THREAD(t,3); real mu_mix; real B = 2.5; real phi_m = 0.63; real mu_liq = 10.0; real phi = C_VOF(c,part); mu_mix = mu_liq*pow(1-(phi/phi_m),-B*phi_m); return mu_mix; } I have never used C or Fluent UDFs before so I am not sure what I am doing wrong. I am really thankful to you all for the assistance. |
|
Tags |
fluent, multi phase, multi phase flow, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for coal combustion in multiphase flow | niisha24 | Fluent UDF and Scheme Programming | 13 | September 19, 2022 05:01 |
Mixture model + VOF? | blacksoil2012 | Fluent Multiphase | 2 | February 9, 2014 00:59 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
UDF for the mixture model | khar nab | FLUENT | 0 | July 31, 2008 07:29 |
UDF for multiphase flow | ROOZBEH | FLUENT | 3 | April 7, 2004 18:54 |