|
[Sponsors] |
December 17, 2018, 06:29 |
DEFINE_SPECIFIC_HEAT problem
|
#1 |
New Member
Join Date: May 2018
Posts: 29
Rep Power: 8 |
Hello,
I have a problem with my UDF calculating the specific heat Cp for my mixture. Even if I take the simple example given in the manual (see below) I get an error. The initialization works fine (the Message within the UDF delivers the correct cp during initialization, also enthalpy h is not null). But when I start the simulation following error appears for every node: Error at Node X: Non-physical Specific Heat = 0.000000e+00 Code:
DEFINE_SPECIFIC_HEAT(heat_capacity, T, Tref, h, yi) { // Enthalpy must be set (requirement for this udf-macro by Fluent) real cp = 2000.0; *h = cp * (T - Tref); Message("\n T = %f\tyi_specie0 = %f\tcp = %f\th = %f\tT_ref = %f", T, yi[0], cp, *h, Tref); return cp; } Another question: Why does SV_SpeciesIndex(.., ..) now needs two arguments instead of one? I used to get the index via SV_SpeciesIndex("specie0") in earlier version but somehow this isn't working anymore in 19.2. Thank you for your help! EDIT: Additional information: The error only occurs when I have volumetric reaction turned on, even though the mechanism is empty/the fluid phase "reaction" check box is NOT selected. Just the activated volumetric reaction model leads to getting this error. Somehow this changes the calculation of cp? Last edited by CFDJonas; December 17, 2018 at 06:47. Reason: new information |
|
Tags |
speciesindex, specific heat |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |