CFD Online Logo CFD Online URL
Home > Forums > FLUENT

read Velocity-profile and make it time-dependent

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

LinkBack Thread Tools Display Modes
Old   August 5, 2016, 09:23
Default read Velocity-profile and make it time-dependent
New Member
Join Date: Jul 2016
Location: Stuttgart, Germany
Posts: 8
Rep Power: 2
schlappeseppel124 is on a distinguished road
Hello all,

I got a question concerning UDF for a 3D-velocity profile in a transient case. This is my first question so I hope that i gave you enough data to understand. If any more detail is necessary i will of course try to give it to you.

What I would like to do is to load a 3D-profile (outlet-velocity) from a steady case and load it as an inlet-velocity for a transient case and make the profile time-dependent.

What works:
Write the profile from the steady case and read it for the inlet.
Write a UDF for a time dependent profile which got the same velocity over the whole profile:

#include "udf.h"
double v0 = 0.002604219;
double OMEGA = 62.832;

face_t f;
real flow_time;
flow_time = CURRENT_TIME;
F_PROFILE(f,ft,var)= v0 +v0 * sin(OMEGA*flow_time);

What does not work so far:
Give a time-dependency on the profile which is changing over the position. Is it somehow possible to load the profile with the existing velocity into the UDF and calculate the new time dependent velocity for each point with the code:

F_PROFILE(f,ft,var)= v0 +v0 * sin(OMEGA*flow_time);

Thank you very much in advance and best regards

schlappeseppel124 is offline   Reply With Quote


read profile, transient, udf

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
InterFoam - Validation for velocity profile in simple channel me.ouda OpenFOAM Running, Solving & CFD 0 October 19, 2015 06:42
3D Velocity profile for turbulent flow Kirill Fluent UDF and Scheme Programming 3 July 17, 2014 08:42
How to make a UDF to have a velocity profile in a square channel Gigis Fluent UDF and Scheme Programming 8 January 13, 2013 23:20
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Velocity Profile Jeff FLUENT 1 November 24, 2008 09:21

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