$extrastylesheet
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 #include <vector> 00027 00028 namespace libMesh 00029 { 00030 00036 class RBTemporalDiscretization 00037 { 00038 public: 00039 00043 RBTemporalDiscretization(); 00044 00048 Real get_delta_t() const; 00049 void set_delta_t(const Real delta_t_in); 00050 00055 Real get_euler_theta() const; 00056 void set_euler_theta(const Real euler_theta_in); 00057 00061 unsigned int get_time_step() const; 00062 void set_time_step(const unsigned int k); 00063 00067 unsigned int get_n_time_steps() const; 00068 void set_n_time_steps(const unsigned int K); 00069 00073 Real get_control(const unsigned int k) const; 00074 void set_control(const std::vector<Real>& control); 00075 00079 void process_temporal_parameters_file (const std::string& parameters_filename); 00080 00084 void pull_temporal_discretization_data(RBTemporalDiscretization& other); 00085 00086 private: 00087 00091 Real _delta_t; 00092 00100 Real _euler_theta; 00101 00105 unsigned int _current_time_step; 00106 00110 unsigned int _n_time_steps; 00111 00117 std::vector<Real> _control; 00118 00119 }; 00120 00121 } 00122 00123 #endif // LIBMESH_RB_TEMPORAL_DISCRETIZATION_H