00001
00002
00004
00005 #include "NullYS2D.h"
00006 #include <math.h>
00007 #include <NullEvolution.h>
00008
00009 NullEvolution NullYS2D::evolModel(0, 1e+20, 1e+20);
00010
00011 #define NULLYS2D_CLASS_TAG -1
00012
00014
00016
00017 NullYS2D::NullYS2D(int tag)
00018 :YieldSurface_BC2D(tag, NULLYS2D_CLASS_TAG, 1, 1, evolModel)
00019
00020 {
00021
00022 }
00023
00024 NullYS2D::~NullYS2D()
00025 {
00026
00027 }
00028
00030
00032 void NullYS2D::setExtent()
00033 {
00034
00035 xPos = 1;
00036 xNeg = -1;
00037 yPos = 1;
00038 yNeg = -1;
00039 }
00040
00041
00042 void NullYS2D::getGradient(double &gx, double &gy, double x, double y)
00043 {
00044 opserr << "ERROR - NullYS2D::getGradient function should not be called\n";
00045 gx = 1;
00046 gy = 1;
00047 }
00048
00049 double NullYS2D::getSurfaceDrift(double x, double y)
00050 {
00051 return -1;
00052 }
00053
00054 YieldSurface_BC *NullYS2D::getCopy(void)
00055 {
00056 NullYS2D *theCopy = new NullYS2D(this->getTag());
00057 return theCopy;
00058 }
00059
00060 int NullYS2D::displaySelf(Renderer &theViewer, int displayMode, float fact)
00061 {
00062 return 0;
00063 }
00064
00065 void NullYS2D::Print(OPS_Stream &s, int flag)
00066 {
00067 s << "\nYield Surface No: " << this->getTag() << " type: NullYS2D\n";
00068 }
00069