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

Need help in Transient Analysis

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2016, 23:44
Question Need help in Transient Analysis
  #1
New Member
 
Join Date: Apr 2015
Posts: 12
Rep Power: 11
sphoenix09 is on a distinguished road
I am newbie to multi phase analysis and simulating a sloshing problem with sinusoidal motion of rectangular and cylindrical tank.

Force = 0.01*sin(7*time)

I used the following udf to compute. Is this correct udf for such problem? or Should I use DEFINE_CG_MOTION or DEFINE_ZONE_MOTION? Which macro suits?



#include "udf.h" #define omega 7 #define a 0.01 DEFINE_SOURCE(xmom_source, c, t, dS, eqn) { real source; real time=RP_Get_Real("flow-time"); if(time < 10) { source = - omega * omega * a * sin(omega * time) * C_R(c,t); dS[eqn] = - omega * tan(omega * time) * C_R(c,t); } else source = dS[eqn] = 0.0; return source; }
here source term is acceleration. I'm not sure about this.

Any help would be appreciated.

Thank you.
sphoenix09 is offline   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
transient analysis thermal-structural Agis CFX 3 June 18, 2013 06:49
Average value of expression in transient flow analysis JFK CFX 1 May 22, 2013 08:52
transient analysis _porous medium shaswat CFX 4 January 25, 2012 00:18
Transient Analysis krrishcfd CFX 2 July 4, 2011 08:08
biogas venturi mixer transient analysis pedro Main CFD Forum 0 January 23, 2006 19:45


All times are GMT -4. The time now is 05:11.