Ejemplo n.º 1
0
Mesh *OPS_getMesh(int tag) {

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

    return theMsh;
}
Ejemplo n.º 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;
}
Ejemplo n.º 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;
}