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

Hull UDF - 3D to 2D

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2022, 15:10
Default Hull UDF - 3D to 2D
  #1
New Member
 
Join Date: Jul 2022
Posts: 3
Rep Power: 3
Fuguś is on a distinguished road
Hello,

I am developing the simulation of hull with approaching wave. I have already used overset mesh in my model and the next step is to make the hull to move. To do that, as i understand i need to use the udf file with 6dof parameters.

Due to that, i found the udf in some book for similar 3D model:

Code:
#include "udf.h"
DEFINE_SDOF_PROPERTIES(fourdof, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 500.0; /*mass*/
prop[SDOF_IXX] = 0.0; /*x revolve center*/
prop[SDOF_IYY] = 0.0; /*y revolve center*/
prop[SDOF_IZZ] = 0.0; /*z revolve center*/
prop[SDOF_ZERO_TRANS_X]=TRUE;
prop[SDOF_ZERO_TRANS_Y]=TRUE;
prop[SDOF_ZERO_TRANS_Z]=FALSE;
prop[SDOF_ZERO_ROT_X]=FALSE;
prop[SDOF_ZERO_ROT_Y]=FALSE;
prop[SDOF_ZERO_ROT_Z]=TRUE;
}
But of course i need to rearrange it to 2D case (X-Y). To do that, i should skip parts that refers to third additional axis? I did it in a following way:

Code:
#include "udf.h"
DEFINE_SDOF_PROPERTIES(fourdof, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 500.0; /*mass*/
prop[SDOF_IXX] = 0.0; /*x revolve center*/
prop[SDOF_IYY] = 0.0; /*y revolve center*/
prop[SDOF_ZERO_TRANS_X]=TRUE;
prop[SDOF_ZERO_TRANS_Y]=TRUE;
prop[SDOF_ZERO_ROT_Z]=TRUE;
}
I want boat to move in X,Y axis and also rotate in Z axis but it stands still in the center of the domain, even after the wave passes through it.

Does my UDF is incorrect, or should I focus on other settings of my Fluent Setup? Or maybe in such an easy case should i use the GUI 6dof input? Here i'm sending sample photo of my simulation: https://i.imgur.com/v5rwqLo.png
Fuguś is offline   Reply With Quote

Reply

Tags
6dof, hull, multiphase, overset

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
udf for one dimensional linear motion based on force maccheese Fluent UDF and Scheme Programming 2 September 1, 2019 03:18
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 13:43
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 10:55.