CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Using UDF to read a table and change heat souce value at every time step.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2024, 12:22
Default Using UDF to read a table and change heat souce value at every time step.
  #1
New Member
 
Duccio
Join Date: May 2023
Posts: 1
Rep Power: 0
spidey4 is on a distinguished road
Hi all,

I'm trying to simulate a battery charging cycle, and I want the battery internal volume to be a heat source with the value of qvol changing at every time step, according to the surface temperature.

I have a table with 5 columns:
time
temperature = 20°C
qvol@20°C
temperature = 25°C
qvol@25°C

I can import the table into fluent correctly.
I want to write an UDF that reads the surface temperature of the cell (and takes the average of the whole surface), then approximates it with 20 or 25 and reads the corresponding qvol value and uses it as the qvol of the source term for the next time step.

Is it possible to do so?
spidey4 is offline   Reply With Quote

Reply

Tags
heat source, table data, transient, 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
Conjugate Heat Transfer: Solid Time Step in Transient Simulation, DO Model Dingens FLUENT 0 July 9, 2021 07:19
Effect of heat loss ratio dimension on FGM table twb2k8 Main CFD Forum 0 May 15, 2020 14:14
interFoam VOF is loosing fluid wersoe OpenFOAM Running, Solving & CFD 12 June 26, 2013 09:13
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32


All times are GMT -4. The time now is 21:18.