|
[Sponsors] |
March 6, 2007, 14:26 |
UDF for Pope Correction to k-e model
|
#1 |
Guest
Posts: n/a
|
Hi,
Does anyone have a DEFINE_SOURCE UDF that implements this correction? I have given it a go (see below) but the solution either diverges or becomes essentially laminar (no mixing at all...). Can anyone see any errors? DEFINE_SOURCE(pope_correction,c,t,dS,eqn) { double C_eps_3; double chi, radius, source; double x[ND_ND]; C_eps_3 = 0.79; C_CENTROID(x,c,t); radius = x[1]; chi = (C_DUDY(c,t) - C_DVDX(c,t)) * (C_DUDY(c,t) - C_DVDX(c,t)); chi = (C_U(c,t) / radius) * chi; chi = C_K(c,t) * C_K(c,t) / C_D(c,t) * chi; chi = 0.25 * C_eps_3 * C_R(c,t) * chi; source = chi; dS[eqn] = 0.0; return source; } |
|
February 13, 2024, 10:45 |
|
#2 |
New Member
Hafidz Azhar J
Join Date: Sep 2023
Location: Earth
Posts: 1
Rep Power: 0 |
Been looking for Pope correction using UDF aswell
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for defining granular viscosity in mixture model | priyanka.asp | Fluent UDF and Scheme Programming | 7 | May 19, 2019 18:16 |
How to access only one phase in multiphase model by UDF | wersoe | Fluent UDF and Scheme Programming | 1 | January 4, 2017 07:11 |
udf: volume fraction gradient in eulerian model | jwwang | FLUENT | 22 | April 15, 2015 06:27 |
The problem of UDF in Non premixed combustion model | zhangyuan | Main CFD Forum | 0 | May 25, 2009 09:41 |
UDF error : DEFINE_PROPERTY with PDF Model | Abhilash Chandy | FLUENT | 0 | June 2, 2006 17:07 |