STYLE: reduced nesting on return branching

This commit is contained in:
Mark Olesen
2019-02-13 08:06:36 +01:00
committed by Andrew Heather
parent 4bc3b2b9cb
commit 60234ab007
208 changed files with 1052 additions and 1759 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -96,10 +96,8 @@ bool PDRkEpsilon::read()
C4_.readIfPresent(coeffDict_);
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2017 OpenFOAM Foundation
@ -141,10 +141,8 @@ bool Foam::surfaceTensionModels::liquidProperties::writeData
{
return os.good();
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation
@ -382,10 +382,8 @@ bool Foam::twoPhaseMixtureThermo::read()
{
return interfaceProperties::read();
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2014-2015 OpenFOAM Foundation
@ -143,15 +143,9 @@ bool Foam::incompressibleTwoPhaseInteractingMixture::read()
return true;
}
else
{
}
return false;
}
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -541,10 +541,8 @@ bool Foam::radiation::laserDTRM::read()
{
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -99,10 +99,8 @@ bool Foam::temperaturePhaseChangeTwoPhaseMixture::read()
{
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -112,7 +112,6 @@ Foam::thermoIncompressibleTwoPhaseMixture::thermoIncompressibleTwoPhaseMixture
// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
bool Foam::thermoIncompressibleTwoPhaseMixture::read()
{
if (incompressibleTwoPhaseMixture::read())
@ -131,10 +130,8 @@ bool Foam::thermoIncompressibleTwoPhaseMixture::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -239,15 +239,9 @@ bool Foam::incompressibleThreePhaseMixture::read()
return true;
}
else
{
}
return false;
}
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -116,10 +116,8 @@ bool Foam::phaseChangeTwoPhaseMixtures::Kunz::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -111,10 +111,8 @@ bool Foam::phaseChangeTwoPhaseMixtures::Merkle::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -162,10 +162,8 @@ bool Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -90,10 +90,8 @@ bool Foam::phase::read(const dictionary& phaseDict)
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -211,10 +211,8 @@ bool Foam::RASModels::kineticTheoryModel::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -211,10 +211,8 @@ bool Foam::RASModels::kineticTheoryModel::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -93,10 +93,8 @@ bool limitRefinementLevel
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -417,14 +417,12 @@ bool limitRefinementLevel
}
return true;
}
else
{
Info<< "Added no additional cells"
<< " to satisfy 1:" << limitDiff << " refinement level"
<< endl;
return false;
}
}

View File

@ -359,10 +359,8 @@ bool splitCell
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2012-2015 OpenFOAM Foundation
@ -149,14 +149,10 @@ bool Foam::conformalVoronoiMesh::regionIsInside
{
return meshableRegionA;
}
else
{
WarningInFunction
<< ""
<< endl;
WarningInFunction << endl;
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -89,10 +89,8 @@ inline bool Foam::CV2D::insertMirrorPoint
insertPoint(mirrorPoint, Vb::MIRROR_POINT);
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2015 OpenFOAM Foundation
@ -152,28 +152,14 @@ inline bool CGAL::indexedVertex<Gt, Vb>::pairPoint() const
template<class Gt, class Vb>
inline bool CGAL::indexedVertex<Gt, Vb>::ppMaster() const
{
if (type_ > index_)
{
return true;
}
else
{
return false;
}
return (type_ > index_);
}
template<class Gt, class Vb>
inline bool CGAL::indexedVertex<Gt, Vb>::ppSlave() const
{
if (type_ >= 0 && type_ < index_)
{
return true;
}
else
{
return false;
}
return (type_ >= 0 && type_ < index_);
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2015 OpenFOAM Foundation
@ -147,10 +147,8 @@ bool Foam::CV2D::insertPointPairAtIntersection
insertPointPair(vit, interPoint, interTri, interHitSurface);
return true;
}
else
{
return false;
}
}

View File

@ -253,15 +253,14 @@ bool Foam::checkWedges
return true;
}
else
{
if (report)
{
Info<< " All edges aligned with or perpendicular to "
<< "non-empty directions." << endl;
}
return false;
}
}
@ -468,8 +467,7 @@ bool Foam::checkCoupledPoints
return true;
}
else
{
if (report)
{
Info<< " Coupled point location match (average "
@ -477,7 +475,6 @@ bool Foam::checkCoupledPoints
}
return false;
}
}

View File

@ -324,10 +324,8 @@ bool isSliver
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -666,12 +666,9 @@ bool splitBorderEdges
return true;
}
else
{
Info<< "No edges to be split" <<nl << endl;
Info<< "No edges to be split" <<nl << endl;
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -59,10 +59,8 @@ bool Foam::Euler::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -69,10 +69,8 @@ bool Foam::EulerSI::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -107,10 +107,8 @@ bool Foam::ODESolver::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -105,10 +105,8 @@ bool Foam::RKCK45::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -110,10 +110,8 @@ bool Foam::RKDP45::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -106,10 +106,8 @@ bool Foam::RKF45::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -85,10 +85,8 @@ bool Foam::Rosenbrock12::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -99,10 +99,8 @@ bool Foam::Rosenbrock23::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -145,10 +145,8 @@ bool Foam::Rosenbrock34::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -83,10 +83,8 @@ bool Foam::SIBS::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -59,10 +59,8 @@ bool Foam::Trapezoid::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -91,10 +91,8 @@ bool Foam::rodas23::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -116,10 +116,8 @@ bool Foam::rodas34::resize()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -231,10 +231,8 @@ bool Foam::seulex::resize()
return true;
}
else
{
return false;
}
}

View File

@ -423,8 +423,7 @@ Foam::volumeType Foam::dynamicIndexedOctree<Type>::getVolumeType
// Content. Defer to shapes.
return volumeType(shapes_.getVolumeType(*this, sample));
}
else
{
// Empty node. Cannot have 'mixed' as its type since not divided
// up and has no items inside it.
FatalErrorInFunction
@ -435,9 +434,7 @@ Foam::volumeType Foam::dynamicIndexedOctree<Type>::getVolumeType
return volumeType::UNKNOWN;
}
}
else
{
FatalErrorInFunction
<< "Sample:" << sample << " at node:" << nodeI
<< " octant:" << octant
@ -446,7 +443,6 @@ Foam::volumeType Foam::dynamicIndexedOctree<Type>::getVolumeType
<< abort(FatalError);
return volumeType::UNKNOWN;
}
}

View File

@ -441,8 +441,7 @@ Foam::volumeType Foam::indexedOctree<Type>::getVolumeType
// Content. Defer to shapes.
return volumeType(shapes_.getVolumeType(*this, sample));
}
else
{
// Empty node. Cannot have 'mixed' as its type since not divided
// up and has no items inside it.
FatalErrorInFunction
@ -453,9 +452,7 @@ Foam::volumeType Foam::indexedOctree<Type>::getVolumeType
return volumeType::UNKNOWN;
}
}
else
{
FatalErrorInFunction
<< "Sample:" << sample << " at node:" << nodeI
<< " octant:" << octant
@ -464,7 +461,6 @@ Foam::volumeType Foam::indexedOctree<Type>::getVolumeType
<< abort(FatalError);
return volumeType::UNKNOWN;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -33,7 +33,7 @@ License
namespace Foam
{
defineTypeNameAndDebug(treeDataCell, 0);
defineTypeNameAndDebug(treeDataCell, 0);
}
@ -178,10 +178,8 @@ bool Foam::treeDataCell::overlaps
{
return cubeBb.overlaps(bbs_[index]);
}
else
{
return cubeBb.overlaps(calcCellBb(cellLabels_[index]));
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2013 OpenFOAM Foundation
@ -48,17 +48,15 @@ Foam::Dictionary<T>::Dictionary(const Dictionary& dict)
template<class T>
bool Foam::Dictionary<T>::erase(const word& keyword)
{
T* tPtr = this->remove(keyword);
T* ptr = this->remove(keyword);
if (tPtr)
if (ptr)
{
delete tPtr;
delete ptr;
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation
@ -66,10 +66,8 @@ bool Foam::Callback<CallbackType>::checkIn()
cbr_.append(static_cast<CallbackType*>(this));
return true;
}
else
{
return false;
}
}
@ -78,21 +76,12 @@ bool Foam::Callback<CallbackType>::checkOut()
{
if (Callback<CallbackType>::link::registered())
{
CallbackType* cbPtr = cbr_.remove(static_cast<CallbackType*>(this));
CallbackType* ptr = cbr_.remove(static_cast<CallbackType*>(this));
if (cbPtr)
{
return true;
return ptr;
}
else
{
return false;
}
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -248,10 +248,8 @@ Foam::Ostream& Foam::UOPstream::write(const char* str)
{
return write(nonWhiteChars);
}
else
{
return *this;
}
}

View File

@ -1,8 +1,8 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd |
\\ / O peration |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2018 OpenFOAM Foundation
@ -109,10 +109,8 @@ Foam::token Foam::functionEntries::ifeqEntry::expand
// Re-form as a string token so we can compare to string
return token(keyword, t.lineNumber());
}
else
{
return t;
}
}
@ -134,10 +132,8 @@ Foam::token Foam::functionEntries::ifeqEntry::expand
{
return expand(dict, t.stringToken(), t);
}
else
{
return t;
}
}
@ -173,10 +169,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
wordRe w2(t2.stringToken(), wordRe::DETECT);
return w2.match(t1.wordToken(), false);
}
else
{
return false;
}
case token::STRING:
if (eqType)
@ -190,11 +183,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
const wordRe w1(t1.stringToken(), wordRe::DETECT);
return w1.match(t2.wordToken(), false);
}
else
{
return false;
}
case token::VARIABLE:
case token::VERBATIMSTRING:
@ -206,10 +195,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
{
return t1.stringToken() == t2.wordToken();
}
else
{
return false;
}
case token::LABEL:
if (eqType)
@ -220,10 +206,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
{
return t1.labelToken() == t2.scalarToken();
}
else
{
return false;
}
case token::FLOAT_SCALAR:
if (eqType)
@ -234,10 +217,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
{
return t1.scalarToken() == t2.scalarToken();
}
else
{
return false;
}
case token::DOUBLE_SCALAR:
if (eqType)
@ -248,10 +228,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
{
return t1.scalarToken() == t2.scalarToken();
}
else
{
return false;
}
case token::COMPOUND:
return false;
@ -259,6 +236,7 @@ bool Foam::functionEntries::ifeqEntry::equalToken
case token::ERROR:
return eqType;
}
return false;
}

