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

read Velocity-profile and make it time-dependent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2016, 10:23
Default read Velocity-profile and make it time-dependent
  #1
New Member
 
Christoph
Join Date: Jul 2016
Location: Stuttgart, Germany
Posts: 8
Rep Power: 10
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;
DEFINE_PROFILE(inletvelocity,ft,var)
{


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


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:

begin_f_loop(f,ft)
{
F_PROFILE(f,ft,var)= v0 +v0 * sin(OMEGA*flow_time);
}
end_f_loop(f,ft)
}

Thank you very much in advance and best regards

Schlappeseppel
schlappeseppel124 is offline   Reply With Quote

Reply

Tags
read profile, transient, 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
InterFoam - Validation for velocity profile in simple channel me.ouda OpenFOAM Running, Solving & CFD 0 October 19, 2015 07:42
3D Velocity profile for turbulent flow Kirill Fluent UDF and Scheme Programming 3 July 17, 2014 09: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 00:16.