|
[Sponsors] |
June 27, 2018, 13:36 |
UDF Transient Velocity Date
|
#1 |
New Member
Mike
Join Date: Jul 2016
Posts: 6
Rep Power: 10 |
Hi everyone
I have a question. I want to apply transient velocity inlet using a set of data that I got during an experiment. So it is hard to find a curve fitting function for that data (And then write that function in the UDF) so I was thinking to see if there is a way to import it as is. Here is one sample of the data: Time Velocity 0 0 0.02 0.508833333 0.03 1.35 0.04 0.948666667 0.05 0.156666667 0.06 0.175 0.07 0.418666667 0.08 0.203333333 0.09 0.017666667 0.1 0.049333333 0.2 -0.0982 0.4 -0.031433333 0.6 -0.014333333 0.8 -0.014133333 1 -0.0217 1.2 -0.013416667 1.4 -0.019916667 1.6 -0.023066667 1.8 -0.032966667 2 -0.028466667 |
|
June 27, 2018, 19:50 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
You could add this table as an array within a UDF, and then with a DEFINE_PROFILE macro, use interpolation to get the velocity at each time step for the inlet boundary.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 13:35 |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
UDF for inlet velocity alongwith UDF for properties | akshayy224 | FLUENT | 0 | February 1, 2018 10:17 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 03:13 |
UDF problem : inlet velocity in cyl. coord. system | Jongdae Kim | FLUENT | 0 | June 15, 2004 12:21 |