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

UDF_Define Turbulent_Viscosity locally

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2007, 11:37
Default UDF_Define Turbulent_Viscosity locally
  #1
efisio Solazzo
Guest
 
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:

-----------------------------------------

DEFINE_TURBULENT_VISCOSITY(user_mu_t,c,t)

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;

else

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

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
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 02:36
How to add a new class locally ville OpenFOAM 4 December 11, 2006 13: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 19:30.