diff --git a/META-INFO/api-info b/META-INFO/api-info index 7695e780f5..04d551248b 100644 --- a/META-INFO/api-info +++ b/META-INFO/api-info @@ -1,2 +1,2 @@ api=2012 -patch=0 +patch=210210 diff --git a/bin/paraFoam b/bin/paraFoam index 33c5216071..cde84ad314 100755 --- a/bin/paraFoam +++ b/bin/paraFoam @@ -7,7 +7,7 @@ # \\/ M anipulation | #------------------------------------------------------------------------------ # Copyright (C) 2011-2016 OpenFOAM Foundation -# Copyright (C) 2016-2020 OpenCFD Ltd. +# Copyright (C) 2016-2021 OpenCFD Ltd. #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM, distributed under GPL-3.0-or-later. @@ -140,8 +140,8 @@ do esac else echo "Ignore bad/invalid plugin-path: $pluginPath" 1>&2 - unset pluginPath fi + unset pluginPath ;; -block*) # Silently accepts -blockMesh @@ -238,8 +238,11 @@ then ;; esac - if [ -n "$pluginError" ] + if [ -z "$pluginError" ] then + # Ensure plugin is also in the lib-path + LD_LIBRARY_PATH="${PV_PLUGIN_PATH}:$LD_LIBRARY_PATH" + else cat<< NO_PLUGIN 1>&2 $pluginError See '${0##*/} -help-build' for more information diff --git a/etc/colourTables b/etc/colourTables index 0ffe648f9a..a388aaae0a 100644 --- a/etc/colourTables +++ b/etc/colourTables @@ -44,7 +44,7 @@ coldAndHot fire { // ParaView: Black-Body Radiation - interpolate rbg; + interpolate rgb; table ( @@ -70,7 +70,7 @@ rainbow greyscale { // ParaView: grayscale - interpolate rbg; + interpolate rgb; table ( @@ -82,7 +82,7 @@ greyscale xray { // ParaView: "X ray" - interpolate rbg; + interpolate rgb; table ( diff --git a/src/fileFormats/ensight/mesh/ensightMesh.C b/src/fileFormats/ensight/mesh/ensightMesh.C index 65c5e5bbd9..9faae73675 100644 --- a/src/fileFormats/ensight/mesh/ensightMesh.C +++ b/src/fileFormats/ensight/mesh/ensightMesh.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2016-2020 OpenCFD Ltd. + Copyright (C) 2016-2021 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -199,6 +199,9 @@ void Foam::ensightMesh::correct() if (returnReduce(!zn.empty(), orOp())) { + // Ensure full mesh coverage + cellSelection.resize(mesh_.nCells()); + cellSelection.set(zn); ensightCells& part = cellZoneParts_(zoneId); @@ -267,6 +270,7 @@ void Foam::ensightMesh::correct() if (returnReduce(!cellSelection.empty(), orOp())) { + // Ensure full mesh coverage excludeFace.resize(mesh_.nFaces()); const labelList& owner = mesh_.faceOwner(); @@ -288,6 +292,7 @@ void Foam::ensightMesh::correct() if (fzoneIds.size()) { + // Ensure full mesh coverage excludeFace.resize(mesh_.nFaces()); for (const polyPatch& p : mesh_.boundaryMesh()) diff --git a/src/randomProcesses/noise/noiseModels/noiseModel/noiseModel.C b/src/randomProcesses/noise/noiseModels/noiseModel/noiseModel.C index 82cd1e9c4f..efc36e3346 100644 --- a/src/randomProcesses/noise/noiseModels/noiseModel/noiseModel.C +++ b/src/randomProcesses/noise/noiseModels/noiseModel/noiseModel.C @@ -434,6 +434,11 @@ Foam::scalar Foam::noiseModel::RAf(const scalar f) const Foam::scalar Foam::noiseModel::gainA(const scalar f) const { + if (f < SMALL) + { + return 0; + } + return 20*log10(RAf(f)) - 20*log10(RAf(1000)); } @@ -456,6 +461,11 @@ Foam::scalar Foam::noiseModel::RBf(const scalar f) const Foam::scalar Foam::noiseModel::gainB(const scalar f) const { + if (f < SMALL) + { + return 0; + } + return 20*log10(RBf(f)) - 20*log10(RBf(1000)); } @@ -473,6 +483,11 @@ Foam::scalar Foam::noiseModel::RCf(const scalar f) const Foam::scalar Foam::noiseModel::gainC(const scalar f) const { + if (f < SMALL) + { + return 0; + } + return 20*log10(RCf(f)) - 20*log10(RCf(1000)); } @@ -492,6 +507,11 @@ Foam::scalar Foam::noiseModel::RDf(const scalar f) const Foam::scalar Foam::noiseModel::gainD(const scalar f) const { + if (f < SMALL) + { + return 0; + } + return 20*log10(RDf(f)); }