CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF for changing the cell permeability (http://www.cfd-online.com/Forums/fluent-udf/78325-udf-changing-cell-permeability.html)

sfotovati July 18, 2010 19:12

UDF for changing the cell permeability
 
Dear all.

I wrote the following UDF which suppose to change the marked cells permeability. can anybody mentions if this is true or not? besides, how can I hook the UDF to the fluent?

DEFINE_PROPERTY(cell_permeability,c,t)
{
real perm;
if(C_UDMI(c,t,0)==1)
{
perm=0;
C_U(c,t)=0.;
C_V(c,t)=0.;
C_W(c,t)=0.;
}
return perm;
}


All times are GMT -4. The time now is 04:15.