示例#1
0
Mesh *OPS_getMesh(int tag) {

    TaggedObject *theResult = theMeshObjects.getComponentPtr(tag);
    if (theResult == 0) {
        return 0;
    }
    Mesh *theMsh = (Mesh *)theResult;

    return theMsh;
}
示例#2
0
UniaxialMaterial *OPS_getUniaxialMaterial(int tag) {

  TaggedObject *theResult = theUniaxialMaterialObjects.getComponentPtr(tag);
  if (theResult == 0) {
    opserr << "UniaxialMaterial *getUniaxialMaterial(int tag) - none found with tag: " << tag << endln;
    return 0;
  }
  UniaxialMaterial *theMat = (UniaxialMaterial *)theResult;

  return theMat;
}
示例#3
0
CrdTransf *OPS_GetCrdTransf(int tag) {

    TaggedObject *theResult = theCrdTransfObjects.getComponentPtr(tag);
    if (theResult == 0) {
        opserr << "CrdTransf *getCrdTransf(int tag) - none found with tag: " << tag << endln;
        return 0;
    }
    CrdTransf *theSeries = (CrdTransf *)theResult;

    return theSeries;
}