|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Jul 2022
Posts: 3
Rep Power: 4 ![]() |
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; } 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; } 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 |
|
![]() |
![]() |
![]() |
Tags |
6dof, hull, multiphase, overset |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 02:18 |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 12:43 |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 00:53 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |