|
[Sponsors] |
January 17, 2004, 11:00 |
Setting fixed values with UDS
|
#1 |
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?
|
|
January 17, 2004, 16:50 |
Re: Setting fixed values with UDS
|
#2 |
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 |
|
February 2, 2004, 06:46 |
Re: Setting fixed values with UDS
|
#3 |
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.
|
|
February 2, 2004, 11:00 |
Re: Setting fixed values with UDS
|
#4 |
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 |
|
|
|
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 |