View Issue Details

IDProjectCategoryView StatusLast Update
0004251OpenFOAMContribution (requires maintenance funding)public2025-07-08 19:23
Reporterlorenzotrevisan Assigned Tohenry  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionsuspended 
Platformx86_64OSSlackwareOS Version15.0
Product Version12 
Summary0004251: a proposal of new total temperature function for fieldFunctionObjects library
Descriptioncurrent fieldFunctionObjects library include totalEnthalpy function, which, although useful, is relative and difficult to compare in my opinion.

I defined a new total temperature function which adds the result totT [K], easily comparable with the absolute temperature field.
Steps To Reproduce1- extract the attached archive 'totalTemperature.tar.gz' in 'OpenFOAM-12/src/functionObjects/field/'

2- edit 'OpenFOAM-12/src/functionObjects/field/Make/files', add a new row just after 'totalEnthalpy/totalEnthalpy.C', and add the string 'totalTemperature/totalTemperature.C' in the new row; save the file

3- recompile the fieldFunctionObjects library: a new 'libfieldFunctionObjects.so' will be created

4- copy the attached new configuration file 'totalTemperature' in 'OpenFOAM-12/etc/caseDicts/functions/fields/'
Additional Informationin order to create the new total temperature result, add '#includeFunc totalTemperature' in functions list;

the new results will be named totT
TagsNo tags attached.

Activities

lorenzotrevisan

2025-07-07 09:18

reporter  

totalTemperature (789 bytes)   
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  12
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Calculates and writes the total temperature (T + K / Cp) as the volScalarField T

\*---------------------------------------------------------------------------*/

type            totalTemperature;
libs            ("libfieldFunctionObjects.so");

executeControl  writeTime;
writeControl    writeTime;

// ************************************************************************* //
totalTemperature (789 bytes)   

henry

2025-07-07 09:56

manager   ~0013588

https://openfoam.org/maintenance
https://openfoam.org/news/funding-2025

henry

2025-07-08 19:23

manager   ~0013589

Pending maintenance funding

Issue History

Date Modified Username Field Change
2025-07-07 09:18 lorenzotrevisan New Issue
2025-07-07 09:18 lorenzotrevisan File Added: totalTemperature.tar.gz
2025-07-07 09:18 lorenzotrevisan File Added: totalTemperature
2025-07-07 09:56 henry Note Added: 0013588
2025-07-07 13:30 administrator Category Contribution => Contribution (requires maintenance funding)
2025-07-08 19:23 henry Assigned To => henry
2025-07-08 19:23 henry Status new => closed
2025-07-08 19:23 henry Resolution open => suspended
2025-07-08 19:23 henry Note Added: 0013589