PCL and Customization > Accessing the Patran Database > Patran Element Topology Codes
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Patran Element Topology Codes
Element shape, maximum number of nodes, and node configuration for an element type is expressed through a Patran element topology code. In order to determine the appropriate element topology code for a given shape code and maximum number of nodes, use the following function:
\
fem_get_patran25_etop
( <shape_code>, <num_of_nodes>, <topo_code> )
  
Input:
 
 
INTEGER
<shape_code>
The PATRAN 2.5 shape code for this type of
element:
1 = Point Element
2 = Bar Element
3 = Triangular Element
4 = Quadrilateral Element
5 = Tetrahedral Element
7 = Pentahedral Element
8 = Hexahedral Element
INTEGER
<num_of_nodes>
 
Output:
 
 
INTEGER
<topo_code>
The Patran element topology code to be used in referencing an element of this type.
INTEGER
<Return Value>
This function returns a value of 0 when executed successfully and a non zero value to indicate a change in status or an error.
Notes:
The C call is “FemGetPatran25Etop”.
int FemGetPatran25Etop ( shape_code, num_of_nodes, topo_code )
int 	shape_code
int 	num_of_nodes
int 	*topo_code
In order to determine the PATRAN 2.5 shape code and maximum number of nodes for an element type given its element topology code, use the function described below.
 
db_get_elem_topology_data
( <num_codes>, <topo_codes>, <shape_codes>, <nodes_per_elem> )
 
Input:
 
 
INTEGER
<num_codes>
The number of Patran topology codes input to this function.
INTEGER ARRAY
<topo_codes>
The <num_codes> topology codes being input to this function.
Output:
 
 
INTEGER ARRAY
<shape_codes>
The <num_codes> shape codes corresponding to the input topology codes. Their meaning is as follows:
1 = Point Element
2 = Bar Element
3 = Triangular Element
4 = Quadrilateral Element
5 = Tetrahedral Element
7 = Pentahedral Element
8 = Hexahedral Element
INTEGER ARRAY
<nodes_per_elem>
The Patran element topology code to be used in referencing an element of this type.
INTEGER
<Return Value>
This function returns a value of 0 when executed successfully and a non zero value to indicate a change in status or an error.
Notes:
The C name differs. It is DbFGetElemTopologyData.
int DbFGetElemTopologyData ( num_codes, topo_codes, shape_codes, nodes_per_elem )
int 	num_codes
int 	*topo_codes
int 	*shape_codes
int 	*nodes_per_elem