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

Gravity function of time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2008, 14:49
Default Gravity function of time
  #1
arapar
Guest
 
Posts: n/a
Hi all

I want to model a cavity and the gravity should be a function of time. I use the following udf but it did not working and there are some errors:

#include "udf.h" #define w -49 #define A 1

DEFINE_ADJUST(gravity_variable,d) { real gravity[2]; real flow_time(); real time=0.0; time = RP_Get_Real ("flow_time"); gravity[0] = A*w* double cos (double time); gravity[1] = 0;

RP_Set_Real("gravity/x",gravity[0]); RP_Set_Real("gravity/y",gravity[1]); printf ("%g x-gravity\n", gravity[0]); printf ("%g y-gravity\n", gravity[1]); }

and the errors are: 1- make[1]:leaving directory "name of my directory/libudf/lnx86/3d"

and also I can't load in and I have this error: open_udf_library:No such file or directory

can you help me to fix this problem or if you have a udf in this regards acn you please send it for me.

thanks

  Reply With Quote

Reply


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
Simulation of sloshing by time varying gravity Manoj Kumar FLUENT 3 June 13, 2011 04:34
Modifying gravity vector and MRFomega a run time nico765 OpenFOAM Running, Solving & CFD 3 December 22, 2007 11:41
gravity-table.scm scheme file for trans gravity Shankar FLUENT 0 May 31, 2006 05:30
variation of gravity with time rajani FLUENT 0 February 16, 2005 03:45
Stream function values at different time Ray FLUENT 0 July 20, 2000 13:02


All times are GMT -4. The time now is 01:54.