Fixing Variable in a Cell Zone

How to fix a variable in a cell zone?

For any cell zone (fluid or solid), you can fix the variables to any value. Click Define Boundary and open the panel for the cell zone you want to change. Turn on Fixed Value and provide a value for the variable to be fixed.

Fixed values can also be set using a UDF via the DEFINE_PROFILE macro. The * t argument in this macro loops through the thread and will return the thread pointer to the face zone or the cell zone depending on the hook. In addition, in order to assign a value to a variable, you must use the C_PROFILE macro. The function arguements of C_PROFILE (cell index, cell thread, identifier of the hook variables) are exactly the same as in F_PROFILE. Below is an example of using the DEFINE_PROFILE macro with the C_PROFILE macro:

DEFINE_PROFILE(sample,t,i)
{
cell_t c;
begin_c_loop(c,t)
{
C_PROFILE(c,t,i)=・・・
}end_c_loop(c,t)
}