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

can i do that ??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2017, 11:02
Default can i do that ??
  #1
Member
 
alliche redha
Join Date: Jun 2010
Posts: 53
Rep Power: 15
cheredha is on a distinguished road
hi,

I have a question please,

1- can I use "temperature" or "pressure" in 6dof udf.
2- and, how should I define ' c ' and ' t ' in "temp = C_T(c,t); "

for example :

#include "udf.h"
DEFINE_SDOF_PROPERTIES(force_tempe, prop, dt, time, dtime)
{
real temp = C_T(c,t);
prop[SDOF_MASS] = 6;
prop[SDOF_ZERO_TRANS_X] = TRUE;
prop[SDOF_ZERO_TRANS_Y] = FALSE;
prop[SDOF_ZERO_TRANS_Z] = TRUE;
prop[SDOF_ZERO_ROT_X] = TRUE;
prop[SDOF_ZERO_ROT_Y] = TRUE;
prop[SDOF_ZERO_ROT_Z] = TRUE;
prop[SDOF_LOAD_F_Y] = (6 * 9.81) - ( 4 * temp) ;
}
cheredha is offline   Reply With Quote

Reply


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 16:24.