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

How to write a UDF for time-sampled data?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2021, 13:41
Default How to write a UDF for time-sampled data?
  #1
New Member
 
Prakash singh
Join Date: Jun 2020
Posts: 1
Rep Power: 0
pcsingh is on a distinguished road
Flow Time
Area weighted Average Temp(K)

2.4
299.881237

2.6
299.859884

2.8
299.848791

3.0
299.842712

3.2
299.839355

3.4
299.837498

3.6
299.836468

3.8
299.835896

4.0
299.835577

4.2
299.835399

This is the type of data I am getting during my simulation (at a different flow time, I am getting area-weighted average temperature) ;

So, I want to write a UDF which automatically stores these data and do the average. Please suggest.
Write now I am using report file definition to get these value and, manually I am averaging it. Which is tough for 150-160 simulations.
I got to know about Time Sampled Data
T_mean= C_STORAGE_R(c,t, SV_T_MEAN)/delta_time_sampled;
But don't know how to implement this at the outlet.
pcsingh is offline   Reply With Quote

Reply

Tags
data sampling, udf code


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
Write data at specific times, not intervals artymk4 OpenFOAM 7 November 13, 2020 03:30
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 21:06
UDF for Mapping 3D Experimental Data (Heat Generation) to Mesh jbo214 Fluent UDF and Scheme Programming 1 May 15, 2017 16:47
UDF - Write data into file at the end of every time-step rookiecfd Fluent UDF and Scheme Programming 7 April 17, 2017 12:21
Reading data from node file in UDF avd28 Fluent UDF and Scheme Programming 2 August 24, 2015 17:49


All times are GMT -4. The time now is 03:34.