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

UDF for a enthalpy source term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2024, 13:03
Post UDF for a enthalpy source term
  #1
New Member
 
Girish
Join Date: Jun 2024
Posts: 2
Rep Power: 0
P_Anu9 is on a distinguished road
I am trying to add enthalpy source term to the Energy equation. I have discretized the term and tried to bring it in the form Sp*T+Sc.
The enthalpy term is -ρAL⋅(𝜕𝑇/𝜕t)
where ρ = density and AL=constant and T = Temperature
I have written the UDF ,it's getting compiled but not giving proper results.
I am new to UDF . Can someone tell me whether it's correct or not. I have attached the file below.


EnThalpy_Source.c
P_Anu9 is offline   Reply With Quote

Reply


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 02:37.