ANF file format
quick file search:
    home » undocumented features » anf format
 
 
Introduction to ANF File Format
 

The ANF file format is used by the ANSYS Connection Kit products as well as CADfix for ANSYS in translating CAD geometry for use in ANSYS. (If you use any of the Connection Kit or CADfix for ANSYS products, you may note a text file is created during translation which contains this information - "jobname.anf" for Connection Kit, "jobname.x15" for CADfix)

This is an undocumented format which is used to specify geometric information directly in ANSYS, rather than using primitives, bottom-up modeling, or Boolean operations to create geometry.

  Posted by Joe Metrisin on 07.01.2001
 
To Define Vertices
 

Line 1: KPT, vnum, x-coord, y-coord, z-coord

where:

vnum = unique id of ANSYS vertex (long int)
x-coord = global Cartesian X-location of vertex
y-coord = global Cartesian Y-location of vertex
z-coord = global Cartesian Z-location of vertex

Note: arguments of KPT command must be separated by commas.

Line 2: Cad id of vertex (up to 40 characters)

  Posted by Joe Metrisin on 07.01.2001
 
To Define Edges
 

Line1: LCURV, enum, crv_typ, start_vrtx, end_vrtx, start_param, end_param

where:

enum = unique id of ANSYS edge (long integer)
crv_typ = type of curve (use 1 for B-Spline)
start_vrtx = vertex id at beginning of edge
end_vrtx = vertex id at end of edge
start_param = curve parameter defining the start of the edge (start_vrtx)
end_param = curve parameter defining the end of the edge (end_vrtx)

Note: arguments of LCURV command must be separated by commas.

Line 2: Cad id of edge (up to 40 characters)

Line 2 to n: Curve Definition

B_spline (crv_typ = 1)
form_number order rational num_knots num_cntl_pts (5 integers, free format)
Array of knots (4 knots per line, free format)
Array of control points (1 point per line, 3 coordinates, free format)
Array of weights (if rational) (4 weights per line, free format)

where:

form_number = 0 - b-spline
    = 1 - line
    = 2 - circular arc
    = 3 - elliptical arc
    = 4 - parabolic arc
    = 5 - hyperbolic arc
    = 6 - degenerate
    = 7 - conic section
    = 8 - piecewise conic section
    = 9 - piecewise circular arc
rational = 0 - no
    = 1 - yes
  Posted by Joe Metrisin on 07.01.2001
 
To Define Faces
 

Line1: ASURF, fnum, surf_typ, num_loops, ncrv_max, start_u_parm, end_u_parm, start_v_parm, end_v_parm

where:

fnum = unique id of ANSYS face
srf_typ = type of surface (use 1 for B-spline)
num_loop = number of loops in this surface
ncrv_max = maximum number of edges in any one loop for this face

Note: arguments of ASURF command must be separated by commas.

Line 2: Cad id of face (up to 40 characters)

Line 3 to n: Loop (repeated num_loops)

loop_typ num_edges (2 integers, free format)
Array of edges (10 edges per line, free format)

where:

loop_typ = loop type is to signify the external loop. The external loop is zero, the remaining loops have a value of 1
num_edges = number of edges in this loop
edges = list of edges using the unique ANSYS id"s. If the direction of the edge is opposite of its orientation for this face, then the edge number is negative.

Note: arguments of VBODY command must be separated by commas.

Line n+1 to m: Surface Definition

B_spline (surf_typ = 1)
form_number u_order v_order rational u_num_knots v_num_knots u_num_cntr_pts
v_num_cntr_pts (8 integers, free format)
Array of Knots in the u-direction (4 knots per line, free format)
Array of Knots in the v-direction (4 knots per line, free format)
Array of Control points (1 point per line, 3 coordinates, free format)
Array of Weights (if rational) (4 knots per line, free format)

where:

form_number = 0 - b-spline
    = 1 - plane
    = 2 - right circular cylinder
    = 3 - cone
    = 4 - sphere
    = 5 - torus
    = 6 - surface of revolution
    = 7 - tabulated cylinder
    = 8 - ruled surface
    = 9 - general quadratic surface
    = 10 - planar, circular capping surface
    = 11 - planar, quadrilateral surface
rational = 0 - no
    = 1 - yes
  Posted by Joe Metrisin on 07.01.2001
 
To Define Bodies
 

Line 1: VBODY, bnum, num_shells, nsrf_max

where:

bnum = unique id of ANSYS body (long integer)
num_shells = number of shells in this body
nsrf_max = maximum number of faces in any one shell

Line 2: Cad id of body (up to 40 characters)

Line 3-n: Shell (repeated num_shells times)

shell_typ num_faces (2 integers, free format)
Array of faces (10 faces per line, free format)

where:

shell_typ = loop type is to signify the external shell. The external shell is zero, the internal shells have a value of 1
num_faces = number of faces in this body
faces = list of faces using the unique ANSYS id"s. If the normal of the face is opposite of its orientation for this shell, then the face number is negative.
  Posted by Joe Metrisin on 07.01.2001