KR422: How can we specify both spatial and temporal temperature profile on a wall zone? (Solution ID: 825)


In some heat transfer simulations, user will want to impose a temperature profile on a given wall zone that is varying both spatially and temporally. That is, at different times, the spatial profiles are different. Often, user has a tabular data that is obtained from an experiment. Specifying a temporal only OR spatial only can be done using profile. How about both?
A UDF has been written to read an input file containing both the spatial and temporal variations of a scalar quantity. The format of this file follows the standard profile format closely and is explained at the end of this file.
The UDF contains three sections:
----------------------------------------------------
- ReadFile
Type: On-Demand
Purpose: To read the input file table
- GetData
Type: Function
Purpose: Interpolate data
- Tspec
Type: Profile
Purpose: Assign data to each face of the face zone
How to use it ?
-----------------------
- The input file needs to be named as DataFile (can be changed inside the UDF)
- Execute the ReadFile on-demand function after reading the case file and before reading the data file. This must be done everytime Fluent is restarted
- Hook the Tspec profile function to the temperature field of a wall zone
- Iterate as usual
The format of input file is given below:
-----------------------------------------------------------
- The first line contains the NPtsTm (number of time steps points) and
NPtsData (number of data points)
- Next line is a blank
- Next NPtsTm lines contain the time data
- Next line is a blank
- Next NPtsData lines contain the x-coordinates data
- Next line is a blank
- Next NPtsData lines contain the y-coordinates data
- Next line is a blank
- Next NPtsData lines contain the z-coordinates data
- Next line is a blank
- Next NptsData lines contain the first scalar data at time#0
- Next line is a blank
- Next NptsData lines contain the first scalar data at time#1
- ... so on ... until the last time data is given





Show Form
No comments yet. Be the first to add a comment!