Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
openfoam
openfoam
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 331
    • Issues 331
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • openfoamopenfoam
  • Issues
  • #1751

Closed
Open
Opened 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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: Development/openfoam#1751