FiniteDeformationElastic3D.cpp

Go to the documentation of this file.
00001 //===============================================================================
00002 
00003 //# COPYRIGHT (C): Woody's license (by BJ):
00004 
00005 //                 ``This    source  code is Copyrighted in
00006 
00007 //                 U.S.,  for  an  indefinite  period,  and anybody
00008 
00009 //                 caught  using it without our permission, will be
00010 
00011 //                 mighty good friends of ourn, cause we don't give
00012 
00013 //                 a  darn.  Hack it. Compile it. Debug it. Run it.
00014 
00015 //                 Yodel  it.  Enjoy it. We wrote it, that's all we
00016 
00017 //                 wanted to do.''
00018 
00019 //
00020 
00021 //# PROJECT:           Object Oriented Finite Element Program
00022 
00023 //# PURPOSE:           Finite Deformation Hyper-Elastic classes
00024 
00025 //# CLASS:
00026 
00027 //#
00028 
00029 //# VERSION:           0.6_(1803398874989) (golden section)
00030 
00031 //# LANGUAGE:          C++
00032 
00033 //# TARGET OS:         all...
00034 
00035 //# DESIGN:            Zhao Cheng, Boris Jeremic (jeremic@ucdavis.edu)
00036 
00037 //# PROGRAMMER(S):     Zhao Cheng, Boris Jeremic
00038 
00039 //#
00040 
00041 //#
00042 
00043 //# DATE:              19AUg2003
00044 
00045 //# UPDATE HISTORY:    Sept 2003
00046 
00047 //#                    May28, 2004
00048 
00049 //#
00050 
00051 //===============================================================================
00052 
00053 
00054 
00055 #include <FiniteDeformationElastic3D.h>
00056 
00057 
00058 
00059 //-----------------------------------------------------------------------------------------------------------------------------------------------
00060 
00061 FiniteDeformationElastic3D::FiniteDeformationElastic3D(int tag,
00062 
00063                                                        int classTag,
00064 
00065                                                        double rho_in= 0.0)
00066 
00067 :NDMaterial(tag, classTag), rho(rho_in)
00068 
00069 {
00070 
00071 
00072 
00073 }
00074 
00075 
00076 
00077 //------------------------------------------------------------------------------------------------------------------------------------------------
00078 
00079 FiniteDeformationElastic3D::FiniteDeformationElastic3D( )
00080 
00081 :NDMaterial(0, 0), rho(0.0)
00082 
00083 {
00084 
00085 
00086 
00087 }
00088 
00089 
00090 
00091 //------------------------------------------------------------------------------------------------------------------------------------------------
00092 
00093 FiniteDeformationElastic3D::~FiniteDeformationElastic3D()
00094 
00095 {
00096 
00097 
00098 
00099 }
00100 
00101 
00102 
00103 //-------------------------------------------------------------------------------------------------------------------------------------------------
00104 
00105 double FiniteDeformationElastic3D::getRho(void)
00106 
00107 {
00108 
00109    return rho;
00110 
00111 }
00112 
00113 
00114 
00115 //--------------------------------------------------------------------------------------------------------------------------------------------------
00116 
00117 int FiniteDeformationElastic3D::setTrialF(const straintensor &f)
00118 
00119 {
00120 
00121    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00122 
00123    exit (-1);
00124 
00125    return 0;
00126 
00127 }
00128 
00129 
00130 
00131 //---------------------------------------------------------------------------------------------------------------------------------------------------
00132 
00133 int FiniteDeformationElastic3D::setTrialFIncr(const straintensor &df)
00134 
00135 {
00136 
00137    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00138 
00139    exit (-1);
00140 
00141    return 0;
00142 
00143 }
00144 
00145 
00146 
00147 //---------------------------------------------------------------------------------------------------------------------------------------------------
00148 
00149 int FiniteDeformationElastic3D::setTrialC(const straintensor &c)
00150 
00151 {
00152 
00153    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00154 
00155    exit (-1);
00156 
00157    return 0;
00158 
00159 }
00160 
00161 
00162 
00163 //---------------------------------------------------------------------------------------------------------------------------------------------------
00164 
00165 int FiniteDeformationElastic3D::setTrialCIncr(const straintensor &dc)
00166 
00167 {
00168 
00169    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00170 
00171    exit (-1);
00172 
00173    return 0;
00174 
00175 }
00176 
00177 
00178 
00179 //-----------------------------------------------------------------------------------------------------------------------------------------------------
00180 
00181 const straintensor& FiniteDeformationElastic3D::getF(void)
00182 
00183 {
00184 
00185    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00186 
00187    exit (-1);
00188 
00189    // Just to make it compile
00190 
00191    straintensor *ret = new straintensor;
00192 
00193    return *ret;
00194 
00195 }
00196 
00197 
00198 
00199 //-----------------------------------------------------------------------------------------------------------------------------------------------------
00200 
00201 const straintensor& FiniteDeformationElastic3D::getC(void)
00202 
00203 {
00204 
00205    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00206 
00207    exit (-1);
00208 
00209    // Just to make it compile
00210 
00211    straintensor *ret = new straintensor;
00212 
00213    return *ret;
00214 
00215 
00216 
00217 }
00218 
00219 
00220 
00221 //------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00222 
00223 const Tensor& FiniteDeformationElastic3D::getTangentTensor(void)
00224 
00225 {
00226 
00227    exit (-1);
00228 
00229    // Just to make it compile
00230 
00231    Tensor *ret = new Tensor;
00232 
00233    return *ret;
00234 
00235 }
00236 
00237 
00238 
00239 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00240 
00241 const Tensor
00242 
00243 &FiniteDeformationElastic3D::getInitialTangentTensor(void)
00244 
00245 {
00246 
00247    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00248 
00249    exit (-1);
00250 
00251    // Just to make it compile
00252 
00253    Tensor *ret = new Tensor;
00254 
00255    return *ret;
00256 
00257 }
00258 
00259 //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00260 
00261 const straintensor& FiniteDeformationElastic3D::getStrainTensor(void)
00262 
00263 {
00264 
00265    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00266 
00267    exit (-1);
00268 
00269    // Just to make it compile
00270 
00271    straintensor *ret = new straintensor;
00272 
00273    return *ret;
00274 
00275 }
00276 
00277 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00278 
00279 const stresstensor& FiniteDeformationElastic3D::getStressTensor(void)
00280 
00281 {
00282 
00283    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00284 
00285    exit (-1);
00286 
00287    stresstensor *ret = new stresstensor; 
00288 
00289    return *ret;
00290 
00291 }
00292 
00293 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00294 
00295 const stresstensor& FiniteDeformationElastic3D::getPK1StressTensor(void)
00296 
00297 {
00298 
00299    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00300 
00301    exit (-1);
00302 
00303    stresstensor *ret = new stresstensor; 
00304 
00305    return *ret;
00306 
00307 }
00308 
00309 //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00310 
00311 const stresstensor& FiniteDeformationElastic3D::getCauchyStressTensor(void)
00312 
00313 {
00314 
00315    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00316 
00317    exit (-1);
00318 
00319    stresstensor *ret = new stresstensor; 
00320 
00321    return *ret;
00322 
00323 }
00324 
00325 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00326 
00327 int FiniteDeformationElastic3D::commitState (void)
00328 
00329 {
00330 
00331    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00332 
00333    exit (-1);
00334 
00335    return -1;
00336 
00337 }
00338 
00339 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00340 
00341 int FiniteDeformationElastic3D::revertToLastCommit (void)
00342 
00343 {
00344 
00345    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00346 
00347    exit (-1);
00348 
00349    return -1;
00350 
00351 }
00352 
00353 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00354 
00355 int FiniteDeformationElastic3D::revertToStart (void)
00356 
00357 {
00358 
00359    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00360 
00361    exit (-1);
00362 
00363    return -1;
00364 
00365 }
00366 
00367 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00368 
00369 NDMaterial * FiniteDeformationElastic3D::getCopy (void)
00370 
00371 {
00372 
00373    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00374 
00375    exit (-1);
00376 
00377    return 0;
00378 
00379 }
00380 
00381 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00382 
00383 NDMaterial * FiniteDeformationElastic3D::getCopy (const char *type)
00384 
00385 {
00386 
00387    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00388 
00389    exit (-1);
00390 
00391    return 0;
00392 
00393 }
00394 
00395 //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00396 
00397 const char* FiniteDeformationElastic3D::getType (void) const
00398 
00399 {
00400 
00401    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00402 
00403    exit (-1);
00404 
00405    return 0;
00406 
00407 }
00408 
00410 
00411 //int FiniteDeformationElastic3D::getOrder (void) const
00412 
00413 //{
00414 
00415 //   opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00416 
00417 //   exit (-1);
00418 
00419 //   return 0;
00420 
00421 //}
00422 
00423 //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00424 
00425 int FiniteDeformationElastic3D::sendSelf (int commitTag, Channel &theChannel)
00426 
00427 {
00428 
00429    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00430 
00431    exit (-1);
00432 
00433    return 0;
00434 
00435 }
00436 
00437 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00438 
00439 int FiniteDeformationElastic3D::recvSelf (int commitTag,
00440 
00441                                           Channel &theChannel,
00442 
00443                                           FEM_ObjectBroker &theBroker)
00444 
00445 {
00446 
00447    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00448 
00449    exit (-1);
00450 
00451    return 0;
00452 
00453 }
00454 
00455 
00456 
00457 //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
00458 
00459 void FiniteDeformationElastic3D::Print (OPS_Stream &s, int flag)
00460 
00461 {
00462 
00463    opserr << "FiniteDeformationElastic3D-- subclass responsibility\n";
00464 
00465    exit (-1);
00466 
00467    return;
00468 
00469 }

Generated on Mon Oct 23 15:05:14 2006 for OpenSees by doxygen 1.5.0