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

Time dependant gravity

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

Like Tree1Likes
  • 1 Post By sicfred

Reply
 
LinkBack Thread Tools Display Modes
Old   December 18, 2012, 04:00
Default Time dependant gravity
  #1
New Member
 
Harikrishnan Nayanar
Join Date: Nov 2012
Location: Bangalore
Posts: 4
Rep Power: 4
harikrishnan_k is on a distinguished road
Hi all,

I am simulating sloshing in a fuel tank using VOF. I want to provide time dependant gravity to simulate vibration. Could you please help on this?

Thanks and regards,
Hari
harikrishnan_k is offline   Reply With Quote

Old   December 19, 2012, 11:53
Default
  #2
New Member
 
Elias Paez
Join Date: Nov 2011
Location: Madrid
Posts: 25
Rep Power: 5
sicfred is on a distinguished road
Hi!

1) you have to define an UDF for the time dependant gravity (Source Term). If you know the equation of time, lets say g=sin(pi*t) you can use this UDF:

#include "udf.h"
#define w 3.141592654 /* Frequency of the vibration in rad/s */

#define A 4.0 /* Maximum aceleration */
#define Durac 5.0 /* Duration of the vibrationin seconds */



DEFINE_SOURCE(GravDin,c,t,dS,eqn)
{
real time;
real source;

time=CURRENT_TIME;

if(time<Durac)

source=A*sin(w*time)*C_R(c,t);

else

source=0;

return source;
}

2) Interpret this UDF.
3)In cell zone conditions enable source terms, then go to source terms and select momentum equation -->UDF---> and select GravDin.
4)You can define more than one source terms in the same UDF, just copying and changing the name of the source, for example GravDinX (for gravity in the x direction)



Hope it hepls you.
Mike Romeo likes this.
sicfred is offline   Reply With Quote

Old   December 24, 2012, 10:09
Default
  #3
New Member
 
Harikrishnan Nayanar
Join Date: Nov 2012
Location: Bangalore
Posts: 4
Rep Power: 4
harikrishnan_k is on a distinguished road
Hello sicfred,
Thanks for your reply. I do not have a proper function for the vibration profile (Random vibration). I was told that Fluent has an option to provide gravity w.r.t time as a table format and could be downloaded from the users portal. I could not get it from the users portal. Please help me if you have a clue on this.

Thanks and regards,
Hari
harikrishnan_k is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 10:23
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Gravity function of time arapar FLUENT 0 March 8, 2008 14:49
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09


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