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

cannot vary temperature in dbns of foam-extend

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2022, 23:29
Default cannot vary temperature in dbns of foam-extend
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
Good day everybody

I see we have

const volScalarField& T = thermo->T();

in createFields.H of solver dbnsTurbFoam

(because thermo->T() is const )

which is really too bad as temperature can very well vary with time for a compressible fluid.

Now is that a bug or I'm missing something really basic here ?

Regards to all
celestial is offline   Reply With Quote

Old   October 20, 2022, 22:28
Default
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
Well, I decided to run the dbns tutorial on the naca airfoil and even though the initial T is 300 deg K everywhere on the mesh, it changes spatially with time in spite of it being a const reference. Somehow, the code designers found a way in C++ to change the memory location value. It is still mysterious why it should be a const reference when enthalpy h and pressure p are non constant references.
celestial is offline   Reply With Quote

Reply


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
SimpleFoam cannot open include file Marija OpenFOAM Running, Solving & CFD 1 October 28, 2020 11:35
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 12:32
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38


All times are GMT -4. The time now is 00:12.