# Initialization using DEFINE_INIT

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

 February 13, 2012, 22:07 Initialization using DEFINE_INIT #1 Member   Shashank Join Date: Apr 2011 Posts: 74 Rep Power: 8 Sponsored Links I have a fluid zone and a solid zone in my model. These two zones are connected via a wall. Fluent creates a shadow for the wall when I import the meshed model into it, where shadow faces the fluid zone and the primary wall faces the solid zone. Now I initialize my velocity and temperature using UDF in solid (only temperature) and fluid zones. But how do I initialize the wall temperature? Can I loop over faces of a thread in a DEFINE-INIT macro? Thanks, Shashank

 February 14, 2012, 01:40 #2 Senior Member   xrs333 Join Date: Aug 2010 Posts: 125 Rep Power: 10 Variables are stored on cell zones, interior face zones, including coupled wall, do no need predefined conditions.

 February 14, 2012, 01:52 #3 Member   Shashank Join Date: Apr 2011 Posts: 74 Rep Power: 8 But the issue is that when I plot "temperature-vs-x" on top wall and its shadow (with node values toggled on), I get three curves. One accessing the value of cell above the wall (in the solid), one using the value of cell below the wall (in the fluid) and the third on between the two (probably on the surface, not sure about this). All I know is that the third one is coming from the corners of the top wall or its shadow. Could you understand what I just said?

 February 14, 2012, 02:01 #4 Senior Member   xrs333 Join Date: Aug 2010 Posts: 125 Rep Power: 10 The third one you mentioned is face value and is obtained via interpolation.

 February 14, 2012, 02:07 #5 Member   Shashank Join Date: Apr 2011 Posts: 74 Rep Power: 8 Agreed. But what to do if the values are wrong? My temp profile in solid: Twall + ax + bf(z) My temp profile in fluid: Twall + ax + cg(z) My supposed/true temp profile of wall: Twall + ax. But the values of Twall are way off! Maybe because Fluent uses the c0 and c1 values to calculate the values at the centroid of the faces. Right?

 February 14, 2012, 02:08 #6 Member   Shashank Join Date: Apr 2011 Posts: 74 Rep Power: 8 FYI: Twall, a, b, c are all constants.

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Mohsin FLUENT 6 November 2, 2016 03:02 dutliang FLUENT 3 December 13, 2011 22:28 jiguozhao CFX 5 June 4, 2011 07:18 a student Siemens 2 May 19, 2006 12:55 paglia FLUENT 0 February 1, 2006 16:14