CompressibleMooneyRivlinMaterialLaw.hpp

00001 /*
00002 
00003 Copyright (C) University of Oxford, 2005-2011
00004 
00005 University of Oxford means the Chancellor, Masters and Scholars of the
00006 University of Oxford, having an administrative office at Wellington
00007 Square, Oxford OX1 2JD, UK.
00008 
00009 This file is part of Chaste.
00010 
00011 Chaste is free software: you can redistribute it and/or modify it
00012 under the terms of the GNU Lesser General Public License as published
00013 by the Free Software Foundation, either version 2.1 of the License, or
00014 (at your option) any later version.
00015 
00016 Chaste is distributed in the hope that it will be useful, but WITHOUT
00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
00019 License for more details. The offer of Chaste under the terms of the
00020 License is subject to the License being interpreted in accordance with
00021 English Law and subject to any action against the University of Oxford
00022 being under the jurisdiction of the English Courts.
00023 
00024 You should have received a copy of the GNU Lesser General Public License
00025 along with Chaste. If not, see <http://www.gnu.org/licenses/>.
00026 
00027 */
00028 
00029 
00030 #ifndef COMPRESSIBLEMOONEYRIVLINMATERIALLAW_HPP_
00031 #define COMPRESSIBLEMOONEYRIVLINMATERIALLAW_HPP_
00032 
00033 #include "AbstractIsotropicCompressibleMaterialLaw.hpp"
00034 #include "Exception.hpp"
00035 
00036 
00037 
00058 template<unsigned DIM>
00059 class CompressibleMooneyRivlinMaterialLaw : public AbstractIsotropicCompressibleMaterialLaw<DIM>
00060 {
00061 private :
00063     double mC1;
00064 
00066     double mC3;
00067 
00069     static const double mMinusOneOverDimension = -1.0/DIM;
00070 public :
00071 
00079     double Get_dW_dI1(double I1, double I2, double I3)
00080     {
00081         return mC1 * pow(I3, mMinusOneOverDimension);
00082     }
00083 
00091     double Get_dW_dI2(double I1, double I2, double I3)
00092     {
00093         return 0.0;
00094     }
00095 
00103     double Get_dW_dI3(double I1, double I2, double I3)
00104     {
00105         return     mC1*I1*mMinusOneOverDimension*pow(I3,mMinusOneOverDimension - 1)
00106                 +  mC3*(1 - pow(I3,-0.5));
00107     }
00108 
00116     double Get_d2W_dI1(double I1, double I2, double I3)
00117     {
00118         return 0.0;
00119     }
00120 
00121 
00129     double Get_d2W_dI2(double I1, double I2, double I3)
00130     {
00131         return 0.0;
00132     }
00133 
00134 
00142     double Get_d2W_dI3(double I1, double I2, double I3)
00143     {
00144         return    mC1*I1*mMinusOneOverDimension*(mMinusOneOverDimension - 1)*pow(I3,mMinusOneOverDimension - 2)
00145                 + 0.5*mC3*pow(I3,-1.5);
00146     }
00147 
00148 
00149 
00157     double Get_d2W_dI2I3(double I1, double I2, double I3)
00158     {
00159         return 0.0;
00160     }
00161 
00162 
00170     double Get_d2W_dI1I3(double I1, double I2, double I3)
00171     {
00172         return mC1*mMinusOneOverDimension*pow(I3,mMinusOneOverDimension-1);
00173     }
00174 
00175 
00183     double Get_d2W_dI1I2(double I1, double I2, double I3)
00184     {
00185         return 0.0;
00186     }
00187 
00188 
00190     double GetC1()
00191     {
00192         return mC1;
00193     }
00194 
00196     double GetC3()
00197     {
00198         return mC3;
00199     }
00200 
00207     CompressibleMooneyRivlinMaterialLaw(double c1, double c3)
00208     {
00209         assert(c1 > 0.0);
00210         mC1 = c1;
00211         mC3 = c3;
00212     }
00213 
00219     void ScaleMaterialParameters(double scaleFactor)
00220     {
00221         assert(scaleFactor > 0.0);
00222         mC1 /= scaleFactor;
00223         mC3 /= scaleFactor;
00224     }
00225 };
00226 
00227 
00228 #endif /*COMPRESSIBLEMOONEYRIVLINMATERIALLAW_HPP_*/

Generated on Tue May 31 14:31:48 2011 for Chaste by  doxygen 1.5.5