NashHunterPoleZeroLaw.cpp

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 #include "NashHunterPoleZeroLaw.hpp"
00030 
00031 template<>
00032 NashHunterPoleZeroLaw<3>::NashHunterPoleZeroLaw()
00033         : PoleZeroMaterialLaw<3>()
00034 {
00035     std::vector<std::vector<double> > k(3),a(3),b(3);
00036     for (unsigned i=0; i<3; i++)
00037     {
00038         k[i].resize(3);
00039         a[i].resize(3);
00040         b[i].resize(3);
00041     }
00042 
00044     // Everything here has been entered in kPa.
00045     // All contraction models should return Ta in kPa.
00047     k[0][0] = 2; //ff
00048     k[1][0] = k[0][1] = 1; //fs
00049     k[0][2] = k[2][0] = 1; //fn
00050     k[1][1] = 2; //ss
00051     k[1][2] = k[2][1] = 1; //sn
00052     k[2][2] = 2; //nn
00053 
00054     // dimensionless
00055     a[0][0] = 0.475; //ff
00056     a[1][0] = a[0][1] = 0.8; //fs
00057     a[2][0] = a[0][2] = 0.8; //fn
00058     a[1][1] = 0.619; //ss
00059     a[2][1] = a[1][2] = 0.8; //sn
00060     a[2][2] = 0.943; //nn
00061 
00062     // dimensionless
00063     b[0][0] = 1.5;
00064     b[1][0] = b[0][1] = 1.2;
00065     b[2][0] = b[0][2] = 1.2;
00066     b[1][1] = 1.5;
00067     b[2][1] = b[1][2] = 1.2;
00068     b[2][2] = 0.442;
00069 
00070     this->SetParameters(k,a,b);
00071 }
00072 
00073 template<>
00074 NashHunterPoleZeroLaw<2>::NashHunterPoleZeroLaw()
00075         : PoleZeroMaterialLaw<2>()
00076 {
00077     std::vector<std::vector<double> > k(2),a(2),b(2);
00078     for (unsigned i=0; i<2; i++)
00079     {
00080         k[i].resize(2);
00081         a[i].resize(2);
00082         b[i].resize(2);
00083     }
00084 
00085     k[0][0] = 2; //ff
00086     k[1][0] = k[0][1] = 1; //fs
00087     k[1][1] = 2; //ss
00088 
00089     a[0][0] = 0.475; //ff
00090     a[1][0] = a[0][1] = 0.8; //fs
00091     a[1][1] = 0.619; //ss
00092 
00093     b[0][0] = 1.5;
00094     b[1][0] = b[0][1] = 1.2;
00095     b[1][1] = 1.5;
00096 
00097     this->SetParameters(k,a,b);
00098 }
00099 
00101 // Explicit instantiation
00103 
00104 template class NashHunterPoleZeroLaw<2>;
00105 template class NashHunterPoleZeroLaw<3>;
Generated on Thu Dec 22 13:00:05 2011 for Chaste by  doxygen 1.6.3