View File

@ -102,10 +102,8 @@ bool Foam::functionObjects::regionFunctionObject::clearObject
return false;
}
}
else
{
return true;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -247,6 +247,7 @@ Foam::label Foam::regIOobject::addWatch(const fileName& f)
watchIndices_.append(fileHandler().addWatch(f));
}
}
return index;
}
@ -355,10 +356,8 @@ bool Foam::regIOobject::upToDate(const regIOobject& a) const
// My event number higher than a
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2018 OpenFOAM Foundation
@ -78,10 +78,8 @@ bool Foam::regIOobject::readHeaderOk
{
return fileHandler().read(*this, masterOnly, format, typeName);
}
else
{
return false;
}
}
@ -296,10 +294,8 @@ bool Foam::regIOobject::readIfModified()
return read();
}
else
{
return false;
}
}

View File

@ -980,10 +980,8 @@ Foam::word Foam::GeometricField<Type, PatchField, GeoMesh>::select
{
return this->name() + "Final";
}
else
{
return this->name();
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2017-2018 OpenFOAM Foundation
@ -1052,10 +1052,8 @@ Foam::fileName Foam::fileOperation::processorsPath
return dir.path()/procsDir;
}
else
{
return fileName::null;
}
}

View File

@ -109,10 +109,8 @@ bool interpolate
return true;
}
}
else
{
return true;
}
}
@ -170,8 +168,8 @@ bool Xinterpolate
vector D = p2 - p1;
scalar lamda = (n.x() - p1.x())/D.x();
n.y() = p1.y() + lamda*D.y();
return false;
return false;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -688,10 +688,8 @@ bool Foam::GAMGAgglomeration::checkRestriction
return false;
}
else
{
return true;
}
}

View File

