From 796e1cb2e0a631f7611b0e319fe39bdbd7a88c76 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Wed, 6 Apr 2022 12:24:42 +0100 Subject: [PATCH] cyclicTransform: Added null constructor to permit storage in a list --- .../polyPatches/constraint/cyclic/cyclicTransform.C | 8 +++++++- .../polyPatches/constraint/cyclic/cyclicTransform.H | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.C index 49498dfcc3..1de2aea97c 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2020-2021 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -189,6 +189,12 @@ bool Foam::cyclicTransform::set // * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * // +Foam::cyclicTransform::cyclicTransform() +: + cyclicTransform(true) +{} + + Foam::cyclicTransform::cyclicTransform ( const bool defaultIsNone diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.H b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.H index 1458aa8d3b..9da4aaf3ae 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.H +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicTransform.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2020 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -114,6 +114,9 @@ public: // Constructors + // Transformation set NONE + cyclicTransform(); + // Transformation set as UNSPECIFIED or NONE cyclicTransform(const bool defaultIsNone);