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

Error while Hooking a new model diffusivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2017, 14:01
Default Error while Hooking a new model diffusivity
  #1
New Member
 
Mohammed
Join Date: Jan 2013
Posts: 7
Rep Power: 13
Madreed is on a distinguished road
I am defining a new UDF (k-epsilon) model to ansys fluent , every time I hook the diffusivity as user defined in the material panel I can't initialize the case and it gives me MPI finalize with error.

Does any one can help me with this problem ?

The diffusion equation :
DEFINE_DIFFUSIVITY(ke_diffusivity, c, t, eqn)
{
real diff;
real mu = C_MU_L(c,t);
real mu_t = C_R(c,t)*C_MU*f_mu(c,t)*SQR(C_UDSI(c,t,TKE))/C_UDSI(c,t,TDR);
switch (eqn)
{
case TKE:
diff = mu_t/SIG_TKE + mu;
break;
case TDR:
diff = mu_t/SIG_TDR + mu;
break;
default:
diff = mu_t + mu;
}
return diff;

Last edited by Madreed; May 19, 2017 at 19:11.
Madreed 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
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 19:42
problem with solving lagrange reaction cloud Polli OpenFOAM Running, Solving & CFD 0 April 30, 2014 07:53
manualInjection model in sprayFoam Mentalo OpenFOAM Running, Solving & CFD 1 April 2, 2014 09:29
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Problems bout CFD model of biomass gasification, Downdraft gasifier wanglong FLUENT 2 November 25, 2009 23:27


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