|
[Sponsors] |
cannot vary temperature in dbns of foam-extend |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2022, 23:29 |
cannot vary temperature in dbns of foam-extend
|
#1 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
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 |
|
October 20, 2022, 22:28 |
|
#2 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
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.
|
|
|
|
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 |