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

Unsteady udf, velocity step

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 5, 2005, 04:02
Default Unsteady udf, velocity step
  #1
CJ
Guest
 
Posts: n/a
Is it possible to write a unsteady udf such that:

t<2 velocity=20

t>2 velocity=30

I have used this sinusoidal function previously (below), but would like to have a simple step change as above

DEFINE_PROFILE(unsteady_velocity, thread, position) {

face_t f;

begin_f_loop(f, thread)

{

real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = 25. + 5.0*sin(10.*t);

}

end_f_loop(f, thread) }
  Reply With Quote

 


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
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 09:08
On Setring Step Size in unsteady Solver of FLUENT lzgwhy FLUENT 0 August 19, 2009 22:44
how did I see next time step of velocity cotour ? Andy Chen FLUENT 2 June 30, 2009 12:48
How to modify velocity with UDF jddmsh FLUENT 0 June 28, 2003 21:59
UDF component in Cyliderical Velocity? Hongchan Kim FLUENT 3 April 24, 2001 12:20


All times are GMT -4. The time now is 13:27.