Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1751
Closed
Open
Issue created Jun 26, 2020 by Daniel@daniel.jasinski

ReynoldsAnalogy CHT model uses incorrect name to look-up fluidThermo

Summary

The ReynoldsAnalogy model uses name to look-up the fluidThermo model.

Steps to reproduce

Define a heatTransferCoeff function with the ReynoldsAnalogy HTC model and use it with a compressible solver without defining the CpInf.

Example:

myCoeff
{
  type            heatTransferCoeff;
  libs            ("libfieldFunctionObjects.so");

  field           T;
  htcModel        ReynoldsAnalogy;
  patches         (my_wall);
  UInf            (1 0 0);

  executeControl  writeTime;
  writeControl    writeTime;
}

What is the current bug behaviour?

An error is displayed:

--> FOAM FATAL ERROR: Unable to set Cp for patch 2

From function virtual Foam::tmp<Foam::Field<double> > Foam::heatTransferCoeffModels::ReynoldsAnalogy::Cp(Foam::label) const
in file heatTransferCoeff/heatTransferCoeffModels/ReynoldsAnalogy/ReynoldsAnalogy.C at line 93.

FOAM exiting

What is the expected correct behavior?

The heatTransferCoeff function should look-up the fluidThermo model and compute the specific heat.

Possible fixes

In the file ReynoldsAnalogy.C at lines 84 and 87 replace fluidThermo::typeName with fluidThermo::dictName.

Assignee
Assign to
Time tracking