mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: construct cylindrical from origin, axis (issue #863)
This commit is contained in:
@ -24,6 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "cylindricalCS.H"
|
#include "cylindricalCS.H"
|
||||||
|
#include "cylindricalRotation.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * 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
|
Foam::coordSystem::cylindrical::cylindrical
|
||||||
(
|
(
|
||||||
const point& origin,
|
const point& origin,
|
||||||
@ -118,7 +145,7 @@ Foam::coordSystem::cylindrical::cylindrical
|
|||||||
const vector& dirn
|
const vector& dirn
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
coordinateSystem(origin, axis, dirn)
|
cylindrical(word::null, origin, axis, dirn)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -126,7 +126,13 @@ public:
|
|||||||
//- Construct from origin and rotation
|
//- Construct from origin and rotation
|
||||||
cylindrical(const point& origin, const coordinateRotation& crot);
|
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
|
cylindrical
|
||||||
(
|
(
|
||||||
const point& origin,
|
const point& origin,
|
||||||
@ -134,7 +140,7 @@ public:
|
|||||||
const vector& dirn
|
const vector& dirn
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from origin and 2 axes
|
//- Construct from origin and two axes
|
||||||
cylindrical
|
cylindrical
|
||||||
(
|
(
|
||||||
const word& name,
|
const word& name,
|
||||||
|
|||||||
Reference in New Issue
Block a user