can user define a location dependent density in Define_property udf macro?

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 January 18, 2019, 15:11 can user define a location dependent density in Define_property udf macro? #1 Member   Peter Maroul Join Date: May 2018 Posts: 52 Rep Power: 8 Hello all; Can anyone describe me if the user is able to define the viscosity or density as a function of location by UDf writing in Define_proprties macro? For example : suppose : How can the user implement this function in FLUENT? Thanks a lot for any answer. P.Maroul

 January 21, 2019, 07:23 #2 Senior Member   Join Date: Nov 2013 Posts: 1,965 Rep Power: 26 The Fluent manual shows how to make it depend on temperature. The example reads temperature as Code: real T = C_T(c,t); If instead of temperature you want the coordinates, then just use the coordinate: Code: real xc[ND_ND]; C_CENTROID(xc,c,t); Now, the x-coordinate is stored as xc[0], and the y-coordinate as xc[1]. So your equation would become Code: 1000+0.00001*cx[0]+0.00001*cx[1]

 January 21, 2019, 15:34 #3 Member   Peter Maroul Join Date: May 2018 Posts: 52 Rep Power: 8 Thank you Sir for your kind help. That worked excellent. Good Luck and best wishes.

 Tags define_property, density, udf, viscosity

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post LinW Fluent UDF and Scheme Programming 2 December 7, 2018 11:22 Travis FLUENT 4 January 15, 2009 11:48 unoder OpenFOAM Installation 11 January 30, 2008 20:30 mayur FLUENT 3 August 9, 2006 10:19 Puneet FLUENT 3 November 28, 2003 10:55

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

 Contact Us - CFD Online - Privacy Statement - Top