Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
Mark Olesen
2023-06-12 13:59:19 +02:00
10 changed files with 18 additions and 11 deletions

View File

@ -174,7 +174,7 @@ Foam::tokenList Foam::functionEntries::evalEntry::evaluate
result.writeField(toks); result.writeField(toks);
} }
return std::move(toks); return tokenList(std::move(toks.tokens()));
} }

View File

@ -201,7 +201,8 @@ inline Foam::Matrix<Form, Type>::Matrix
) )
: :
mRows_(Mb.m()), mRows_(Mb.m()),
nCols_(Mb.n()) nCols_(Mb.n()),
v_(nullptr)
{ {
doAlloc(); doAlloc();
@ -223,7 +224,8 @@ inline Foam::Matrix<Form, Type>::Matrix
) )
: :
mRows_(Mb.m()), mRows_(Mb.m()),
nCols_(Mb.n()) nCols_(Mb.n()),
v_(nullptr)
{ {
doAlloc(); doAlloc();

View File

@ -29,8 +29,8 @@ License
#include "word.H" #include "word.H"
#include "debug.H" #include "debug.H"
#include <cctype> #include <cctype>
#include <sstream>
#include <cstdint> #include <cstdint>
#include <sstream>
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd. Copyright (C) 2022-2023 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -131,6 +131,9 @@ makeLESModel(dynamicKEqn);
#include "dynamicLagrangian.H" #include "dynamicLagrangian.H"
makeLESModel(dynamicLagrangian); makeLESModel(dynamicLagrangian);
#include "sigma.H"
makeLESModel(sigma);
#include "SpalartAllmarasDES.H" #include "SpalartAllmarasDES.H"
makeLESModel(SpalartAllmarasDES); makeLESModel(SpalartAllmarasDES);

View File

@ -179,7 +179,7 @@ void Foam::InjectedParticleDistributionInjection<CloudType>::initialise()
sumPow3 += pow3(diameters[particlei]); sumPow3 += pow3(diameters[particlei]);
} }
const scalar volume = sumPow3*mathematical::pi/16.0; const scalar volume = sumPow3*mathematical::pi/6.0;
sumVolume += volume; sumVolume += volume;
volumeFlowRate_[injectori] = volume/dTime; volumeFlowRate_[injectori] = volume/dTime;

View File

@ -119,7 +119,7 @@ void Foam::InjectedParticleInjection<CloudType>::initialise()
scalar sumVolume = 0; scalar sumVolume = 0;
forAll(volume, i) forAll(volume, i)
{ {
scalar vol = pow3(diameter_[i])*mathematical::pi/16.0; scalar vol = pow3(diameter_[i])*mathematical::pi/6.0;
volume[i] = vol; volume[i] = vol;
sumVolume += vol; sumVolume += vol;
} }

View File

@ -270,7 +270,8 @@ bool Foam::faceAreaWeightAMI::setNextFaces
return false; return false;
} }
const labelList& srcNbrFaces = this->srcPatch().faceFaces()[srcFacei]; const auto& srcPatch = this->srcPatch();
const labelList& srcNbrFaces = srcPatch.faceFaces()[srcFacei];
// Initialise tgtFacei // Initialise tgtFacei
tgtFacei = -1; tgtFacei = -1;
@ -361,6 +362,7 @@ bool Foam::faceAreaWeightAMI::setNextFaces
{ {
FatalErrorInFunction FatalErrorInFunction
<< "Unable to set target face for source face " << srcFacei << "Unable to set target face for source face " << srcFacei
<< " with centre: " << srcPatch.faceCentres()[srcFacei]
<< abort(FatalError); << abort(FatalError);
} }

View File

@ -155,7 +155,7 @@ bool Foam::vtk::writePointSet
if (parallel) if (parallel)
{ {
vtk::writeListParallel(format(), mesh.points(), pointLabels); vtk::writeListParallel(format.ref(), mesh.points(), pointLabels);
} }
else else
{ {

View File

@ -88,7 +88,7 @@ Foam::boundaryDataSurfaceReader::readField
{ {
refPtr<Time> timePtr(Time::New(argList::envGlobalPath())); refPtr<Time> timePtr(Time::New(argList::envGlobalPath()));
return readField<Type>(baseDir, timeDir, fieldName, avg); return readField<Type>(*timePtr, baseDir, timeDir, fieldName, avg);
} }

View File

@ -128,7 +128,7 @@ Foam::scalar Foam::ReversibleReaction
const scalarField& c const scalarField& c
) const ) const
{ {
return kfwd/max(this->Kc(p, T), 1e-6); return kfwd/max(this->Kc(p, T), VSMALL);
} }