PCL Reference Manual > Results Postprocessing Functions > Results Database Functions
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX''">   
Results Database Functions
This section describes results database functions used to create results data and attributes of results data to the database. These are basic functions for getting at results data in the database for use in customized PCL functions.
   
res_db_create_loadcase_c
( name, type, description, loadcase_id )
Description:
 
 
Create a loadcase.
Input:
 
 
STRING
name
The name of the load case.
INTEGER
type
The load case code.
STRING
description
The load case description.
Output:
 
 
INTEGER
loadcase_id
The loadcase id.
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 "type" can be set to the following values:
STATIC_ID
1
TIME_DEPENDENT_ID
2
FREQ_DEPENDENT_ID
3
COMBINATION_ID
4
The "description" can be set to the following values:
STATIC
"Static"
TIME_DEPENDENT
"Time Dependent"
FREQ_DEPENDENT
"Freq Dependent"
COMBINATION
"Combination"
Remarks:
None
Example:
None
   
res_db_create_restype_c
( pri_label, sec_label, data_type, num_form, anl_code, unit_node, result_type )
Description:
 
 
Creates a new result type.
Input:
 
 
STRING
pri_label
The primary result label.
STRING
sec_label
The secondary result label.
INTEGER
data_type
The data type code:
scalar
vector
tensor
INTEGER
num_form
The numerical form code.
real
imaginary
complex mag
complex phase
complex type
complex real
complex angle
STRING
description[ 80 ]
The results description.
INTEGER
unit_code
The unit code. Should be set to 0.
Output:
 
 
INTEGER
result_type
The result type created.
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.
Remarks:
None
Example:
None