rb_temporal_discretization.h
Go to the documentation of this file.00001 // rbOOmit: An implementation of the Certified Reduced Basis method. 00002 // Copyright (C) 2009, 2010 David J. Knezevic 00003 00004 // This file is part of rbOOmit. 00005 00006 // rbOOmit is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License, or (at your option) any later version. 00010 00011 // rbOOmit is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 #ifndef LIBMESH_RB_TEMPORAL_DISCRETIZATION_H 00021 #define LIBMESH_RB_TEMPORAL_DISCRETIZATION_H 00022 00023 // libMesh includes 00024 #include "libmesh/libmesh_common.h" 00025 00026 namespace libMesh 00027 { 00028 00034 class RBTemporalDiscretization 00035 { 00036 public: 00037 00041 RBTemporalDiscretization(); 00042 00046 Real get_delta_t() const; 00047 void set_delta_t(const Real delta_t_in); 00048 00053 Real get_euler_theta() const; 00054 void set_euler_theta(const Real euler_theta_in); 00055 00059 unsigned int get_time_step() const; 00060 void set_time_step(const unsigned int k); 00061 00065 unsigned int get_n_time_steps() const; 00066 void set_n_time_steps(const unsigned int K); 00067 00071 void process_temporal_parameters_file (const std::string& parameters_filename); 00072 00076 void pull_temporal_discretization_data(RBTemporalDiscretization& other); 00077 00078 private: 00079 00083 Real _delta_t; 00084 00092 Real _euler_theta; 00093 00097 unsigned int _current_time_step; 00098 00102 unsigned int _n_time_steps; 00103 00104 }; 00105 00106 } 00107 00108 #endif // LIBMESH_RB_TEMPORAL_DISCRETIZATION_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:48 UTC
Hosted By: