$treeview $search $mathjax
Palabos  Version 1.1
$projectbrief
$projectbrief
$searchbox

carreauGlobalDefs.h

Go to the documentation of this file.
00001 /* This file is part of the Palabos library.
00002  *
00003  * Copyright (C) 2011 FlowKit Sarl
00004  * Avenue de Chailly 23
00005  * 1012 Lausanne, Switzerland
00006  * E-mail contact: contact@flowkit.com
00007  *
00008  * The most recent release of Palabos can be downloaded at 
00009  * <http://www.palabos.org/>
00010  *
00011  * The library Palabos is free software: you can redistribute it and/or
00012  * modify it under the terms of the GNU Affero General Public License as
00013  * published by the Free Software Foundation, either version 3 of the
00014  * License, or (at your option) any later version.
00015  *
00016  * The library is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Affero General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Affero General Public License
00022  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00023 */
00024 
00025 /* Main author: Orestis Malaspinas
00026  */
00027 
00031 #ifndef CARREAU_GLOBAL_DEFS_H
00032 #define CARREAU_GLOBAL_DEFS_H
00033 
00034 #include "core/globalDefs.h"
00035 
00036 namespace plb {
00037 
00038 namespace global {
00039 
00040 class CarreauParametersClass
00041 {
00042 public:
00043     void setNu0(double nu0_);
00044         void setNuInf(double nuInf_);
00045     void setLambda(double lambda_);
00046     void setExponent(double n_);
00047     
00048     double getNu0() const;
00049         double getNuInf() const;
00050     double getLambda() const;
00051     double getExponent() const;
00052 private:
00053     CarreauParametersClass() {   };
00054 private:
00055     double nu0, nuInf, lambda, n;
00056     friend CarreauParametersClass& CarreauParameters();
00057 };
00058     
00059 inline CarreauParametersClass& CarreauParameters() {
00060     static CarreauParametersClass singleton;
00061     return singleton;
00062 }
00063 
00064 }  // namespace global
00065 
00066 }  // namespace plb
00067 
00068 #endif  // CARREAU_GLOBAL_DEFS_H