db_drop_res_index | () |
Output: | ||
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. |
int DbFDropResIndex ()
db_create_sub_case | ( loadcase_id, sub_case_title, sub_case_id, result_case_id) |
Description: | ||
This function creates a sub and result case associated to a load case. | ||
Input: | ||
INTEGER | load_case_id | This value specifies the load case id value. |
INTEGER | sub_case_title[31] | This value specifies the sub case title. |
Output: | ||
INTEGER | sub_case_id | This value returns the sub case id value. |
INTEGER | result_case_id | This value returns the results case id value. |
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. |
int DbFCreateSubCase ( lcid,sctitle, scid, rcid )
int lcid
char *sctitle
int *scid
int *rcid
Note: | For the current release, there is no means of determining the global variable type. Therefore, all global variables are assumed to be scalar values |
dbt_create_global_variables | ( num, rcid, label, numform, csys_type, cid, code, gvid, values ) |
Input: | ||
INTEGER | num | ALWAYS assign num=1. |
INTEGER | rcid | Existing result case ID. |
STRING | label[] | Label for the global variable. This is used to match with other global variables assigned to other result cases. |
INTEGER | numform | Integer code for the numeric form of the data where 1-Real, 2=Imaginary, 3-Complex Magnitude, 4=Complex Phase, 6=Complex Real, 7=Complex Angle. |
INTEGER | csys_type(num) | An array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. |
INTEGER | cid(num) | Existing coordinate frame ID (csys_type=3). |
STRING | code[] | A label descriptor for the analysis code name. |
REAL | values(6) | An array of real values (only the first used at this time). |
Output: | ||
INTEGER | gvid | Database ID pointer to the global variable entity. |
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. |
int DbFCreateGlobalVariables ( num, rcid, label, numform, csys_type, cid, code, gvid, values )
int num
int rcid
char *label
int *numform
int *csys_type [num]
int *cid [num]
char *code
int *gvid
float values [ ][6]
dbt_assoc_global_variables | ( <num>, <rcid>, <label>, <numform>, <csys_type>, <cid>, <code>, <gvid>, <values> ) |
Input: | ||
INTEGER | <num> | Number of global variable pairs to associate. |
INTEGER | <rcid> | Result case to which these variables belong. |
INTEGER ARRAY | ||
<list1> | (num) global variable IDs to be associated with list2. | |
INTEGER ARRAY | ||
<list2> | (num) global variable IDs to be associated with list1. | |
Output: | ||
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. |
int DbFAssocGlobalVariables ( num, rcid, list1, list2 )
int num
int rcid
int *list1
int *list2
dbt_create_res_types | ( <num>, <pri_label>, <sec_label>, <datatype>, <numform>, <from_code>, <units>, <rtid> ) |
Input: | ||
INTEGER | <num> | Number of global variable pairs to associate. |
CHARACTER STRING | ||
<pri_label> | Primary label result descriptor. | |
CHARACTER STRING | ||
<sec_label> | Secondary label result descriptor. | |
INTEGER | <datatype> | Integer code for the result datatype where 0=Unknown, 1=Scalar, 2=Vector, 3=Tensor |
INTEGER | <numform> | Integer code for the numeric form of the data where 1-Real, 2=Imaginary, 3-Complex Magnitude, 4=Complex Phase, 6=Complex Real, 7=Complex Angle. |
CHARACTER STRING | ||
<from_code> | Analysis code from which results were derived. | |
INTEGER | <units> | Assign units=0. NOT USED. |
Output: | ||
INTEGER | <rtid> | Database ID pointer for 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. |
int DbFCreateResTypes ( num, pri_label, sec_label, datatype, numform, from_code, units, rtid )
int num
char *pri_label
char *sec_label
int *datatype
int *numform
char from_code [ ]
int *units
int *rtid
dbt_assoc_res_types | ( <num>, <pri_label>, <sec_label>, <datatype>, <numform>, <from_code>, <units>, <rtid> ) |
Input: | ||
INTEGER | <num> | Number of result type pairs to associate. |
INTEGER ARRAY | ||
<list1> | (num) result type IDs to be associated with list2. | |
INTEGER ARRAY | ||
<list2> | (num) result type IDs to be associated with list1. | |
Output: | ||
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. |
int DbFAssocResTypes ( num, list1, list2 )
int num
int *list1
int *list2
dbt_create_elem_positions | ( <num>, <ctype>, <coords>, <epid> ) |
Input: | ||
INTEGER | <num> | Number of result type pairs to associate. |
INTEGER | <ctype> | Flay specifying which coordinate system is used to express the postion within the element. 0 = unknown cordinate system. [0, 0, 0, 0]. 1 = parametic coordinate system standardly used for line elemnts, quadrilateral surface elements and hexahedral solid elements. [c1, 0, 0, 0], [c1, c2, 0, 0], or [c1, c2, c3, 0]. 2 = area coordinate system standardly used for triangular surface elements. [c1, c2, c3, 0]. 3 = volume coordinate system standardly used for tetrahedral and pentahedral solid elements. The difinition of this sytem differs depending upon the element type being referenced. For tetrahedral solid elements, the standard volume coordinate system is used. For pentahedral solid elements a hybrid between the area coordinate system and the parametric system is used. The first three values are area coordinates of the postion within the local XY plane of the element. The fourth value is the parametric value of Z. [c1, c2, c3, c4]. |
REAL ARRAY | ||
<coords>(4) | The coordinates of the position within the element in the coordinate system specified by <ctype>. Always an array of four values. Use zeroes for any array positions which have no meaning. | |
Output: | ||
INTEGER | <epid> | The internal ID assigned to the newly created element position. |
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. |
position | coord. type | c1 | c2 | c3 | c4 |
Line element | |||||
center | 1 | 0.5 | 0.0 | 0.0 | 0.0 |
node 1 | 1 | 0.0 | 0.0 | 0.0 | 0.0 |
node 2 | 1 | 1.0 | 0.0 | 0.0 | 0.0 |
Triangular Surface element | |||||
center | 2 | 0.333 | 0.333 | 0.333 | 0.0 |
node 1 | 2 | 1.0 | 0.0 | 0.0 | 0.0 |
node 2 | 2 | 0.0 | 1.0 | 0.0 | 0.0 |
node 3 | 2 | 0.0 | 0.0 | 1.0 | 0.0 |
Quadrilateral Surface element | |||||
center | 1 | 0.5 | 0.5 | 0.0 | 0.0 |
node 1 | 1 | 0.0 | 0.0 | 0.0 | 0.0 |
node 2 | 1 | 1.0 | 0.0 | 0.0 | 0.0 |
node 3 | 1 | 1.0 | 1.0 | 0.0 | 0.0 |
node 4 | 1 | 0.0 | 1.0 | 0.0 | 0.0 |
Tetrahedral Solid element | |||||
center | 3 | 0.25 | 0.25 | 0.25 | 0.25 |
node 1 | 3 | 1.0 | 0.0 | 0.0 | 0.0 |
node 2 | 3 | 0.0 | 1.0 | 0.0 | 0.0 |
node 3 | 3 | 0.0 | 0.0 | 1.0 | 0.0 |
node 4 | 3 | 0.0 | 0.0 | 0.0 | 1.0 |
Pentahedral Solid element | |||||
center | 3 | 0.333 | 0.333 | 0.333 | 0.5 |
node 1 | 3 | 1.0 | 0.0 | 0.0 | 0.0 |
node 2 | 3 | 0.0 | 1.0 | 0.0 | 0.0 |
node 3 | 3 | 0.0 | 0.0 | 1.0 | 0.0 |
node 4 | 3 | 1.0 | 0.0 | 0.0 | 1.0 |
node 5 | 3 | 0.0 | 1.0 | 0.0 | 1.0 |
node 6 | 3 | 0.0 | 0.0 | 1.0 | 1.0 |
Hexahedral Solid element | |||||
center | 1 | 0.5 | 0.5 | 0.5 | 0.0 |
node 1 | 1 | 0.0 | 0.0 | 0.0 | 0.0 |
node 2 | 1 | 1.0 | 0.0 | 0.0 | 0.0 |
node 3 | 1 | 1.0 | 1.0 | 0.0 | 0.0 |
node 4 | 1 | 0.0 | 1.0 | 0.0 | 0.0 |
node 5 | 1 | 0.0 | 0.0 | 1.0 | 0.0 |
node 6 | 1 | 1.0 | 0.0 | 1.0 | 0.0 |
node 7 | 1 | 1.0 | 1.0 | 1.0 | 0.0 |
node 8 | 1 | 0.0 | 1.0 | 1.0 | 0.0 |
Note: | The C name differs. It is DbFCreateElemPositions. |
int DbFCreateElemPositions ( num, ctype, coords, epid )
int num
int ctype
float coords [ ][4]
int *epid
dbt_create_sect_pos | ( <num>, <label>, <ctype>, <coords>, <secid> ) |
Input: | ||
INTEGER | <num> | ALWAYS assign num=1. |
CHARACTER STRING | ||
<label> | Label for the section position which may be blank if the results are not section based. | |
INTEGER | <ctype> | NOT USED, assign ctype=0. |
REAL ARRAY | ||
<coords> | NOT USED. | |
Output: | ||
INTEGER | <secid> | Integer Database ID pointer to the section position entity 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. |
int DbFCreateSectPos ( num, label, ctype, coords, secid )
int num
char *label
int *ctype
float coords [ ][2]
int *secid
dbt_create_layers | ( <num>, <comp_id>, <secid>, <layerid> ) |
Input: | ||
INTEGER | <num> | ALWAYS assign num=1. |
INTEGER | <comp_id> | Composite layer ID. May be 0 if there is no layered data. |
INTEGER | <secid> | Database ID of an existing section position entity to which this layer is assigned. |
Output: | ||
INTEGER | <layerid> | Integer Database ID pointer to the layer entity 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. |
int DbFCreateLayers ( num, comp_id, secid, layerid )
int num
int *comp_id
int *secid
int *layerid
db_add_s_nod_res_by_type | ( <num>, <rtid>, <rcid>, <layerids>, <nids>, <results> ) |
Input: | ||
INTEGER | <num> | Number of nodes/results input. |
INTEGER | <rtid> | Existing result type ID. |
INTEGER | <rcid> | Existing result case ID. |
INTEGER ARRAY | ||
<layerids> | (num) sized array of layer ID for the result at each node. | |
INTEGER ARRAY | ||
<nids> | (num) sized array of node IDs. | |
REAL ARRAY | ||
<results> | (num) sized array of scalar results at each node/layer. | |
Output: | ||
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. |
int DbFAddSNodResByType ( num, rtid, rcid, layerids, nids, results )
int num
int rtid
int rcid
int *layerids
int *nids
float *results
db_add_s_nod_res_by_pos | ( <num>, <rtids>, <rcid>, <layerid>, <nids>, <results> ) |
Input: | ||
INTEGER | <num> | Number of nodes/results input. |
INTEGER ARRAY | ||
<rtids> | (num) sized array of existing result type IDs. | |
INTEGER | <rcid> | Existing result case ID. |
INTEGER | <layerids> | Existing layer ID. |
INTEGER ARRAY | ||
<nids> | (num) sized array of node IDs. | |
REAL ARRAY | ||
<results> | (num) sized array of scalar results at each node/result type. | |
Output: | ||
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. |
db_add_v_nod_res_by_type | ( <num>, <rtid>, <rcid>, <layerids>, <nids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of nodes/results input. |
INTEGER | <rtid> | Existing result type ID. |
INTEGER | <rcid> | Existing result case ID. |
INTEGER ARRAY | ||
<layerids> | (num) sized array of layer ID for the result at each node. | |
INTEGER ARRAY | ||
<nids> | (num) sized array of node IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,3) sized array of vector results at each node/layer. | |
Output: | ||
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. |
int DbFAddVNodResByType ( num, rtid, rcid, layerids, nids, csys_type, cid, results )
int num
int rtid
int rcid
int *layerids
int *nids
int *csys_type
int *cid
float results [ ][3]
db_add_v_nod_res_by_pos | ( <num>, <rtids>, <rcid>, <layerid>, <nids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of nodes/results input. |
INTEGER ARRAY | ||
<rtids> | (num) sized array of existing result type IDs. | |
INTEGER | <rcid> | Existing result case ID. |
INTEGER | <layerid> | Existing layer ID. |
INTEGER ARRAY | ||
<nids> | (num) sized array of node IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,3) sized array of vector results at each node/result type. | |
Output: | ||
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. |
db_add_t_nod_res_by_type | ( <num>, <rtid>, <rcid>, <layerids>, <nids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of nodes/results input. |
INTEGER | <rtid> | Existing result type ID. |
INTEGER | <rcid> | Existing result case ID. |
INTEGER ARRAY | ||
<layerids> | (num) sized array of layer ID for the result at each node. | |
INTEGER ARRAY | ||
<nids> | (num) sized array of node IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,6) sized array of tensor results at each node/layer. | |
Output: | ||
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. |
int DbFAddTNodResByType ( num, rtid, rcid, layerids, nids, csys_type, cid, results )
int num
int rtid
int rcid
int *layerids
int *nids
int *csys_type
int *cid
float results [ ][6]
db_add_t_nod_res_by_pos | ( <num>, <rtids>, <rcid>, <layerid>, <nids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of nodes/results input. |
INTEGER ARRAY | ||
<rtids> | (num) sized array of existing result type IDs. | |
INTEGER | <rcid> | Existing result case ID. |
INTEGER | <layerid> | Existing layer ID. |
INTEGER ARRAY | ||
<nids> | (num) sized array of node IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,6) sized array of tensor results at each node/result type. | |
Output: | ||
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. |
db_add_s_elem_res_by_type | (<num>, <rtid>, <rcid>, <epids>, <layerids>, <elids>, <results> ) |
Input: | ||
INTEGER | <num> | Number of elements/results input. |
INTEGER | <rtid> | Existing result type ID. |
INTEGER | <rcid> | Existing result case ID. |
INTEGER ARRAY | ||
<epids> | (num) array of element position IDs for each element. | |
INTEGER ARRAY | ||
<layerids> | (num) sized array of layer ID for the result at each element position. | |
INTEGER ARRAY | ||
<elids> | (num) sized array of element IDs. | |
REAL ARRAY | ||
<results> | (num) sized array of scalar results at each element/layer position. | |
Output: | ||
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. |
int DbFAddSElemResByType ( num, rtid, rcid, epids, layerids, elids, results )
int num
int rtid
int rcid
int *epids
int *layerids
int *elids
float *results
db_add_s_elem_res_by_pos | ( <num>, <rtids>, <rcid>, <epid>, <layerid>, <elid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of results for a given element input. |
INTEGER ARRAY | ||
<rtids>(num) | Sized array of existing result type IDs. | |
INTEGER | <rcid> | The result case id to be associated with each of the values. |
INTEGER | <epid> | Existing element position ID. |
INTEGER | <layerid> | Existing layer ID. |
INTEGER | <elid> | Existing element ID. |
REAL ARRAY | ||
<results>(num) | Sized array of scalar results at each element per result type. | |
Output: | ||
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. |
db_add_v_elem_res_by_type | ( <num>, <rtid>, <rcid>, <epids>, <layerids>, <elids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of elements/results input. |
INTEGER | <rtid> | Existing result type ID. |
INTEGER | <rcid> | Existing result case ID. |
INTEGER ARRAY | ||
<epids> | (num) array of element position IDs for each element. | |
INTEGER ARRAY | ||
<layerids> | (num) sized array of layer ID for the result at each element. | |
INTEGER ARRAY | ||
<elids> | (num) sized array of element IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of cids (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,3) sized array of vector results at each element/layer position. | |
Output: | ||
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. |
int DbFAddVElemResByType ( num, rtid, rcid, epids, layerids, elids, csys_type, cid, results )
int num
int rtid
int rcid
int *epids
int *layerids
int *elids
int *csys_type
int *cid
float results [ ][3]
db_add_v_elem_res_by_pos | ( <num>, <rtids>, <rcid>, <epid>, <layerid>, <elids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of elements/results input. |
INTEGER ARRAY | ||
<rtids> | (num) sized array of existing result type IDs. | |
INTEGER | <rcid> | Existing result case ID. |
INTEGER | <epid> | Existing element position ID. |
INTEGER | <layerids> | Existing layer ID. |
INTEGER ARRAY | ||
<elids> | (num) sized array of element IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,3) sized array of vector results at each element/result type. | |
Output: | ||
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. |
db_add_t_elem_res_by_type | ( <num>, <rtid>, <rcid>, <epids>, <layerids>, <elids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of elements/results input. |
INTEGER | <rtid> | Existing result type ID. |
INTEGER | <rcid> | Existing result case ID. |
INTEGER ARRAY | ||
<epids> | (num) array of element position IDs for each element. | |
INTEGER ARRAY | ||
<layerids> | (num) sized array of layer ID for the result at each element. | |
INTEGER ARRAY | ||
<elids> | (num) sized array of element IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,6) sized array of tensor results at each element/layer position. | |
Output: | ||
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. |
int DbFAddTElemResByType ( num, rtid, rcid, epids, layerids, elids, csys_type, cid, results )
int num
int rtid
int rcid
int *epids
int *layerids
int *elids
int *csys_type
int *cid
float results [ ][6]
db_add_t_elem_res_by_pos | ( <num>, <rtids>, <rcid>, <epid>, <layerid>, <elids>, <csys_type>, <cid>, <results> ) |
Input: | ||
INTEGER | <num> | Number of elements/results input. |
INTEGER ARRAY | ||
<rtids> | (num) sized array of existing result type IDs. | |
INTEGER | <rcid> | Existing result case ID. |
INTEGER | <epid> | Existing element position ID. |
INTEGER | <layerid> | Existing layer ID. |
INTEGER ARRAY | ||
<elids> | (num) sized array of element IDs. | |
INTEGER ARRAY | ||
<csys_type> | (num) sized array of coordinate system types where: -1=Unknown, 0=Global, 1=Nodal, 2=Element, 3=User, 4=Material, 5=Ply, 6=On Edge, 7=On Curve, 8=Data Dependent. | |
INTEGER ARRAY | ||
<cid> | (num) sized array of CIDs (csys_type=3). | |
REAL ARRAY | ||
<results> | (num,6) sized array of tensor results at each element/result type. | |
Output: | ||
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. |
db_post_results_load | () |
Output: | ||
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. |
int DbFPostResultsLoad ()