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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2021, 12: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


All times are GMT -4. The time now is 17:57.