@ -800,10 +800,8 @@ const Foam::fileName& Foam::polyMesh::dbDir() const
{
return parent().dbDir();
}
else
{
return objectRegistry::dbDir();
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2012-2016 OpenFOAM Foundation
@ -157,15 +157,13 @@ bool Foam::polyMesh::checkFaceOrthogonality
return true;
}
else
{
if (debug || report)
{
Info<< " Non-orthogonality check OK." << endl;
}
return false;
}
}
@ -259,15 +257,13 @@ bool Foam::polyMesh::checkFaceSkewness
return true;
}
else
{
if (debug || report)
{
Info<< " Max skewness = " << maxSkew << " OK." << endl;
}
return false;
}
}
@ -395,15 +391,14 @@ bool Foam::polyMesh::checkEdgeAlignment
return true;
}
else
{
if (debug || report)
{
Info<< " All edges aligned with or perpendicular to "
<< "non-empty directions." << endl;
}
return false;
}
}
@ -475,16 +470,12 @@ bool Foam::polyMesh::checkCellDeterminant
return true;
}
else
{
if (debug || report)
{
Info<< " Cell determinant check OK." << endl;
}
return false;
}
return false;
}
@ -570,16 +561,12 @@ bool Foam::polyMesh::checkFaceWeight
return true;
}
else
{
if (debug || report)
{
Info<< " Face interpolation weight check OK." << endl;
}
return false;
}
return false;
}
@ -657,16 +644,12 @@ bool Foam::polyMesh::checkVolRatio
return true;
}
else
{
if (debug || report)
{
Info<< " Face volume ratio check OK." << endl;
}
return false;
}
return false;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2019 OpenFOAM Foundation
@ -488,15 +488,13 @@ bool Foam::polyMeshTetDecomposition::checkFaceTets
return true;
}
else
{
if (report)
{
Info<< " Face tets OK." << endl;
}
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -278,10 +278,8 @@ bool Foam::oldCyclicPolyPatch::getGeometricHalves
return false;
}
else
{
return true;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -88,8 +88,7 @@ bool Foam::primitiveMesh::checkClosedBoundary
return true;
}
else
{
if (debug || report)
{
Info<< " Boundary openness " << openness << " OK."
@ -97,7 +96,6 @@ bool Foam::primitiveMesh::checkClosedBoundary
}
return false;
}
}
@ -297,8 +295,7 @@ bool Foam::primitiveMesh::checkFaceAreas
return true;
}
else
{
if (debug || report)
{
Info<< " Minimum face area = " << minArea
@ -307,7 +304,6 @@ bool Foam::primitiveMesh::checkFaceAreas
}
return false;
}
}
@ -366,8 +362,7 @@ bool Foam::primitiveMesh::checkCellVolumes
return true;
}
else
{
if (debug || report)
{
Info<< " Min volume = " << minVolume
@ -377,7 +372,6 @@ bool Foam::primitiveMesh::checkCellVolumes
}
return false;
}
}
@ -479,15 +473,13 @@ bool Foam::primitiveMesh::checkFaceOrthogonality
return true;
}
else
{
if (debug || report)
{
Info<< " Non-orthogonality check OK." << endl;
}
return false;
}
}
@ -581,15 +573,13 @@ bool Foam::primitiveMesh::checkFacePyramids
return true;
}
else
{
if (debug || report)
{
Info<< " Face pyramids OK." << endl;
}
return false;
}
}
@ -654,15 +644,13 @@ bool Foam::primitiveMesh::checkFaceSkewness
return true;
}
else
{
if (debug || report)
{
Info<< " Max skewness = " << maxSkew << " OK." << endl;
}
return false;
}
}
@ -734,15 +722,13 @@ bool Foam::primitiveMesh::checkFaceAngles
return true;
}
else
{
if (debug || report)
{
Info<< " All angles in faces OK." << endl;
}
return false;
}
}
@ -839,15 +825,13 @@ bool Foam::primitiveMesh::checkFaceFlatness
return true;
}
else
{
if (debug || report)
{
Info<< " All face flatness OK." << endl;
}
return false;
}
}
@ -950,16 +934,12 @@ bool Foam::primitiveMesh::checkConcaveCells
return true;
}
else
{
if (debug || report)
{
Info<< " Concave cell check OK." << endl;
}
return false;
}
return false;
}
@ -1115,15 +1095,13 @@ bool Foam::primitiveMesh::checkUpperTriangular
return true;
}
else
{
if (debug || report)
{
Info<< " Upper triangular ordering OK." << endl;
}
return false;
}
}
@ -1213,15 +1191,13 @@ bool Foam::primitiveMesh::checkCellsZipUp
return true;
}
else
{
if (debug || report)
{
Info<< " Topological cell zip-up check OK." << endl;
}
return false;
}
}
@ -1286,15 +1262,13 @@ bool Foam::primitiveMesh::checkFaceVertices
return true;
}
else
{
if (debug || report)
{
Info<< " Face vertices OK." << endl;
}
return false;
}
}
@ -1358,15 +1332,13 @@ bool Foam::primitiveMesh::checkPoints
return true;
}
else
{
if (debug || report)
{
Info<< " Point usage OK." << endl;
}
return false;
}
}
@ -1670,15 +1642,13 @@ bool Foam::primitiveMesh::checkFaceFaces
return false; //return true;
}
else
{
if (debug || report)
{
Info<< " Face-face connectivity OK." << endl;
}
return false;
}
}
@ -1850,66 +1820,63 @@ bool Foam::primitiveMesh::checkConcaveCells
bool Foam::primitiveMesh::checkTopology(const bool report) const
{
label noFailedChecks = 0;
label nFailedChecks = 0;
if (checkPoints(report)) noFailedChecks++;
if (checkUpperTriangular(report)) noFailedChecks++;
if (checkCellsZipUp(report)) noFailedChecks++;
if (checkFaceVertices(report)) noFailedChecks++;
if (checkFaceFaces(report)) noFailedChecks++;
if (checkPoints(report)) ++nFailedChecks;
if (checkUpperTriangular(report)) ++nFailedChecks;
if (checkCellsZipUp(report)) ++nFailedChecks;
if (checkFaceVertices(report)) ++nFailedChecks;
if (checkFaceFaces(report)) ++nFailedChecks;
if (noFailedChecks == 0)
if (nFailedChecks)
{
if (debug || report)
{
Info<< " Failed " << nFailedChecks
<< " mesh topology checks." << endl;
}
return true;
}
if (debug || report)
{
Info<< " Mesh topology OK." << endl;
}
return false;
}
else
{
if (debug || report)
{
Info<< " Failed " << noFailedChecks
<< " mesh topology checks." << endl;
}
return true;
}
}
bool Foam::primitiveMesh::checkGeometry(const bool report) const
{
label noFailedChecks = 0;
label nFailedChecks = 0;
if (checkClosedBoundary(report)) noFailedChecks++;
if (checkClosedCells(report)) noFailedChecks++;
if (checkFaceAreas(report)) noFailedChecks++;
if (checkCellVolumes(report)) noFailedChecks++;
if (checkFaceOrthogonality(report)) noFailedChecks++;
if (checkFacePyramids(report)) noFailedChecks++;
if (checkFaceSkewness(report)) noFailedChecks++;
if (checkClosedBoundary(report)) ++nFailedChecks;
if (checkClosedCells(report)) ++nFailedChecks;
if (checkFaceAreas(report)) ++nFailedChecks;
if (checkCellVolumes(report)) ++nFailedChecks;
if (checkFaceOrthogonality(report)) ++nFailedChecks;
if (checkFacePyramids(report)) ++nFailedChecks;
if (checkFaceSkewness(report)) ++nFailedChecks;
if (noFailedChecks == 0)
if (nFailedChecks)
{
if (debug || report)
{
Info<< " Mesh geometry OK." << endl;
}
return false;
}
else
{
if (debug || report)
{
Info<< " Failed " << noFailedChecks
Info<< " Failed " << nFailedChecks
<< " mesh geometry checks." << endl;
}
return true;
}
if (debug || report)
{
Info<< " Mesh geometry OK." << endl;
}
return false;
}
@ -1920,27 +1887,25 @@ bool Foam::primitiveMesh::checkMesh(const bool report) const
InfoInFunction << "Checking primitiveMesh" << endl;
}
label noFailedChecks = checkTopology(report) + checkGeometry(report);
label nFailedChecks = checkTopology(report) + checkGeometry(report);
if (noFailedChecks == 0)
if (nFailedChecks)
{
if (debug || report)
{
Info<< " Failed " << nFailedChecks
<< " mesh checks." << endl;
}
return true;
}
if (debug || report)
{
Info<< "Mesh OK." << endl;
}
return false;
}
else
{
if (debug || report)
{
Info<< " Failed " << noFailedChecks
<< " mesh checks." << endl;
}
return true;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -87,17 +87,14 @@ bool Foam::primitiveMesh::checkEdgeLength
return true;
}
else
{
if (report)
{
Info<< " Min/max edge length = "
<< sqrt(minLenSqr) << " " << sqrt(maxLenSqr)
<< " OK." << endl;
<< sqrt(minLenSqr) << " " << sqrt(maxLenSqr) << " OK." << endl;
}
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation
@ -101,10 +101,8 @@ bool Foam::primitiveMesh::checkPointNearness
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2017-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2015 OpenFOAM Foundation
@ -158,10 +158,8 @@ EnumType Foam::NamedEnum<EnumType, nEnum>::lookupOrDefault
{
return lookup(key, dict);
}
else
{
return deflt;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -445,10 +445,8 @@ bool Foam::globalIndexAndTransform::uniqueTransform
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015-2017 OpenFOAM Foundation
@ -95,10 +95,8 @@ bool Foam::EddyDiffusivity<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2014-2015 OpenFOAM Foundation
@ -92,10 +92,8 @@ bool buoyantKEpsilon<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}
@ -123,10 +121,8 @@ buoyantKEpsilon<BasicTurbulenceModel>::kSource() const
{
return -fvm::SuSp(Gcoef(), this->k_);
}
else
{
return kEpsilon<BasicTurbulenceModel>::kSource();
}
}
@ -150,10 +146,8 @@ buoyantKEpsilon<BasicTurbulenceModel>::epsilonSource() const
return -fvm::SuSp(this->C1_*tanh(mag(v)/u)*Gcoef(), this->epsilon_);
}
else
{
return kEpsilon<BasicTurbulenceModel>::epsilonSource();
}
}

