|
[Sponsors] |
May 18, 2010, 09:47 |
c++ for fluent
|
#1 |
New Member
marie
Join Date: May 2010
Posts: 21
Rep Power: 16 |
Hi,
I have another problem... Just to try, I wanted to put different viscosities to the pair cells and impair cells... #include"udf.h" DEFINE_PROPERTY(cell_viscosity, cell, thread) { real mu_lam; cell_t c; int i; for (i=1, i<200, i++) if ((cell_t ci %2)==0) mu_lam = 2.; else mu_lam = 1.; return mu_lam; } But it doesn't work... I'm new with both Fluent and C++... If anyone could help.. Thanks!! |
|
Tags |
c++, fluent |
|
|