mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: support direct specification of coordinate rotation "none"
- Can specify
```
transform
{
origin (1 2 3);
rotation none;
}
```
instead of the longer form
```
transform
{
origin (1 2 3);
e1 (1 0 0);
e3 (0 0 1);
}
```
COMPAT: remove old (pre-1812) Euler and STARCD keywords
- use "angles", remove old compat name "rotation"
as clutter and possible confusion with "coordinate rotation"
STYLE: remove coordinate rotation move constructors
- an unnecessary holdover from older code.
This commit is contained in:
@ -35,6 +35,7 @@ Description
|
||||
#include "Time.H"
|
||||
#include "coordinateSystems.H"
|
||||
#include "identityRotation.H"
|
||||
#include "cartesianCS.H"
|
||||
#include "indirectCS.H"
|
||||
#include "Fstream.H"
|
||||
#include "IOstreams.H"
|
||||
@ -58,14 +59,15 @@ void basicTests(const coordinateSystem& cs)
|
||||
{
|
||||
cs.writeEntry(cs.name(), Info);
|
||||
|
||||
if (isA<coordSystem::indirect>(cs))
|
||||
if (const auto* cartptr = isA<coordSystem::cartesian>(cs))
|
||||
{
|
||||
Info<< "indirect from:" << nl;
|
||||
dynamicCast<const coordSystem::indirect>(cs).cs()
|
||||
.writeEntry(cs.name(), Info);
|
||||
if (!cartptr->active())
|
||||
{
|
||||
Info<< "inactive cartesian = " << (*cartptr)
|
||||
<< " with: " << (*cartptr).R() << nl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Info<< "rotation: " << cs.R() << nl;
|
||||
|
||||
List<point> testPoints
|
||||
|
||||
Reference in New Issue
Block a user