Abstract

This chapter describes several properties of the Hermes preprocessor that must be taken into account when defining an iron model. The basic elements of the language as key-points, lines, areas and meshing are treated. 1 General rules The lines are ended by a semicolon. To comment a line insert a before it. Comments can also be added at the end of lines. Variables can be up to 100 characters long. 2 Definition of scalar values. Parameters. Scalar variables cannot start by kp,ln,ar, or BH All arithmetic operations plus the functions Sin, Cos, Asin, Acos, Sqrt, Tan are allowed in scalar expressions. Design variables are defined with the prefix dv and its value is given by Roxie if they are defined as design variables there too. 3 Definition of keypoints. Keypoints are represented with variables starting with kp Possible operation with keypoints: sum, product by an scalar, subtraction. Defined from the scalar expressions with the operators: Cartesian coordinates [xcoor, ycoor] Polar coordinates [radius angle] It is possible to access the coordinates of a keypoint as : kp1.x and kp1.y The EllipKp(a,b,phi) returns a keypoint belonging to an ellipse of semi-axis a and b and with an angle of phi with respect to the x axis. 4 Definition of lines and arcs. Line variables start always with ln. Lines are defined with 2 keypoints and the mesh distribution in the line Arcs are defined by the start and end keypoint and the radius of curvature. Give the start and end points in clockwise sense. Elliptic arcs are defined with 3 keypoints. Start, end and middle point. To help obtaining the points one function is provided for calculating a keypoint from the two half axis and the azimuthal position of the point in the ellipse. kp1=EllipKp(a,b,angle) ln1=Ellipse(kpStart,kpEnd, kpMiddle)

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call