Tutorial Toolkit Function Descriptions > Files > Neutral
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Neutral
The following PCL functions are used to export MSC Patran 2.5 format neutral files. nf_write_all will create the GFEG and CFEG tables for association between geometry in FEM. Since MSC Patran has no limitation on the number of nodes and elements associated to the geometry, care should be taken when importing neutral files generated from nf_write_all into MSC Patran 2.5 so that the 2000 nodes per a single geometric region (Curve, surface or solid) limit is not exceeded.
 
neutral_export2
( pname, title, entflg, grp_all, ngroups, groudid )
Description:
Export data to a neutral file, applying the specified entity and group filters first.
Input:
STRING
pname[]
Neutral file name.
STRING
title[]
Neutral file title.
LOGICAL
entflg(35 )
Entity filters. TRUE/FALSE toggle flags. Only 22 of the 35 values are used. Visable flags include: #1-8, #10, #11, #14-17, #19-24, #32, and #33.
LOGICAL
grp_all
TRUE if ALL groups are to be output.
INTEGER
ngroups
The number of groups to be output.
INTEGER
groudid( )
The IDs of the groups to be output.
Output:
 
 
INTEGER
<Return Value>
0 if Function was successful.
Example:
Please see neutral_export2 (p. 42) in the MSC Acumen Toolkit - Code Examples.
 
nf_write
( pname, title, pfea )
Description:
Write a MSC Patran 2.5 format neutral file from the open MSC Patran database. Use the PFEA translator as a base, add new Phase I. If PFEA is TRUE, write only a PFEA neutral file.
Input:
STRING
pname[]
Neutral file name.
STRING
title[]
Neutral file title.
LOGICAL
pfea
Flag to write only PFEA neutral file if TRUE.
Output:
INTEGER
<Return Value>
See error conditions.
Error Conditions:
45000001
Unable to open output file. Aborting Neutral File Export.
8107002
Last command aborted.
45000002
Error writing Finite Element Model. Will try to complete Neutral File.
45000003
Error writing Named Components. Aborting FEM portion of Neutral File. Will try to complete writing geometry, if any.
Example:
Please see nf_write (p. 43) in the MSC Acumen Toolkit - Code Examples.
 
nf_write2
( pname, title, pfea, entflg, grp_all, ngroups, groupid )
Description:
Write a MSC Patran 2.5 format neutral file from the open MSC Patran database. Use the PFEA translator as a base, add new Phase I. If PFEA is TRUE, write only a PFEA neutral file.
Input:
STRING
pname[]
Neutral file name.
STRING
title[]
Neutral file title.
LOGICAL
pfea
Flag to write only PFEA neutral file if TRUE.
LOGICAL
entflg( )
Entity filters. TRUE/FALSE toggle flags.
LOGICAL
grp_all
TRUE if ALL groups are to be output.
INTEGER
ngroups
The number of groups to be output.
INTEGER
groupid( )
The IDs of the groups to be output.
Output:
INTEGER
<Return Value>
See error conditions.
Error Conditions:
45000001
Unable to open output file. Aborting Neutral File Export.
45000002
Error writing Finite Element Model. Will try to complete Neutral File.
45000003
Error writing Named Components. Aborting FEM portion of Neutral File. Will try to complete writing geometry, if any.
Example:
Please see nf_write2 (p. 45) in the MSC Acumen Toolkit - Code Examples.