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

2 degree of freedom in one direction UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghost82

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2014, 11:24
Default 2 degree of freedom in one direction UDF
  #1
New Member
 
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 14
linh nguyen is on a distinguished road
Hi,

I am doing simulation for flow around free oscillating cylinder. The cylinder was attach with the mass by spring which can be consider as 2 DOF system in one direction (y direction) not 1DOF for each (x, y direction).

I using SDOF in Fluent for single degree of freedom case and it was working fine. But when it's come to 2 DOF, I have no idea how to start.

I am very grateful if anybody can give me some suggestion how to start.

Best Regards
linh nguyen is offline   Reply With Quote

Old   March 5, 2014, 06:53
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
You can use the 6dof solver and create an udf with body properties and use the following lines to have restricted motion:

Transational motion in x direction is not allowed:
Code:
prop[SDOF_ZERO_TRANS_X] = TRUE;
Transational motion in x direction is allowed:
Code:
prop[SDOF_ZERO_TRANS_X] = FALSE;
Transational motion in y direction is not allowed:
Code:
prop[SDOF_ZERO_TRANS_Y] = TRUE;
Transational motion in y direction is allowed:
Code:
prop[SDOF_ZERO_TRANS_Y] = FALSE;
Transational motion in z direction is not allowed:
Code:
prop[SDOF_ZERO_TRANS_Z] = TRUE;
Transational motion in z direction is allowed:
Code:
prop[SDOF_ZERO_TRANS_Z] = FALSE;
Rotational motion around x axis is not allowed:
Code:
prop[SDOF_ZERO_ROT_X] = TRUE;
Rotational motion around x axis is allowed:
Code:
prop[SDOF_ZERO_ROT_X] = FALSE;
Rotational motion around y axis is not allowed:
Code:
prop[SDOF_ZERO_ROT_Y] = TRUE;
Rotational motion around y axis is allowed:
Code:
prop[SDOF_ZERO_ROT_Y] = FALSE;
Rotational motion around z axis is not allowed:
Code:
prop[SDOF_ZERO_ROT_Z] = TRUE;
Rotational motion around z axis is allowed:
Code:
prop[SDOF_ZERO_ROT_Z] = FALSE;
Daniele
linh nguyen likes this.
ghost82 is offline   Reply With Quote

Old   March 7, 2014, 06:50
Default
  #3
New Member
 
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 14
linh nguyen is on a distinguished road
Thank Daniele,

I have used this SDOF Macro already for Single degree of cylinder system I have done before and I quite familiar with SDOF Macro. But now I am doing 2DOF in 1 direction, that, the cylinder in the flow domain will be attached with a Mass (see attachment). Do you think in Fluent they have a Macro for this or I have to write my own UDF for this case.


Linh
Attached Images
File Type: jpg 2DOF.jpg (12.1 KB, 100 views)
linh nguyen is offline   Reply With Quote

Reply

Tags
cylinder, dynamic mesh


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
looping UDF in given direction ak6g08 Fluent UDF and Scheme Programming 0 September 10, 2009 11:13
degree of freedom ztdep Main CFD Forum 1 January 12, 2009 09:16
changing gravity vector direction using UDF Nico FLUENT 0 September 7, 2006 13:00
6 Degree of Freedom Navier Stoke Equations Apollo Main CFD Forum 6 July 21, 2004 17:46
Definition of degree of freedom Multiscaleman Main CFD Forum 2 June 11, 2004 08:58


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