ENH: add global identity cartesian and cylindrical systems (#863)

This commit is contained in:
Mark Olesen
2019-07-19 08:33:04 +02:00
committed by Andrew Heather
parent 55b1c57275
commit 6e17bf616e
4 changed files with 21 additions and 3 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd. \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011-2014 OpenFOAM Foundation | Copyright (C) 2011-2014 OpenFOAM Foundation
@ -40,6 +40,9 @@ namespace coordSystem
} }
const Foam::coordSystem::cartesian Foam::coordSystem::cartesian::null;
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::coordSystem::cartesian::cartesian() Foam::coordSystem::cartesian::cartesian()

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd. \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011-2013 OpenFOAM Foundation | Copyright (C) 2011-2013 OpenFOAM Foundation
@ -66,6 +66,12 @@ public:
TypeNameNoDebug("cartesian"); TypeNameNoDebug("cartesian");
// Static Members
//- Global (identity) cartesian coordinate system
static const cartesian null;
// Constructors // Constructors
//- Construct null. This is an identity coordinateSystem. //- Construct null. This is an identity coordinateSystem.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd. \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation | Copyright (C) 2011-2016 OpenFOAM Foundation
@ -41,6 +41,9 @@ namespace coordSystem
} }
const Foam::coordSystem::cylindrical Foam::coordSystem::cylindrical::null;
// * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * //
namespace Foam namespace Foam

View File

@ -105,6 +105,12 @@ public:
TypeNameNoDebug("cylindrical"); TypeNameNoDebug("cylindrical");
// Static Members
//- Global (identity) cylindrical coordinate system
static const cylindrical null;
// Constructors // Constructors
//- Construct null (identity coordinateSystem) //- Construct null (identity coordinateSystem)