|
[Sponsors] |
March 3, 2014, 11:24 |
2 degree of freedom in one direction UDF
|
#1 |
New Member
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 14 |
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 |
|
March 5, 2014, 06:53 |
|
#2 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
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; Code:
prop[SDOF_ZERO_TRANS_X] = FALSE; Code:
prop[SDOF_ZERO_TRANS_Y] = TRUE; Code:
prop[SDOF_ZERO_TRANS_Y] = FALSE; Code:
prop[SDOF_ZERO_TRANS_Z] = TRUE; Code:
prop[SDOF_ZERO_TRANS_Z] = FALSE; Code:
prop[SDOF_ZERO_ROT_X] = TRUE; Code:
prop[SDOF_ZERO_ROT_X] = FALSE; Code:
prop[SDOF_ZERO_ROT_Y] = TRUE; Code:
prop[SDOF_ZERO_ROT_Y] = FALSE; Code:
prop[SDOF_ZERO_ROT_Z] = TRUE; Code:
prop[SDOF_ZERO_ROT_Z] = FALSE; |
|
March 7, 2014, 06:50 |
|
#3 |
New Member
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 14 |
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 |
|
Tags |
cylinder, dynamic mesh |
|
|
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 |