Obtaining Sensor Information

Given the user-defined name for a sensor, utility routines can be used to obtain the sensor ID or the sensor value using a computationally efficient searching technique.

Utility routines IGETSENSORID and GETSENSORVALUE can be called only from Abaqus/Standard user subroutine UAMP. Utility routines IVGETSENSORID and VGETSENSORVALUE can be called only from Abaqus/Explicit user subroutine VUAMP.

This page discusses:

Utility Routine Interface

     character*80 mySensorName
     ...

     iMySensorID =  IGETSENSORID(mySensorName, jSensorLookUpTable )
     iMySensorID = IVGETSENSORID(mySensorName, jSensorLookUpTable )
     dMySensorValue = sensorValues(iMySensorID)
     ...
     dMySensorValue =   GETSENSORVALUE(mySensorName, 
C                       jSensorLookUpTable, sensorValues )
     dMySensorValue =  VGETSENSORVALUE(mySensorName,  
C                      jSensorLookUpTable, sensorValues )
     ...

Variables to Be Provided to the Utility Routine

mySensorName

User-defined character string, uppercase, left justified.

jSensorLookUpTable

Pointer to an object containing a binary tree look up table for sensors. The calling user subroutine provides this variable.

sensorValues

Array containing the latest sensor values for all sensors in the model.

Variables Returned from the Utility Routine

iMySensorID

Index in the sensorValues array for this sensor name.

dMySensorValue

Sensor value for this sensor name.