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

tank motion on boat

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2007, 12:50
Default tank motion on boat
  #1
Tim
Guest
 
Posts: n/a
Hi I would like to model a solid tank motion filled with fluid. This tank is on a boat. I create an UDF to describe the motion of the tank but when I want to load it in Define->Dynamic Mesh->Zones. Fluent warns me: incorrect grid motion UDF cuve::libudf on zone 2 (assuming no motion)

So I suppose that my udf file is bad but I don't know how to correct it.

My UDF:

#include "udf.h"

real hs=-0.786; real thetamax=3; real pulsation=0.1; real theta; DEFINE_CG_MOTION(cuve,dt,vel,omega,time,dtime) { Thread *t; /* reset velocities */ NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if (!Data_Valid_P()) return; /* get the thread pointer for which this motion is defined */ t = DT_THREAD(dt);

theta=thetamax*sin(pulsation*time); omega[0]=theta/dtime; vel[0]=hs*sin(theta)/dtime; vel[1]=hs*sin(theta)/dtime; Message ("time = %f, x_vel = %f, y_vel=%f,rotation=%f\n", time, vel[0], vel[1], omega[0] ); }

Or do you have any other ideas to model this motion on Fluent??

Can you help me? thanks in advance Tim
  Reply With Quote

Reply

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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
boat motion simulation lim FLOW-3D 0 April 22, 2011 12:58
Tank sloshing in fluent diverging...need help lostin4ever FLUENT 4 February 24, 2010 08:20
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
UDF for tank motion kris FLUENT 0 August 18, 2006 02:27


All times are GMT -4. The time now is 04:02.