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

Creating UDF Multiphase Mixture 3D

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2017, 10:16
Default Creating UDF Multiphase Mixture 3D
  #1
New Member
 
Harsimrat Singh Sandhu
Join Date: Jan 2016
Posts: 2
Rep Power: 0
luckysandhu1431 is on a distinguished road
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.
luckysandhu1431 is offline   Reply With Quote

Reply

Tags
fluent, multi phase, multi phase flow, udf


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 coal combustion in multiphase flow niisha24 Fluent UDF and Scheme Programming 13 September 19, 2022 04:01
Mixture model + VOF? blacksoil2012 Fluent Multiphase 2 February 8, 2014 23:59
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
UDF for the mixture model khar nab FLUENT 0 July 31, 2008 06:29
UDF for multiphase flow ROOZBEH FLUENT 3 April 7, 2004 17:54


All times are GMT -4. The time now is 16:03.