db_create_analysis_type | (<analy_type_id>, <analy_type_name>) |
Input: | |||
INTEGER | <analy_type_id> | The ID for referencing the analysis type. This ID must be unique with respect to all previously defined analysis type IDs. | |
CHARACTER STRING | <analy_type_name> | The name of the analysis type. | |
Output: | |||
INTEGER | <Return Value> | Status return value. The value will be 0 if the routine is successful. | |
Error Conditions: | |||
None. |
Analysis type | <analy_type_id> |
Structural Analysis | 1 |
Thermal Analysis | 2 |
Fluid Dynamics | 3 |
db_create_analysis_code | (<analy_code_id>, <analy_code_name>, <model_suffix>, <results_suffix>, <num_analy_types>, <analy_type_ids>, <def_analy_type>) |
Input: | ||
INTEGER | <analy_code_id> | The ID for referencing the analysis code. This ID must be unique with respect to all previously defined analysis code IDs. Users and third parties should define analysis code IDs in the range 20000 to 29999. |
CHARACTER STRING | <analy_code_name> | The name of the analysis code. |
CHARACTER STRING | <model_suffix> | Suffix to be added to the analysis code input file. |
CHARACTER STRING | <results_suffix> | Suffix to be added to the analysis code results file. |
INTEGER | <num_analy_types> | The number of analysis types valid for this analysis code. |
INTEGER ARRAY | <analy_type_ids> | The <num_analy_types> analysis types IDs valid for this analysis code. |
INTEGER | <def_analy_type> | The analysis type ID of the default analysis type. |
Output: | ||
INTEGER | <Return Value> | Status return value. The value will be 0 if the routine is successful. |
Error Conditions: | ||
None. |
Analysis Code | <analy_code_id> |
MSC Nastran | 1 |
ABAQUS | 2 |
ANSYS | 3 |
MARC | 4 |
Patran FEA | 5 |
Patran Thermal | 6 |
Patran CFD | 9 |
Patran Advanced FEA | 10 |
MARC K5 | 11 |
ANSYS 5 | 12 |
Patran TEAM | 13 |
SAMCEF | 15 |
PATRAN 2NF | 16 |
MSC.Dytran | 17 |
Patran STRUCTURAL OPTIMIZATION | 19 |
MARC K6 | 20 |
LMS CADA-X | 21 |
FASTRUDL | 31 |
SESAM | 321 |
DYNA3D | 32 |
RCS | 41 |
CFX-F3D | 42 |
CFX-FLOW | 43 |
MSC.DropTest | 51 |
MSC.Forging | 52 |
LS-DYNA3D | 10001 |
PAMCRASH | 13001 |
db_get_default_anal_code | (<analysis_code_name>) |
Input: | ||
None | ||
Output: | ||
STRING[31] | <analysis_code_name> | Analysis code name. |
Error Conditions: | ||
None. |
db_get_anal_code_id | (<analysis_code_name>, <analysis_code_id>) |
Input: | ||
STRING[31] | <analysis_code_name> | Analysis code name. |
Output: | ||
INTEGER | <analysis_code_id> | Analysis code ID. |
Error Conditions: | ||
None. |
uil_pref_analysis.set_analysis_pref | (<analy_code_name>, <analy_type_name>, <input_file_suffix>, <output_file_suffix>) |
Input: | ||
CHARACTER STRING | <analy_code_name> | The name of the analysis code to be set as the default. This name can be no more than 31 characters. |
CHARACTER STRING | <analy_type_name> | The name of the analysis type to be set as the default for the chosen analysis code. This name can be no more than 31 characters. |
CHARACTER STRING | <input_file_suffix> | The default file suffix for the input files of the chosen analysis code. This suffix can be no more than 4 characters. |
CHARACTER STRING | <output_file_suffix> | The default file suffix for the output files of the chosen analysis code. This suffix can be no more than 4 characters. |
Output: | ||
None. | ||
Error Conditions: | ||
None. |
ui_wid_refresh( )
Important: | One of the required function names for each custom class is initx. The initial Patran design of the LBC forms was made to bypass the standard init function and use an initx function. The initx functions of the custom sub-form classes must contain a call to ui_exec_function(classname, “init”) in order for the UIMS to know that the form has been initialized. Consequently the ui_form_exists(classname) call will return correctly whether or not the form has been initialized. |
init()
initx()
display()
input_disabled()
set_cur_data()
get_data()
get_mem()
update_cur_data()
get_data_defn()
Required Function for Data Input Class | |
Input_disabled() |
Description: | ||
Called by loadsbcs_create class to determine if the data input form for the current (object, method, target) should be accessible. | ||
Variable declarations (optional): | ||
LOGICAL | flag | True: Enable the Input Data button. False: Disable the Input Data button. |
Preference call: | ||
lbc_input.set_input_disable(flag) | ||
Error Conditions: | ||
None. |
lbc_input.set_input_disable(FALSE)
Required Function for Data Input Class | |
set_cur_data() |
Description: | ||
When an existing LBC set is selected from the listbox on the Create panel of the Loads/Boundary Conditions form, the values for the widgets which are to be displayed in this sub-form are set with the given values. | ||
Variable declarations: | ||
REAL | lbc_sf | Loads/BC Set Scale Factor. |
STRING[LBC_DATA_LEN] | cid_data | Coordinate Frame. |
INTEGER | num_data | Number of databoxes on the Input Data form. |
INTEGER(NUM_LBC_INP_FLDS) | data_id | Internal Ids corresponding to the databoxes. |
STRING[LBC_DATA_LEN](NUM_LBC_INP_FLDS) | stat_data | Values from static databoxes. |
STRING[LBC_DATA_LEN](NUM_LBC_INP_FLDS) | dyn_data | Values from dynamic databoxes. |
Preference call: | ||
lbc_input.get_cur_data(lbc_sf, cid_data, num_data, data_id, stat_id, dyn_id) | ||
Error Conditions: | ||
None. |
Requires #include “app_lbcs.p” for variable array sizes.
Required Function for Data Input Class | |
get_data() |
Description: | ||
Used to transfer data from the data input sub-form to the loadsbcs_create class when creating a new set. | ||
Variable declarations: | ||
REAL | lbc_sf | Loads/BC Set Scale Factor. |
STRING[LBC_DATA_LEN] | cid_data | Coordinate Frame. |
INTEGER | num_data | Number of databoxes on the Input Data form. |
INTEGER(NUM_LBC_INP_FLDS) | data_id | Internal Ids corresponding to the databoxes. |
STRING[LBC_DATA_LEN](NUM_LBC_INP_FLDS) | stat_data | Values from static databoxes. |
STRING[LBC_DATA_LEN](NUM_LBC_INP_FLDS) | dyn_data | Values from dynamic databoxes. |
Preference call: | ||
lbc_input.set_data(lbc_sf, cid_data, num_data, data_id, stat_id, dyn_id) | ||
Error Conditions: | ||
None. |
Requires #include “app_lbcs.p” for variable array sizes.
Required Function for Data Input Class | |
get_mem() |
Description: | ||
Allocate memory for any classwide virtual arrays. | ||
Variable declarations: | ||
INTEGER | stat | Return status of success or failure (0: success; -1: error) |
Preference call: | ||
lbc_input.set_status(stat) | ||
Error Conditions: | ||
None. |
init() initx() display() get_mem() get_data() | set_cur_data() get_geo_index() clear_app_region() update_cur_data() |
Required Function for Data Input Class | |
get_geo_index() |
Description: | ||
Called by the loadsbcs_create class when an existing set is selected from the listbox. Given the selected set’s geometry string, this function returns the internal index for its application region’s geometry filter. | ||
Variable declarations: | ||
STRING | geometry_str[31} | Real Geometry Group string: LBC_GEOMETRY_STR LBC_FEM_STR |
INTEGER | geo_index | Geometry Group internal index 1: Geometry 2: FEM |
Preference call: | ||
geometry_str = lbc_select.get_geo_group_str( ) | ||
lbc_select.set_geo_index(geo_index) | ||
Error Conditions: | ||
None. |
geometry_str = lbc_select.get_geo_group_str()
IF (geometry_str == LBC_GEOMETRY_STR) THEN
geo_index = 1
ELSE IF (geometry_str == LBC_FEM_STR) THEN
geo_index = 2
END IF
lbc_select.set_geo_index(geo_index)
Requires #include “app_lbcs.p” for LBC string definitions.
Required Function for Data Input Class | |
set_cur_data() |
Description: | ||
When an existing LBC set is selected from the listbox on the Create panel of the Loads/Boundary Conditions form, the values for the widgets which are to be displayed in this sub-form are set by changing the values with the given data. | ||
Variable declarations: | ||
INTEGER | grp | Geometry Group. |
INTEGER | num_list | Number of application region lists. |
STRING[VIRTUAL](VIRTUAL) | app_list | Application region lists. |
INTEGER | couple | Coupling option. |
INTEGER | order | Ordering option. |
Preference call: | ||
lbc_select.get_cur_data(grp, num_list, app_list) | ||
lbc_select.get_cur_2_app_data(couple, order) | ||
Error Conditions: | ||
None. |
lbc_select.get_cur_2_app_data is only needed for 2 application region forms.
Required Function for Data Input Class | |
get_data() |
Description: | ||
Used to transfer data from the Select Application Region sub-form to the loadsbcs_create class when creating a new set. | ||
Variable declarations: | ||
INTEGER | result | Return status of success or failure. (0: success; -1: error) |
INTEGER | num_ar | Number of application region. |
INTEGER(2) | ar_id | Application Region ids. |
STRING[VIRTUAL] | app_list1 | Application Region list 1 of entities. |
STRING[VIRTUAL] | app_list2 | Application Region list 2 of entities. |
STRING | geo_fltr[31] | Geometry filter which restricts entities which can be selected. |
INTEGER | couple | Coupling option. |
INTEGER | order | Ordering option. |
Preference call: | ||
lbc_select.set_status(result) | ||
lbc_select.set_data(num_ar, ar_id, app_list1, app_list2, geo_fltr) | ||
lbc_select.set_2_app_data(couple, order) | ||
Error Conditions: | ||
None. |
lbc_select.set_2_app_data is only needed for 2 application region forms.
Required Function for Data Input Class | |
get_mem() |
Description: | ||
Allocate memory for any classwide virtual arrays. | ||
Variable declarations: | ||
INTEGER | stat | Return status of success or failure. 0: success; -1: error) |
Preference call: | ||
lbc_select.set_status(stat) | ||
Error Conditions: | ||
None. |