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

Create rectified square wave inlet flow profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2015, 13:30
Default Create rectified square wave inlet flow profile
  #1
New Member
 
Join Date: Nov 2015
Posts: 1
Rep Power: 0
mhw2015 is on a distinguished road
I am trying to create a udf to generate a flow at the inlet that is a rectified square wave (oscillate between 0 and amplitude A). The equations I planned to use were the fourier series of the waveform, namely f(t)=\frac{A}{2}+\frac{4A}{\pi}\sum\frac{sin((2n-1)\omega t)}{2n-1}, but I haven't been able to figure out how to write an infinite sum like this (as n goes from 1 to infinity) in C code for the udf. Does anyone have any insights?
I don't need any specifics for the flow other than this pulsed flow at inlet, the flow can leave the outlet normally as per simulation.
Thank you!
mhw2015 is offline   Reply With Quote

Reply

Tags
inlet flow profile, square wave, udf


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
Inlet boundary profile: can I prescribe flow angles? turbomax CFX 9 August 6, 2015 16:01
3D pipe flow :: how to create non uniform inlet profile. thess FLUENT 1 May 30, 2014 03:43
Setting mass flow rate profile at an inlet MentalVacancy STAR-CCM+ 11 July 6, 2012 20:54
Strange velocity profile at the inlet for a flow inside a cylindrical pipe michmich OpenFOAM Running, Solving & CFD 0 July 2, 2012 04:37
[blockMesh] Include list of points Hikachu OpenFOAM Meshing & Mesh Conversion 0 June 20, 2011 10:03


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