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

Possible to Access Cmu for the k-e realizable model in UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2021, 01:18
Default Possible to Access Cmu for the k-e realizable model in UDF
  #1
New Member
 
Brad
Join Date: Feb 2021
Posts: 2
Rep Power: 0
Brad_rawl is on a distinguished road
Hi all;

I was wondering if it was possible to access the varaible Cmu for the k-e realizable model in a UDF.

I have read that M_keCmu should be accessable to all UDF, but when compiling I get this error:

error C2065: 'M_keCmu': undeclared identifier

Is there a header file that I am missing?

I intend to modify the turbulent viscosity, need access to the Cmu varaible.

I look forward to your responses.

Regards
Brad_rawl is offline   Reply With Quote

Old   March 17, 2021, 23:43
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,645
Rep Power: 23
AlexanderZ will become famous soon enough
don't have experience with modifying turbulence model variables, but
M_keCmu is defined in turb_ke.h file infolder:
\ANSYS Inc\vxxx\fluent\fluentxx.x.x\src\turbulence

as far as I know, you don;t need anything else but default
#include "udf.h"
in the very begging of code, not sure, why it doesn't work
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   March 18, 2021, 00:52
Default
  #3
New Member
 
Brad
Join Date: Feb 2021
Posts: 2
Rep Power: 0
Brad_rawl is on a distinguished road
Thank you
AlexanderZ

I figured out the issue, for fluent v19.5 (and I assume for later versions as well)
M_keCmu is replaced with GVAR_TURB(coeff, ke_Cmu).
Brad_rawl is offline   Reply With Quote

Reply

Tags
cmu, k-e realizable, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Cmu change selçuk ataş FLUENT 2 July 19, 2017 12:24
UDF for improved coal devolatilization model in fluent(devolatilization ) magic0801 Fluent UDF and Scheme Programming 2 April 8, 2017 01:28
How to use the degassing UDF for VOF model in Fluent? qingyang Fluent UDF and Scheme Programming 0 July 11, 2016 12:42
UDF for linear PTT model implementation dpitz Fluent UDF and Scheme Programming 1 February 4, 2011 10:08
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 20:23


All times are GMT -4. The time now is 13:08.