CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to avoid negative T0 in rhoCentralFom

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2021, 10:23
Default How to avoid negative T0 in rhoCentralFom
  #1
New Member
 
Belgium
Join Date: Nov 2021
Posts: 9
Rep Power: 4
fceyhuns is on a distinguished road
Hello,

As far as I see a lot of people have this negative initial T0 error with rhoCentralFoam but I cannot find any clear answer on how to get rid of it.

I am trying to run a compressible case, where I expect a shock wave.

Adjustable time step does not work with sonicFoam.

Limiting Temperature or Pressure does not work with rhoCentralFoam.

A combination of 2 works with rhoPimpleFoam but then I cannot solve for the shock wave.

What would be the way to prevent negative temperatures in rhoCentralFoam ? It is not fvOptions, it cannot be set in fvSolutions PIMPLE like for pimple solvers.

The error message suggests it is something in the thermophysicalProperties file but there is nothing extraordinary in that file.

Code:
--> FOAM FATAL ERROR:
Negative initial temperature T0: -5374.53

    From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hConstThermo<Foam::perfectGas<Foam::specie> >; Type = Foam::sensibleInternalEnergy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy>]
    in file X:/OpenFOAM-5.x/src/thermophysicalModels/specie/thermo/thermo/thermoI.H at line 54.
fceyhuns is offline   Reply With Quote

Old   February 11, 2024, 00:20
Default
  #2
chc
New Member
 
Join Date: Nov 2023
Posts: 18
Rep Power: 3
chc is on a distinguished road
Have you had any luck in sorting this issue out? I'm able to get shockwaves but its propagating from the outlet until it gets to a critical location causing failure.
chc is offline   Reply With Quote

Old   February 12, 2024, 03:30
Default
  #3
New Member
 
Belgium
Join Date: Nov 2021
Posts: 9
Rep Power: 4
fceyhuns is on a distinguished road
Hello,
Unfortunately no.
fceyhuns is offline   Reply With Quote

Reply

Tags
limitation, rhocentralfoam, temperature constraint


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


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