|
[Sponsors] |
How to read a .dat file and assign a heat generation [w/m3] on a cell |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 22, 2022, 06:40 |
How to read a .dat file and assign a heat generation [w/m3] on a cell
|
#1 |
New Member
Join Date: Nov 2022
Posts: 10
Rep Power: 4 |
Hey all. I'm working on a concentrated solar power parabolic dish receiver. I want to create a UDF that reads from a .dat file which has x,y,z, and heat generation values for each cell and then subsequently applies a heat generation condition for that cell. The thing is, I do not know where to start. From the UDF manual, I got a hint that the DEFINE_PROFILE macro can help me achieve this. But what would be next?
how do I read from a .dat file and apply a heat generation value to a cell? Thanks! |
|
November 23, 2022, 00:56 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
as you have file with x,y,z and heat source convert it into profile (not udf profile) and apply to your model (no udf is required)
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
udf and programming, udf code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to assign convective and radiative heat flux separately? | vs1 | OpenFOAM Running, Solving & CFD | 0 | July 18, 2018 09:11 |
How to assign value to a single cell? | OlegSutyrin | OpenFOAM Programming & Development | 10 | January 7, 2017 11:10 |
Looping through Cell Zones in a Journal File | adam.vaccaro | Fluent UDF and Scheme Programming | 0 | August 1, 2013 23:45 |
UDF to read data from a file for VOF model | Pablo | FLUENT | 0 | October 23, 2008 08:02 |
read boundary file | Riccardo | FLUENT | 2 | August 8, 2002 11:00 |