XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''"> Analysis Preferences
This section is used to describe some of the functions used to govern some of the preferences used with the analysis of a model.
Description: | | |
This function changes the analysis preferences of the current database. |
Input: | | |
STRING | analysis_code[31] | This value specifies the analysis code or the name of the solver to be used. See the remarks below for more information. |
STRING | analysis_type[31] | This value specifies the type of analysis provided by the solver. See the remarks below for more information. |
STRING | input_file_suffix[4] | This value specifies the default suffix for the chosen analysis code’s input files. See the remarks below for more information. |
STRING | output_file_suffix[4] | This value specifies the default suffix for output files from the chosen analysis code. See the remarks below for more information. |
Output: | | |
None. | | |
Error Conditions: | |
None. | | |
Remarks:
This function is used in the implementation of the form that is displayed when “Preferences”, “Analysis...” is selected from the menu bar.
Many of the forms and menus in Patran are dependent upon the settings represented by the input values analysis_code and analysis_type. Changing these values can modify the contents of many of these forms and menus. Calling the function ui_wid_refresh() after this function is called will update any forms or menus that are currently displayed and make use of the analysis code and type values.
In previous releases of Patran, analysis preferences were changed with a function sequence as follows:
sys_library( “add”, * )
pref_anal_set ( anal_code, anal_type, input_file_suffix, @
output_file_suffix )
sys_library( “remove”, * )
This sequence will still work but is obsolete and all three of these calls should be replaced with the new PCL function described above.
Another obsolete function which might appear in old Patran session or journal files and should be replaced is:
uil_pref_setcode.save_anal_values ( anal_code, anal_type, @
input_file_suffix, output_file_suffix )
The input values analysis_code, analysis_type can have the following values. Note that the value allowed for the analysis_type is dependent on the value used for the analysis_code. The default values for the input value input_file_suffix and output_file_suffix are listed as well:
| Analysis code | Analysis type | Input suffix | Output suffix |
| | | | |
| ABAQUS | Structural | .inp | .fil |
| ABAQUS | Thermal | .inp | .fil |
| ANSYS | Structural | .prp | 12.* |
| ANSYS | Thermal | .prp | 12.* |
| ANSYS 5 | Structural | .prp | .rst |
| ANSYS 5 | Thermal | .prp | .rst |
| MARC K5 | Structural | .dat | .t16 |
| MARC K5 | Thermal | .dat | .t16 |
| MARC K6 | Structural | .dat | .t16 |
| MARC K6 | Thermal | .dat | .t16 |
| MSC Nastran | Structural | .bdf | .op2 |
| MSC Nastran | Thermal | .bdf | .op2 |
| Patran FEA | Structural | .ntl | .res |
| Patran FEA | Thermal | .ntl | .res |
| Patran Advance FEA | Structural | | .fil |
| Patran Advance FEA | Thermal | | .fil |
| Patran Thermal | Thermal | .ntl | .nrf |
| Patran 2 NF | Structural | .out | .out |
| Patran 2 NF | Thermal | .out | .out |
Example: