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

c++ for fluent

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 18, 2010, 09:47
Default c++ for fluent
  #1
New Member
 
marie
Join Date: May 2010
Posts: 21
Rep Power: 16
marye is on a distinguished road
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!!

marye is offline   Reply With Quote

 

Tags
c++, fluent


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



All times are GMT -4. The time now is 23:40.