|
[Sponsors] |
read Velocity-profile and make it time-dependent |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 5, 2016, 10:23 |
read Velocity-profile and make it time-dependent
|
#1 |
New Member
Christoph
Join Date: Jul 2016
Location: Stuttgart, Germany
Posts: 8
Rep Power: 10 |
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 |
|
Tags |
read profile, transient, udf |
|
|
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 |