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:
00062 
00064     double mC1;
00065 
00067     double mC3;
00068 
00070     static const double mMinusOneOverDimension = -1.0/DIM;
00071 
00072 public:
00073 
00081     double Get_dW_dI1(double I1, double I2, double I3)
00082     {
00083         return mC1 * pow(I3, mMinusOneOverDimension);
00084     }
00085 
00093     double Get_dW_dI2(double I1, double I2, double I3)
00094     {
00095         return 0.0;
00096     }
00097 
00105     double Get_dW_dI3(double I1, double I2, double I3)
00106     {
00107         return     mC1*I1*mMinusOneOverDimension*pow(I3,mMinusOneOverDimension - 1)
00108                 +  mC3*(1 - pow(I3,-0.5));
00109     }
00110 
00118     double Get_d2W_dI1(double I1, double I2, double I3)
00119     {
00120         return 0.0;
00121     }
00122 
00123 
00131     double Get_d2W_dI2(double I1, double I2, double I3)
00132     {
00133         return 0.0;
00134     }
00135 
00136 
00144     double Get_d2W_dI3(double I1, double I2, double I3)
00145     {
00146         return    mC1*I1*mMinusOneOverDimension*(mMinusOneOverDimension - 1)*pow(I3,mMinusOneOverDimension - 2)
00147                 + 0.5*mC3*pow(I3,-1.5);
00148     }
00149 
00150 
00151 
00159     double Get_d2W_dI2I3(double I1, double I2, double I3)
00160     {
00161         return 0.0;
00162     }
00163 
00164 
00172     double Get_d2W_dI1I3(double I1, double I2, double I3)
00173     {
00174         return mC1*mMinusOneOverDimension*pow(I3,mMinusOneOverDimension-1);
00175     }
00176 
00177 
00185     double Get_d2W_dI1I2(double I1, double I2, double I3)
00186     {
00187         return 0.0;
00188     }
00189 
00190 
00192     double GetC1()
00193     {
00194         return mC1;
00195     }
00196 
00198     double GetC3()
00199     {
00200         return mC3;
00201     }
00202 
00209     CompressibleMooneyRivlinMaterialLaw(double c1, double c3)
00210     {
00211         assert(c1 > 0.0);
00212         mC1 = c1;
00213         mC3 = c3;
00214     }
00215 
00221     void ScaleMaterialParameters(double scaleFactor)
00222     {
00223         assert(scaleFactor > 0.0);
00224         mC1 /= scaleFactor;
00225         mC3 /= scaleFactor;
00226     }
00227 };
00228 
00229 
00230 #endif /*COMPRESSIBLEMOONEYRIVLINMATERIALLAW_HPP_*/
Generated on Thu Dec 22 13:00:05 2011 for Chaste by  doxygen 1.6.3