tme

tme smooths the interior nodes of a face or a block by the Thomas-Middlecoff method, which carries the spacing of the region’s boundary into its interior and turns the mesh lines toward a right angle at the boundary.

Syntax

tme imin jmin kmin imax jmax kmax iterations min_change weight

The six numbers are one region, as for lin: a face or a block. The three numbers are those of relax: the largest number of iterations, a positive integer; min_change, zero or more, which ends the run early once no coordinate moves by more than it; and the weight, above 0 and at most 1.

What it does

tme solves the same equations as relax with one control term in each direction of the mesh. James computes the control terms once, before the first iteration, from the spacing of the nodes along the region’s fixed sides, and carries them across the region. Where the sides are spaced evenly, tme gives the result of relax; where they are clustered, the clustering reaches into the interior instead of being evened out. The boundary nodes never move, and a face node stays on the surfaces that constrain it. In a block the control terms come from the lines on the faces that run in each direction, carried into the block section by section.

When James applies it

Step 12 for a face, after the faces relax smooths at step 11, and step 18 for a block, after step 17. Commands at one step run in the order you wrote them. Step 13, after steps 11 and 12, lays out and interpolates again what a face’s smoothing left behind, as relax describes. tme is legal only in the Part phase.

Rules James adds

  • A region that is an edge or a vertex is an error (E1300).
  • tme takes one region. A & after it is an error (E0104); smooth a list of faces with relax.
  • A region with a hole, a deleted element inside the block or a quadrilateral of the face with no element left on either side, is an error (E1305). James finds the hole when it applies the part, since a de may come after the tme in the script, and stops there with exit code 1. relax smooths around a hole.
  • As in relax, a node next to a deleted region stays where it is, a curf node never moves, and min_change is measured before a face node is put back on its surfaces.
  • The iterations, the weight, min_change and the passes of mxp work as for relax, and on a cylinder part James smooths the stored radius, angle and height.

Diagnostics

  • E1300: the region is an edge or a vertex.
  • E1302: the iteration count is missing or is not a positive integer.
  • E1303: min_change is negative.
  • E1304: the weight is not above 0 and at most 1.
  • E1305: the region holds a deleted element.
  • E0104: a region, min_change or the weight is missing or not a number, or a & follows the region.
  • E0105: a & follows the three numbers.
  • E0102: a reduced index lies outside the part.
  • E0106: a range of the region is written high to low.

Example

The script tests/corpus/204-tme-face/input.tg, which make test runs:

c tme on the bottom face of a part of four blocks, at step 12
block 1 5 9;1 5 9;1 5;0 1 2;0 1 2;0 1;
tme 1 1 1 3 3 1 30 .0001 1
endpart

The region 1 1 1 3 3 1 is the bottom face of the part, across all four blocks. James stores it for step 12 with its three numbers: at most 30 iterations, stop once no coordinate moves more than 0.0001, weight 1.

See also

  • tmei: the same command with an index progression.
  • relax: the equipotential smoother, and lists of faces.
  • Shaping a part: the order of steps.

James 0.8.0.

This site uses Just the Docs, a documentation theme for Jekyll.