mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: simplify coordinate rotation specification (#2505)
- can specify rotations that are not "axes" in a compact form:
transform
{
origin (0 0 0);
rotation none;
}
transform
{
origin (0 0 0);
rotation axisAngle;
axis (0 0 1);
angle 45;
}
An expanded dictionary form also remains possible:
transform
{
origin (0 0 0);
rotation
{
type axisAngle;
axis (0 0 1);
angle 45;
}
}
STYLE: verbose deprecation for "coordinateRotation" keyword
- the "coordinateRotation" keyword was replaced by the "rotation"
keyword (OpenFOAM-v1812 and later) but was handled silently.
Now elevated to non-silent.
STYLE: alias lookups "axesRotation", "EulerRotation", "STARCDRotation"
- these warn and report the equivalent short form, which aids in
upgrading. Previously had silent lookups.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -174,24 +174,16 @@ surfaces
|
||||
interpolatedPlane
|
||||
{
|
||||
type plane; // always triangulated
|
||||
basePoint (0 0 0);
|
||||
normalVector (0.1 0.1 1);
|
||||
interpolate true;
|
||||
|
||||
// Make plane relative to the coordinateSystem (Cartesian)
|
||||
coordinateSystem
|
||||
{
|
||||
origin (0.0501 0.0501 0.005);
|
||||
|
||||
// Add a coordinate rotation
|
||||
// (required, so here one that doesn't change anything)
|
||||
coordinateRotation
|
||||
{
|
||||
type axesRotation;
|
||||
e1 (1 0 0);
|
||||
e2 (0 1 0);
|
||||
}
|
||||
rotation none;
|
||||
}
|
||||
basePoint (0 0 0);
|
||||
normalVector (0.1 0.1 1);
|
||||
interpolate true;
|
||||
}
|
||||
|
||||
walls_constant
|
||||
|
||||
Reference in New Issue
Block a user