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

UDF writing for heat source of battery

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2022, 09:40
Question UDF writing for heat source of battery
  #1
New Member
 
陈丫丫
Join Date: Jan 2022
Posts: 1
Rep Power: 0
chenyaya is on a distinguished road
Hello Respected,
I try to simulating the change of temperature of a battery, change with temperture and time, current discharge (0.5C).
After the simulation, the battery temperature drop did not match the expected results.Actually, the battery temperature should rise.
I don't know where the problem is, please help me, thanks.
Code:
#include"udf.h"
#define A -0.0205
#define B 1.51
#define C -39.13
#define D 0.00001276
#define E 0.07
#define F -0.007672
#define G 0.0001564
#define H 1878
DEFINE_SOURCE(cell_heat_source,cell,thread,dS,eqn)
{
real source;
real ts,T;
ts=RP_Get_Real("flow-time");
T=C_T(cell,thread);
source=A*T*T*T+B*T*T+C*T+D*ts*ts+E*ts+F*T*t+G*T*T*ts+H;
dS[eqn] = 0;
return source;
}

Last edited by chenyaya; January 12, 2022 at 10:21. Reason: three are some problems.
chenyaya is offline   Reply With Quote

Reply

Tags
udf and programming


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
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 16:14
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59


All times are GMT -4. The time now is 13:48.