CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF_Define Turbulent_Viscosity locally

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

LinkBack Thread Tools Display Modes
Old   March 29, 2007, 11:37
Default UDF_Define Turbulent_Viscosity locally
efisio Solazzo
Posts: n/a
Hello everybody. I would be really grateful if any of you could address me on how to create an UDF to change the turbulent viscosity, only on a portion of my domain. I have been trying the following:



Node *node;

real x = NODE_X (node);

real y = NODE_Y (node);

real mu_t;

real rho = C_R(c,t); and so on....

if ((y < 0.12) && (x < 0.82) && (x > 0.73)) /*define the region i am interested in*/

mu_t = something;


mu_t = something else;

return mu_t;


(which compiles by the way) but I think that the usage of && and the specification of the coordinates using NODE creates some problems...

Any ideas? Thanks
  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
DyOneEqEddy negative nuSgs roth OpenFOAM Bugs 8 September 26, 2016 19:49
FoamSystemCheck fails ssh to current host is refused miles OpenFOAM Installation 3 March 17, 2008 03:36
How to add a new class locally ville OpenFOAM 4 December 11, 2006 14:20
comments on FDM, FEM, FVM, SM, SEM, DSEM, BEM kenn Main CFD Forum 2 July 18, 2004 18:28
Export locally refine meshes to Tecplot Jens Siemens 3 June 18, 2003 18:02

All times are GMT -4. The time now is 21:15.