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

Problems with changing turbulent viscosity by UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2005, 01:31
Default Problems with changing turbulent viscosity by UDF
  #1
sarah_ron
Guest
 
Posts: n/a
Problem setting C_MU_T with DEFINE_ADJUST

Hi,

i´m trying to change turbulent viscosity (for an extension of the ke-model; DEFINE_TURBULENT_VISCOSITY is not accessible in Eulerian multiphase) in the Eulerian model using UDF. I'm using a DEFINE_ADJUST , but I get an error message when I compile my code.

The compiler tells me: error C2106: '=' :left operand must be l-value

DEFINE_ADJUST(turb_adjust, d) { Thread *t; cell_t c;

thread_loop_c (t,d)

{

if (FLUID_THREAD_P(t))

{

begin_c_loop_all (c,t)

{

C_MU_T(c,t) = 1; /*C_MU_L works!*/

}

end_c_loop_all (c,t)

}

} }

Same error occurs for C_MU_EFF. But if i use the C_MU_L no problem (or C_R(c,t))! So where´s the problem with the eddy viscosity?

I hope someone can help me out off this! Thanks.

Andy
  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
about turbulent viscosity UDF! gina FLUENT 0 September 28, 2009 18:08
Turbulent viscosity UDF ramesh FLUENT 2 February 23, 2004 10:41
Turbulent viscosity Christian Holm Main CFD Forum 4 June 23, 2001 23:04
Modified turbulent viscosity Christoph Oehy CFX 4 April 27, 2000 23:06


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