Keypoint Command

From OSUPDOCS
Revision as of 11:10, 30 August 2013 by Nairnj (talk | contribs)
Jump to navigation Jump to search

The Keypoint and Keypoints commands are used in FEA analyses to define key points that are used to define paths that are then used to mesh areas.

Scripted Keypoints

In scripted input files, the Keypoint command has two forms. The first form is to define a key point:

Keypoint #1,#2,#3,<#4>

where

  • #1 is the id to give to the new keypoint. The id must be unique among all other key points.
  • #2 and #3 are the x and y coordinates of the key point (or R and Z coordinates for axisymmetric analyses).
  • #4 (optional) can be "polar" to indicate the coordinates are given in polar coordinates (r and θ) instead of Cartesian coordinates (x and y for planar or R and Z for axisymmetric). By default, the polar coordinates are from the origin (0,0), but the polar origin can be changes with the Origin Command.

Keypoints Command

A key point can be used in more than one path. The first time it is used it is defined as above. For all subsequent uses, however, it is reused by giving just the id. Thus, the second form of the Keypoint command is to refer to a previous key point using the Keypoints

Keypoints #1,<#2>,...

where #1 (and optionally #2 ...) are the id of previously defined key points to use consecutively in definition of a path. The form of the Keypoint command must always be with a path block.

XML Keypoints Block

The <Keypoints> block must be within the singe <Mesh> block and must be the first element in that block. The Keypoints block has the form:

It can define any number of key points. Each subordinate <pt> command defines a key point, provides its x and y coordinates and gives it an id. The id's can be text or numbers and must all be unique among key points.


Notes

  1. A Keypoint command to define a key point can appear by itself or within an <a href="path.html">Path command</a> block. A Keypoint command that refers to an existing key point is only allowed within a <a href="path.html">Path command</a> block.
  2. To programmatically access keypoint coordinates, you can use <a href="expression.html#atexpr">an "at" expression</a> @key.ID.x or @key.ID.y. Here "ID" is the defined keypoint name or id and you can read its x or y coordinate.
  3. The Keypoint command is only allowed for <a href="analysis.html">FEA analyses.</a>