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, 06: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: 4
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 23, 2022, 00: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 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


All times are GMT -4. The time now is 10:58.