|
[Sponsors] |
July 3, 2014, 05:26 |
Accessing C_mu within UDF
|
#1 |
New Member
Jack Chilvers
Join Date: Dec 2013
Location: St Neots, Cambridgeshire
Posts: 12
Rep Power: 13 |
||
July 3, 2014, 07:48 |
|
#2 |
New Member
Manuel
Join Date: Jan 2014
Posts: 18
Rep Power: 12 |
Well, maybe you can compute from its definition. But I don't know if you can access the viscous turbulence if you're not using Spalart-Allmaras. Maybe this works: (Cmu=turb.visc / density / K^2 * epsilon )
Code:
cmu=C_NUT(c,t)/C_R(c,t)/C_K(c,t)/C_K(c,t)*C_D(c,t); |
|
July 3, 2014, 11:14 |
|
#3 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Don't you mean C_MU_L(c,t)?
|
|
July 3, 2014, 12:31 |
|
#4 |
New Member
Manuel
Join Date: Jan 2014
Posts: 18
Rep Power: 12 |
I have had a better look to the manual and saw that the turbulence eddy viscosity is given by C_MU_T(c,t).
So I correct what I said in previous post, you may compute c_mu as: cmu=C_MU_T(c,t)/C_R(c,t)/C_K(c,t)/C_K(c,t)*C_D(c,t); But I wonder... don't you set this parameter as a constant in the turbulence model panel? Why do you need to find it for a specific cell? |
|
July 19, 2017, 13:12 |
CMU access macro
|
#5 |
Member
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9 |
CMU is defined as constant in GUI panel so you can directly put its value in the UDF.
I want to modify CMU value as a local variable. I could not find any macro to do this so I used DEFINE_TURBULENT_VISCOSITY() and put my CMU definition there. But the problem seems that this does not suppress the CMU value that is already present in the viscous dialog box of GUI panel. Can someone help me? Thanks |
|
Tags |
fluent, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem accessing material properties in UDF for Multiphase Multispecies | pmtgt | Fluent Multiphase | 3 | January 17, 2021 08:11 |
accessing solver data with UDF macros | Dushan | FLUENT | 1 | April 22, 2017 22:05 |
Accessing profile data from a UDF | ral007 | Fluent UDF and Scheme Programming | 1 | October 14, 2015 10:21 |
Accessing phase volm fraction in UDF for a source term in mixture model | aditya.pandare | Fluent UDF and Scheme Programming | 9 | March 21, 2013 00:38 |
UDF - accessing face variable problem | argeus | FLUENT | 2 | February 9, 2011 05:08 |