View File

@ -200,10 +200,8 @@ bool LamBremhorstKE::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -363,10 +363,8 @@ bool LienCubicKE::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -249,10 +249,8 @@ bool LienLeschziner::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -248,10 +248,8 @@ bool ShihQuadraticKE::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -588,10 +588,8 @@ bool kkLOmega::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -231,10 +231,8 @@ bool qZeta::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -115,10 +115,8 @@ bool NicenoKEqn<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -92,10 +92,8 @@ bool SmagorinskyZhang<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -92,10 +92,8 @@ bool continuousGasKEqn<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2016 OpenFOAM Foundation
@ -126,10 +126,8 @@ bool LaheyKEpsilon<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation
@ -107,10 +107,8 @@ bool continuousGasKEpsilon<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2014-2017 OpenFOAM Foundation
@ -93,12 +93,11 @@ bool kOmegaSSTSato<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}
template<class BasicTurbulenceModel>
const PhaseCompressibleTurbulenceModel
<

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2017, 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2015 OpenFOAM Foundation
@ -473,10 +473,8 @@ bool kOmegaSSTBase<BasicEddyViscosityModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -166,10 +166,8 @@ bool SpalartAllmarasDDES<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -438,10 +438,8 @@ bool SpalartAllmarasDES<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2015 OpenFOAM Foundation
@ -245,10 +245,8 @@ bool SpalartAllmarasIDDES<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
@ -168,10 +168,8 @@ bool kOmegaSSTDDES<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
@ -169,10 +169,8 @@ bool kOmegaSSTDES<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
@ -244,10 +244,8 @@ bool kOmegaSSTIDDES<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -134,10 +134,8 @@ bool DeardorffDiffStress<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation
@ -192,10 +192,8 @@ bool Foam::LESModel<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2015 OpenFOAM Foundation
@ -52,12 +52,10 @@ inline bool Foam::LESModels::smoothDelta::deltaData::update
// Something changed. Let caller know.
return true;
}
else
{
// Neighbour is not too big for me or change is too small
// Nothing changed.
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation
@ -85,10 +85,8 @@ bool LESeddyViscosity<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -133,10 +133,8 @@ bool Smagorinsky<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015-2017 OpenFOAM Foundation
@ -164,10 +164,8 @@ bool WALE<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -213,10 +213,8 @@ bool dynamicKEqn<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -145,10 +145,8 @@ bool dynamicLagrangian<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -133,10 +133,8 @@ bool kEqn<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -235,10 +235,8 @@ bool LRR<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -229,10 +229,8 @@ bool LaunderSharmaKE<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013-2017 OpenFOAM Foundation
@ -182,10 +182,8 @@ bool Foam::RASModel<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -232,10 +232,8 @@ bool RNGkEpsilon<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015-2016 OpenFOAM Foundation
@ -245,10 +245,8 @@ bool SSG<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -284,10 +284,8 @@ bool SpalartAllmaras<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -212,10 +212,8 @@ bool kEpsilon<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
@ -172,10 +172,8 @@ bool kOmega<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2016-2017 OpenFOAM Foundation
@ -511,10 +511,8 @@ bool kOmegaSSTLM<BasicTurbulenceModel>::read()
return true;
}
else
{
return false;
}
}

Some files were not shown because too many files have changed in this diff Show More