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

Setting fixed values with UDS

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2004, 11:00
Default Setting fixed values with UDS
  #1
Andrew Garrard
Guest
 
Posts: n/a
I am running 6.1.22. In the define - Boundary conditions - Fluid box you have the option for setting fixed values. Has anyone got any idea what DEFINE MACRO should be used for this. I am guessing define source or profile. Any help?
  Reply With Quote

Old   January 17, 2004, 16:50
Default Re: Setting fixed values with UDS
  #2
thomas
Guest
 
Posts: n/a
Hi, A define_source will only help you to add a source term in the continuity, momemtum or energy equation ... A define_profile will help you to fix a value at a boundary face or directly in cells of a domain. Herer the line which are gonna help ya to fix a value in the cells of a domain.

#include "udf.h" DEFINE_PROFILE(fix_value, thread,position) { cell_t cell; begin_c_loop(c,thread) {

F_PROFILE(cell,thread,position)=/*the value you want in the cells*/; } end_c_loop(cell,thread) }

Then hook up in the adequat box. Hope this help. thomas
  Reply With Quote

Old   February 2, 2004, 06:46
Default Re: Setting fixed values with UDS
  #3
Andrew Garrard
Guest
 
Posts: n/a
I have been experimenting with this, however, I don't think taht you can use a cell as the first argument to F_PROFILE.
  Reply With Quote

Old   February 2, 2004, 11:00
Default Re: Setting fixed values with UDS
  #4
thomas
Guest
 
Posts: n/a
Hello, I do confirm you can use a cell as the first argument in a F_PORFILE macro. This allows you to fix a value in a domain. (See the UDF documentation of the macro - DEFINE_PROFILE). However if you wish tofix a value at a Boundary condition, it is of course a face argument yur gonna have to use.
thomas
  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
Interpolation values in nodes and cells mrestrepo30 FLUENT 0 April 27, 2010 10:20
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
max node values exceed max element values in contour plot jason_t FLUENT 0 August 19, 2009 12:32
Reading field values and setting them as boundary conditions sega OpenFOAM Running, Solving & CFD 1 July 7, 2009 07:18
setting uds diffusivity Andrew Garrard FLUENT 1 January 15, 2004 06:44


All times are GMT -4. The time now is 03:12.