|
[Sponsors] |
March 29, 2007, 12:37 |
UDF_Define Turbulent_Viscosity locally
|
#1 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DyOneEqEddy negative nuSgs | roth | OpenFOAM Bugs | 8 | September 26, 2016 20: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 19:28 |
Export locally refine meshes to Tecplot | Jens | Siemens | 3 | June 18, 2003 19:02 |