ENH: construct cylindrical from origin, axis (issue #863)

This commit is contained in:
Mark Olesen
2018-11-08 13:12:23 +01:00
parent f426c510dd
commit d7fc5f6f66
2 changed files with 36 additions and 3 deletions

View File

@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "cylindricalCS.H"
#include "cylindricalRotation.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -111,6 +112,32 @@ Foam::coordSystem::cylindrical::cylindrical
{}
Foam::coordSystem::cylindrical::cylindrical
(
const point& origin,
const vector& axis
)
:
cylindrical(word::null, origin, axis)
{}
Foam::coordSystem::cylindrical::cylindrical
(
const word& name,
const point& origin,
const vector& axis
)
:
coordinateSystem
(
name,
origin,
coordinateRotations::cylindrical(axis)
)
{}
Foam::coordSystem::cylindrical::cylindrical
(
const point& origin,
@ -118,7 +145,7 @@ Foam::coordSystem::cylindrical::cylindrical
const vector& dirn
)
:
coordinateSystem(origin, axis, dirn)
cylindrical(word::null, origin, axis, dirn)
{}

View File

@ -126,7 +126,13 @@ public:
//- Construct from origin and rotation
cylindrical(const point& origin, const coordinateRotation& crot);
//- Construct from origin and 2 axes
//- Construct from origin and single axis
cylindrical(const point& origin, const vector& axis);
//- Construct from origin and single axis
cylindrical(const word& name, const point& origin, const vector& axis);
//- Construct from origin and two axes
cylindrical
(
const point& origin,
@ -134,7 +140,7 @@ public:
const vector& dirn
);
//- Construct from origin and 2 axes
//- Construct from origin and two axes
cylindrical
(
const word& name,