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 read a .dat file and assign a heat generation [w/m3] on a cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2022, 05:40
Default 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: 3
rephical is on a distinguished road
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!
rephical is offline   Reply With Quote

Old   November 22, 2022, 23:56
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Reply

Tags
udf and programming, 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
How to assign convective and radiative heat flux separately? vs1 OpenFOAM Running, Solving & CFD 0 July 18, 2018 08:11
How to assign value to a single cell? OlegSutyrin OpenFOAM Programming & Development 10 January 7, 2017 10:10
Looping through Cell Zones in a Journal File adam.vaccaro Fluent UDF and Scheme Programming 0 August 1, 2013 22:45
UDF to read data from a file for VOF model Pablo FLUENT 0 October 23, 2008 07:02
read boundary file Riccardo FLUENT 2 August 8, 2002 10:00


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