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

UDF to apply a Spanwise velocity wave on a whole 3D rectangular channel domain

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 18, 2013, 21:38
Default UDF to apply a Spanwise velocity wave on a whole 3D rectangular channel domain
  #1
New Member
 
Saâd Debbahi
Join Date: Oct 2010
Posts: 26
Rep Power: 15
QBeast is on a distinguished road
Send a message via Yahoo to QBeast
Hi guys,

I'm modelling a doubly periodic channel flow of rectangular section, to summerize, it's:

orientation:
x streamwise (mean flow direction-set to periodic)
y wall normal (non-slip Boundary condition)
z spanwise (periodic)

flow direction: x
x and z periodic
and non-slip condition at the upper and bottom wall,

I need some help to write an UDF to impose a spanwise velocity forcing wave travelling downstream which is likely to be coordinate and time dependent like A(z).Sin(Kx.x+Ky.y).Sin(w.t), on the whole domain and update every timestep, I've been looking around but found a 3 yers old thread dealing with roughly the same thing (tank with cg motion).

I've already worte UDFs generating waves at the inlet but did that only on Velocity_inlet boundary condition, Is there a way to perform the same thing to a whole domain ie every single node will have its spanwise velocity forcing contribution changing every timestep.

I'm wondering if the DEFINE_SOURCE macro is an option for pointing out every cell and adding/updating y momentum?
found this on the forum

http://www.cfd-online.com/Forums/flu...urce-term.html

thanks in advance, best regards.

Last edited by QBeast; April 18, 2013 at 22:22. Reason: I've forgotten a detail
QBeast is offline   Reply With Quote

 

Tags
channel, periodic, spanwise, udf, wave


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
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
Velocity boundary condtion UDF help victoryv Fluent UDF and Scheme Programming 2 October 9, 2012 15:27
Channel flow- How to apply "Translational Periodicity" Giorgitseli CFX 3 May 30, 2011 06:17
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29
Fluent UDF load and apply inlet velocity b.c. Knut Lehmann Main CFD Forum 2 June 29, 2007 04:53


All times are GMT -4. The time now is 14:32.