[Next] [Up] [Back] [Previous] [Contents]

3.41 DIRHB


Calling sequence : CALL DIRHB (CNAME, INMENU, CTYPE, INDEX1, INDEX2, IEXIST, NCALC, ANAME, IEXIT, IUNT)

Purpose : 'To enter result component definitions for an attribute.

Parameters :

  In
  CNAME   Component name (Character*8)
  INMENU   Whether component name to be included in menu (Integer)
0   Not included in menu
1   Included in menu
  CTYPE   Component type (Integer)
0   Enumerative
1   Scalar
2   Vector, three cartesian components and optionally three rotations
3   Vector, magnitude and three direction cosines
4   Matrix
5   Homogeneous Transformation Matrix
11   Complex version of 1
12   Complex version of 2
13   Complex version of 3
14   Complex version of 4
  INDEX1   Component index (Integer)

If CTYPE = 2, cartesian component

1   X component
2   Y component
3   Z component
4   Rotation about X axis
5   Rotation about Y axis
6   Rotation about Z axis
If CTYPE = 3
1   Magnitude
2   Direction cosines for X axis
3   Direction cosines for Y axis
4   Direction cosines for Z axis

If CTYPE = 4

Row number in matrix

  INDEX2   Column number in matrix, only used for CTYPE = 4 (Integer)
  IEXIST   Whether results to be calculated (Integer)
0 Exists as data in results record
1 To be calculated by FEMVIEW calculations
<0 For CTYPE=0, means length of current enumerative list (max 5)
  NCALC   FEMVIEW calculation type, (See Appendix 2) (Character*8)
  ANAME   Name of attribute to be used in calculation (Character*8)
  IUNT     Temporary file channel number (Integer)

  Out
  IEXIT   Error condition (Integer)

Use: This routine is used to enter information about each component in a result attribute. This routine must be called immediately after routine DIRHA.

The routine is called once for each component to be defined for the current attribute. The number of result components entered must be consistent with the input to routine DIRHA previously.

For full details on enumerative data see the Appendices to the FEMGV User Manual.

A list of valid FEMVIEW calculation types is given in Appendix 2 of this document.

Errors : The error condition is indicated by the value of IEXIT.

IEXIT Meaning

0   Successful call
32   Current error must be cleared up first
129   Error in writing to temporary file on unit (iunt)
161   Attribute header expected
162   No more component definitions expected
171   Invalid length for current enumerative list (iexist)
185   Invalid menu inclusion indicator (inmenu)
186   Invalid component type (ctype)
187   Invalid sub-component index (index1)
188   Invalid matrix column (index2)
189   Invalid calculation indicator (iexist)
191   Invalid calculation type name (ncalc)
211   Invalid temporary file unit number (iunt)



[Next] [Up] [Back] [Previous] [Contents]