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

Define_Specific_heat UDF as function of both T and P

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2021, 06:23
Default Define_Specific_heat UDF as function of both T and P
  #1
New Member
 
Gianmarco
Join Date: Nov 2021
Posts: 10
Rep Power: 5
RocketGme is on a distinguished road
Hello everyone,

In order to define the specific heat property I got that i must use the DEFINE_SPECIFC_HEAT macro. According to the manual it comes only as a function of temperature and sensible enthalpy

DEFINE_SPECIFIC_HEAT( name, T, Tref, h, yi)

As I have a database of Cp varying with both temperature and pressure, is it possibile to express property also as function of P, bypassing fluent's limit in define_specific_heat? Maybe through the use of a different udf.

Thank you for your help.

Gianmarco
RocketGme is offline   Reply With Quote

Old   December 21, 2021, 10:59
Default
  #2
New Member
 
Gianmarco
Join Date: Nov 2021
Posts: 10
Rep Power: 5
RocketGme is on a distinguished road
For anyone having the same problem, I managed to solve this using a User defined real gas model.
RocketGme is offline   Reply With Quote

Old   January 18, 2022, 07:19
Default
  #3
New Member
 
Ved prakash
Join Date: Sep 2019
Posts: 2
Rep Power: 0
ved prakash is on a distinguished road
hi, I have to give density as a function of temperature for my film cooling problem. I have a density ratio of 1.3 for my steady flow. can you help me write UDF for this?
any help would be appreciated?
ved prakash is offline   Reply With Quote

Old   January 19, 2022, 04:01
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
ansys fluent customization manual,

look for DEFINE_PROPERTY macro, there are few good examples
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 11:05
[FLUENT] Loading UDF function problems Faggio11 FLUENT 0 August 9, 2016 07:33
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


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