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

How to set a cell or face property independent of BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2010, 18:22
Question How to set a cell or face property independent of BC
  #1
TDi
Member
 
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16
TDi is on a distinguished road
I am trying to simulate the deposition of layers of a powder under a heater. A layer is deposited at an initial temperature, then allowed to heat for a while. Then another layer is deposited at the initial temperature and allowed to heat, and so on. The boundary condition is mixed convection/radiation. I use a dynamic mesh UDF to add a layer of powder by deforming the geometry, but I need to set the temperature of the new layer.
I understand how to set the temperature using a DEFINE_PROFILE, but that would rely on having that specific property defined by the boundary condition, that is, I think I would have to have a constant temperature BC.
Is there a way to use something like
F_PROFILE(face_thread,boundary_thread,i)=temp
to set the cell temperature/density/thermal conductivity arbitrarily? How would I know which value of i to use, since that is supplied by the function hook?

Thanks in advance.
TDi is offline   Reply With Quote

Old   October 19, 2010, 20:59
Lightbulb
  #2
New Member
 
Brandon Hathaway
Join Date: Oct 2010
Location: Minneapolis
Posts: 9
Rep Power: 16
Hathaway is on a distinguished road
Send a message via ICQ to Hathaway
Hey, I had to do a similar thing as you, I was looking to update my BC every iteration somehow using DEFINE_ADJUST, which isn't passed a property_id like DEFINE_PROFILE is.

My solution involved a UDF file that contained both a DEFINE_PROFILE portion to set the initial BC and also identify the property_id that will later be used to change the BC later on, and a DEFINE_ADJUST macro that changed the BC for each iteration thereafter. I posted my implementation code in another thread, the link to which is below.

http://www.cfd-online.com/Forums/flu...tml#post279878

I tested this code and it looks like my boundary conditions were indeed changing as desired with each iteration. Hopefully this helps you out.
Hathaway is offline   Reply With Quote

Reply

Tags
cell temperature, properties, udf


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
Setting BC for each cell on face Geisel Fluent UDF and Scheme Programming 3 July 2, 2010 03:52
define boundary condition in just one cell face om1234 Fluent UDF and Scheme Programming 0 June 16, 2010 20:11
Body force at the cell face Souviktor Fluent UDF and Scheme Programming 0 March 31, 2009 09:54
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
Cell face values computation un unstructured grids Sergio Rossi Main CFD Forum 2 May 28, 2006 11:04


All times are GMT -4. The time now is 00:25.