BUG: energyTransport: delete own storage. Fixes #2302

This commit is contained in:
mattijs
2021-12-15 13:47:37 +00:00
parent ae708e67b5
commit 79c23b0d23

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2017-2020 OpenCFD Ltd. Copyright (C) 2017-2021 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -120,7 +120,8 @@ Foam::functionObjects::energyTransport::rho() const
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE,
false
), ),
mesh_, mesh_,
rho_ rho_
@ -156,7 +157,8 @@ Foam::functionObjects::energyTransport::Cp() const
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE,
false
), ),
mesh_, mesh_,
Cp_ Cp_
@ -186,7 +188,8 @@ Foam::functionObjects::energyTransport::kappa() const
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE,
false
), ),
mesh_, mesh_,
kappa_ kappa_
@ -228,7 +231,8 @@ Foam::functionObjects::energyTransport::energyTransport
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE,
false
), ),
mesh_, mesh_,
dimensionedScalar(dimEnergy/dimTemperature/dimVolume, Zero) dimensionedScalar(dimEnergy/dimTemperature/dimVolume, Zero)