GetDatabaseInfo

<< Click to Display Table of Contents >>

Navigation:  Flexcom > Theory > Postprocessing > Custom Postprocessing > Database Access Routines > Database Access Routines >

GetDatabaseInfo

Previous pageNext page

GetDatabaseInfo Function

Returns information about the database files and the model.

Syntax

Value = GetDatabaseInfo( 

  revdbm, 

  revdbf, 

  versiondbm, 

  versiondbf, 

  no_parameters, 

  model_parameters, 

  filenamepath)

 

Description of arguments

Argument

Description

revdbm

Revision number of the motion database file. Integer scalar (output).

-1 – file is corrupted.

0 – file  does not exist.

a positive value indicates a valid database file.

revdbf

Revision number of the force database file. Integer scalar (output).

-1 – file is corrupted.

0 – file does not exist.

a positive value indicates a valid database file.

versiondbm

Version information for the motion database file. Integer array of dimension 5 (output). The following are stored:

1 – Major Version Number

2 – Minor Version Number

3 – Maintenance Version Number

4 – Month of Release

5 – Year of Release

versiondbf

Version information for the force database file. Integer array of dimension 5 (output). The following are stored:

1 – Major Version Number

2 – Minor Version Number

3 – Maintenance Version Number

4 – Month of Release

5 – Year of Release

no_parameters

Number of model parameters. Integer scalar (input).

model_parameters

Integer array of dimension no_parameters (output), which holds model information. Items in model_parameters:


Index

Value represents


1

Number of outputted time-steps to the database


2

Number of elements in the model


3

Number of elements stored in the database


4

Number of nodes stored in the database


5

Number of auxiliary elements in the model


6

Number of auxiliary nodes in the model


7

Number of labels


8

Number of nodes with assigned boundary conditions


9

Number of flat guide surfaces


10

Number of zero-gap guides


11

Number of pipe-in-pipe sections


12

Number of pipe-in-pipe connections


13

Number of clashing regions


14

Number of maximum force/strain points resulting from the processing of the nonlinear direct stress-strain relationships

filenamepath

Analysis file name or the full path to the analysis filename. Character string of unspecified length (input). If the full path is not used, then this variable refers to a path relative to your Database Access executable.

 

Return Value

Value

Description

-3

Model details could not be read; check values of revdbm and revdbf

-2

The value specified as number of parameters is not a number

-1

Path is null

0

Successful

A positive value

The number of model parameters specified is too small. Call funtion again substituting the returned value in no_parameters