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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2024, 11: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 = 20C
qvol@20C
temperature = 25C
qvol@25C

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:19
Effect of heat loss ratio dimension on FGM table twb2k8 Main CFD Forum 0 May 15, 2020 13:14
interFoam VOF is loosing fluid wersoe OpenFOAM Running, Solving & CFD 12 June 26, 2013 08:13
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32


All times are GMT -4. The time now is 09:41.