brookscoreyparams.hh 2.6 KB
 Andreas Lauser committed Dec 16, 2011 1 2 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- // vi: set et ts=4 sw=4 sts=4:  Bernd Flemisch committed Jul 14, 2010 3 /*****************************************************************************  Bernd Flemisch committed Aug 27, 2012 4  * See the file COPYING for full copying permissions. *  Bernd Flemisch committed Jul 14, 2010 5  * *  Andreas Lauser committed Jan 04, 2011 6  * This program is free software: you can redistribute it and/or modify *  Bernd Flemisch committed Jul 14, 2010 7  * it under the terms of the GNU General Public License as published by *  Andreas Lauser committed Jan 04, 2011 8 9  * the Free Software Foundation, either version 2 of the License, or * * (at your option) any later version. *  Bernd Flemisch committed Jul 14, 2010 10  * *  Andreas Lauser committed Jan 04, 2011 11 12  * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of *  Christoph Grueninger committed Sep 18, 2012 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *  Andreas Lauser committed Jan 04, 2011 14 15 16 17  * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see . *  Bernd Flemisch committed Jul 14, 2010 18  *****************************************************************************/  Philipp Nuske committed Nov 11, 2010 19   Bernd Flemisch committed Jul 14, 2010 20 21 22 /*! * \file *  Philipp Nuske committed Nov 11, 2010 23 24  * \brief Specification of the material parameters * for the Brooks Corey constitutive relations.  Bernd Flemisch committed Jul 14, 2010 25 26 27 28 29 30 31 32 33 34  */ #ifndef DUMUX_BROOKS_COREY_PARAMS_HH #define DUMUX_BROOKS_COREY_PARAMS_HH #include namespace Dumux { /*!  Philipp Nuske committed Nov 11, 2010 35 36 37 38 39 40  * \brief Specification of the material parameters * for the Brooks Corey constitutive relations. * * \ingroup fluidmatrixinteractionsparams * *\see BrooksCorey  Bernd Flemisch committed Jul 14, 2010 41 42 43 44 45 46 47 48 49 50 51 52  */ template class BrooksCoreyParams { public: typedef ScalarT Scalar; BrooksCoreyParams() { Valgrind::SetUndefined(*this); }  Holger Class committed Mar 31, 2011 53 54  BrooksCoreyParams(Scalar pe, Scalar lambda) : pe_(pe), lambda_(lambda)  Bernd Flemisch committed Jul 14, 2010 55 56 57 58  { } /*!  Alexander Kissinger committed Sep 08, 2015 59  * \brief Returns the entry pressure in \f$\mathrm{[Pa]}\f$  Bernd Flemisch committed Jul 14, 2010 60 61 62 63 64  */ Scalar pe() const { return pe_; } /*!  Alexander Kissinger committed Sep 08, 2015 65  * \brief Set the entry pressure in \f$\mathrm{[Pa]}\f$]  Bernd Flemisch committed Jul 14, 2010 66 67 68 69 70 71  */ void setPe(Scalar v) { pe_ = v; } /*!  Alexander Kissinger committed Sep 08, 2015 72  * \brief Returns the lambda shape parameter \f$\mathrm{[-]}\f$  Bernd Flemisch committed Jul 14, 2010 73  */  Holger Class committed Mar 31, 2011 74 75  Scalar lambda() const { return lambda_; }  Bernd Flemisch committed Jul 14, 2010 76 77  /*!  Alexander Kissinger committed Sep 08, 2015 78  * \brief Set the lambda shape parameter \f$\mathrm{[-]}\f$  Bernd Flemisch committed Jul 14, 2010 79  */  Holger Class committed Mar 31, 2011 80 81  void setLambda(Scalar v) { lambda_ = v; }  Bernd Flemisch committed Jul 14, 2010 82 83 84  private: Scalar pe_;  Holger Class committed Mar 31, 2011 85  Scalar lambda_;  Bernd Flemisch committed Jul 14, 2010 86 };  Bernd Flemisch committed Jan 03, 2012 87 } // namespace Dumux  Bernd Flemisch committed Jul 14, 2010 88 89  #endif