From 73646bb15b8ac1cfd9fec6ad5287259e7e8a9700 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 13 Mar 2018 08:54:39 +0000 Subject: [PATCH 1/5] BUG: removed incorrect code from cyclicFaPatch referring to cyclicPolyPatch. See #761 --- .../faMesh/faPatches/constraint/cyclic/cyclicFaPatch.C | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/finiteArea/faMesh/faPatches/constraint/cyclic/cyclicFaPatch.C b/src/finiteArea/faMesh/faPatches/constraint/cyclic/cyclicFaPatch.C index b8f362f457..0b6e933742 100644 --- a/src/finiteArea/faMesh/faPatches/constraint/cyclic/cyclicFaPatch.C +++ b/src/finiteArea/faMesh/faPatches/constraint/cyclic/cyclicFaPatch.C @@ -281,13 +281,6 @@ Foam::tmp Foam::cyclicFaPatch::delta() const } -Foam::label Foam::cyclicPolyPatch::neighbPatchID() const -{ - NotImplemented; - return -1; -} - - Foam::tmp Foam::cyclicFaPatch::interfaceInternalField ( const labelUList& internalData From b0c5608b62799df82be55d89c1e78fc6f1ada6e3 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 13 Mar 2018 12:32:16 +0000 Subject: [PATCH 2/5] TUT: Corrected turbulence Ck value - see #753 --- .../LES/channel395DFSEM/constant/turbulenceProperties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/constant/turbulenceProperties b/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/constant/turbulenceProperties index 924410797a..65cee397d3 100644 --- a/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/constant/turbulenceProperties +++ b/tutorials/incompressible/pimpleFoam/LES/channel395DFSEM/constant/turbulenceProperties @@ -25,7 +25,7 @@ LES kEqnCoeffs { Ce 1.048; - Ck 0.07; // 0.094; + Ck 0.02654; // set to approximate a Cs of 0.065 } printCoeffs on; From 40e7d389d868ff9a5f855f3a50fe69c44e4bc550 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 13 Mar 2018 12:48:16 +0000 Subject: [PATCH 3/5] ENH: DPMFoam - extended RAS model selection. See #743 --- .../DPMFoam/DPMTurbulenceModels/DPMTurbulenceModels.C | 6 ++++++ .../turbulenceModels/RAS/realizableKE/realizableKE.C | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/applications/solvers/lagrangian/DPMFoam/DPMTurbulenceModels/DPMTurbulenceModels.C b/applications/solvers/lagrangian/DPMFoam/DPMTurbulenceModels/DPMTurbulenceModels.C index ae345c2066..d2c52d0204 100644 --- a/applications/solvers/lagrangian/DPMFoam/DPMTurbulenceModels/DPMTurbulenceModels.C +++ b/applications/solvers/lagrangian/DPMFoam/DPMTurbulenceModels/DPMTurbulenceModels.C @@ -70,6 +70,12 @@ makeLaminarModel(Stokes); #include "kEpsilon.H" makeRASModel(kEpsilon); +#include "realizableKE.H" +makeRASModel(realizableKE); + +#include "kOmegaSST.H" +makeRASModel(kOmegaSST); + #include "Smagorinsky.H" makeLESModel(Smagorinsky); diff --git a/src/TurbulenceModels/turbulenceModels/RAS/realizableKE/realizableKE.C b/src/TurbulenceModels/turbulenceModels/RAS/realizableKE/realizableKE.C index 7bfeabc0ab..0c974ff84f 100644 --- a/src/TurbulenceModels/turbulenceModels/RAS/realizableKE/realizableKE.C +++ b/src/TurbulenceModels/turbulenceModels/RAS/realizableKE/realizableKE.C @@ -192,7 +192,7 @@ realizableKE::realizableKE ( IOobject ( - "k", + IOobject::groupName("k", U.group()), this->runTime_.timeName(), this->mesh_, IOobject::MUST_READ, @@ -204,7 +204,7 @@ realizableKE::realizableKE ( IOobject ( - "epsilon", + IOobject::groupName("epsilon", U.group()), this->runTime_.timeName(), this->mesh_, IOobject::MUST_READ, From 4df782615ce0186250e76f4f7390938a5021f478 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 13 Mar 2018 17:58:02 +0100 Subject: [PATCH 4/5] BUG: surface proxy zone handling with dangling? reference (closes #757) - using const reference to temporary was failing. Remedy by using a direct copy, which is a reasonable solution since surfZone content is quite minimal. --- src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C | 4 ++-- src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/stl/STLsurfaceFormat.C | 4 ++-- src/surfMesh/surfaceFormats/tri/TRIsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/vtp/VTPsurfaceFormat.C | 2 +- src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormat.C | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C b/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C index 299e9a5333..e86bcc7962 100644 --- a/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C +++ b/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.C @@ -312,7 +312,7 @@ void Foam::fileFormats::AC3DsurfaceFormat::write const pointField& pointLst = surf.points(); const UList& faceLst = surf.surfFaces(); - const UList& zones = + const surfZoneList zones = ( surf.surfZones().size() ? surf.surfZones() @@ -393,7 +393,7 @@ void Foam::fileFormats::AC3DsurfaceFormat::write if (zoneLst.size() <= 1) { - const List& zones = + const surfZoneList zones = ( zoneLst.size() ? zoneLst diff --git a/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C b/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C index b834b4ae5f..7225a47cc4 100644 --- a/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C +++ b/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormat.C @@ -169,7 +169,7 @@ void Foam::fileFormats::FLMAsurfaceFormat::write const UList