Commit d7fc5f6f authored by Mark Olesen's avatar Mark Olesen
Browse files

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

parent f426c510
......@@ -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)
{}
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment