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

UDF Transient Velocity Date

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2018, 13:36
Default UDF Transient Velocity Date
  #1
New Member
 
Mike
Join Date: Jul 2016
Posts: 6
Rep Power: 10
OpenFOAM-2016 is on a distinguished road
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
OpenFOAM-2016 is offline   Reply With Quote

Old   June 27, 2018, 19:50
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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.
`e` is offline   Reply With Quote

Reply


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
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


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