NashHunterPoleZeroLaw.cpp

00001 /*
00002 
00003 Copyright (C) University of Oxford, 2005-2009
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     // Currently the NHS cellular model returns the active tension
00046     // in kPa so no scaling is needed
00048     k[0][0] = 2; //ff
00049     k[1][0] = k[0][1] = 1; //fs
00050     k[0][2] = k[2][0] = 1; //fn
00051     k[1][1] = 2; //ss
00052     k[1][2] = k[2][1] = 1; //sn
00053     k[2][2] = 2; //nn
00054 
00055     // dimensionless
00056     a[0][0] = 0.475; //ff
00057     a[1][0] = a[0][1] = 0.8; //fs
00058     a[2][0] = a[0][2] = 0.8; //fn
00059     a[1][1] = 0.619; //ss
00060     a[2][1] = a[1][2] = 0.8; //sn
00061     a[2][2] = 0.943; //nn
00062 
00063     // dimensionless
00064     b[0][0] = 1.5;
00065     b[1][0] = b[0][1] = 1.2;
00066     b[2][0] = b[0][2] = 1.2;
00067     b[1][1] = 1.5;
00068     b[2][1] = b[1][2] = 1.2;
00069     b[2][2] = 0.442;
00070 
00071     this->SetParameters(k,a,b);
00072 }
00073 
00074 template<>
00075 NashHunterPoleZeroLaw<2>::NashHunterPoleZeroLaw()
00076         : PoleZeroMaterialLaw<2>()
00077 {
00078     std::vector<std::vector<double> > k(2),a(2),b(2);
00079     for(unsigned i=0; i<2; i++)
00080     {
00081         k[i].resize(2);
00082         a[i].resize(2);
00083         b[i].resize(2);
00084     }
00085 
00086     k[0][0] = 2; //ff
00087     k[1][0] = k[0][1] = 1; //fs
00088     k[1][1] = 2; //ss
00089 
00090     a[0][0] = 0.475; //ff
00091     a[1][0] = a[0][1] = 0.8; //fs
00092     a[1][1] = 0.619; //ss
00093 
00094     b[0][0] = 1.5;
00095     b[1][0] = b[0][1] = 1.2;
00096     b[1][1] = 1.5;
00097 
00098     this->SetParameters(k,a,b);
00099 }
00100 
00101 
00103 // Explicit instantiation
00105 
00106 template class NashHunterPoleZeroLaw<2>;
00107 template class NashHunterPoleZeroLaw<3>;

Generated on Wed Mar 18 12:51:56 2009 for Chaste by  doxygen 1.5.5