blockMesh: Angle-and-axis specification for arc edges
Arc-edges can now be specified with a sector angle (in degrees) and an
axis of the circle of which the arc forms a part. The new syntax is as
follows:
edges
(
arc <vertex-0> <vertex-1> <angle> (<axis-x> <axis-y> <axis-z>)
);
This is often more convenient than the alternative specification where a
third third point somewhere in the arc is given; it usually does not
require any additional calculation on the part of the user, and multiple
entries are very likely to be identical.
Which specification is used depends on the form of the entry that comes
after the two vertices. If the entry is a vector then it is assumed to
be a point in the arc; if it is scalar then is is taken to be the angle
and the axis is assumed to follow.
For example, to put a 90 degree arc between the vertices 12 and 13, at
(1 0 0) and (0 1 0) respectively, the following specification can now be
used:
edges
(
arc 12 13 90.0 (0 0 1)
);
This is equivalent to the existing point-in-arc speficiation below:
edges
(
arc 12 13 (0.707107 0.707107 0)
);
An edge's points are ordered on the perimeter of the circle according to
a right-hand screw rule on the given axis. Changing the the side of the
edge on which the arc is defined can therefore be achieved by reversing
either the edge or the direction of the axis.
If the given axis is not perpendicular to the line between the vertices,
then the arc gains some axial length and becomes a helix.
This commit is contained in:
@ -76,22 +76,22 @@ blocks
|
||||
|
||||
edges
|
||||
(
|
||||
arc 0 5 (0.469846 0.17101 -0.5)
|
||||
arc 5 10 (0.17101 0.469846 -0.5)
|
||||
arc 1 4 (0.939693 0.34202 -0.5)
|
||||
arc 4 9 (0.34202 0.939693 -0.5)
|
||||
arc 19 24 (0.469846 0.17101 0.5)
|
||||
arc 24 29 (0.17101 0.469846 0.5)
|
||||
arc 20 23 (0.939693 0.34202 0.5)
|
||||
arc 23 28 (0.34202 0.939693 0.5)
|
||||
arc 11 16 (-0.469846 0.17101 -0.5)
|
||||
arc 16 10 (-0.17101 0.469846 -0.5)
|
||||
arc 12 15 (-0.939693 0.34202 -0.5)
|
||||
arc 15 9 (-0.34202 0.939693 -0.5)
|
||||
arc 30 35 (-0.469846 0.17101 0.5)
|
||||
arc 35 29 (-0.17101 0.469846 0.5)
|
||||
arc 31 34 (-0.939693 0.34202 0.5)
|
||||
arc 34 28 (-0.34202 0.939693 0.5)
|
||||
arc 0 5 45.0 (0 0 1)
|
||||
arc 5 10 45.0 (0 0 1)
|
||||
arc 1 4 45.0 (0 0 1)
|
||||
arc 4 9 45.0 (0 0 1)
|
||||
arc 19 24 45.0 (0 0 1)
|
||||
arc 24 29 45.0 (0 0 1)
|
||||
arc 20 23 45.0 (0 0 1)
|
||||
arc 23 28 45.0 (0 0 1)
|
||||
arc 11 16 45.0 (0 0 -1)
|
||||
arc 16 10 45.0 (0 0 -1)
|
||||
arc 12 15 45.0 (0 0 -1)
|
||||
arc 15 9 45.0 (0 0 -1)
|
||||
arc 30 35 45.0 (0 0 -1)
|
||||
arc 35 29 45.0 (0 0 -1)
|
||||
arc 31 34 45.0 (0 0 -1)
|
||||
arc 34 28 45.0 (0 0 -1)
|
||||
);
|
||||
|
||||
boundary
|
||||
|
||||
Reference in New Issue
Block a user