transient_rb_evaluation.h
Go to the documentation of this file.
1 // rbOOmit: An implementation of the Certified Reduced Basis method.
2 // Copyright (C) 2009, 2010 David J. Knezevic
3 
4 // This file is part of rbOOmit.
5 
6 // rbOOmit is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 
11 // rbOOmit is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 
20 #ifndef LIBMESH_TRANSIENT_RB_EVALUATION_H
21 #define LIBMESH_TRANSIENT_RB_EVALUATION_H
22 
23 // rbOOmit includes
24 #include "libmesh/rb_evaluation.h"
26 
27 // libMesh includes
28 
29 // C++ includes
30 
31 namespace libMesh
32 {
33 
34 class TransientRBThetaExpansion;
35 
51 {
52 public:
53 
58 
63 
68 
73  virtual void clear() override;
74 
82  virtual void resize_data_structures(const unsigned int Nmax,
83  bool resize_error_bound_data=true) override;
84 
90  virtual Real rb_solve(unsigned int N) override;
91 
97  virtual Real rb_solve_again();
98 
103  virtual Real get_error_bound_normalization() override;
104 
110  virtual Real residual_scaling_numer(Real alpha_LB);
111 
117  virtual Real compute_residual_dual_norm(const unsigned int N) override;
118 
125  virtual Real uncached_compute_residual_dual_norm(const unsigned int N);
126 
132  void cache_online_residual_terms(const unsigned int N);
133 
140  virtual void clear_riesz_representors() override;
141 
148  virtual void legacy_write_offline_data_to_files(const std::string & directory_name = "offline_data",
149  const bool write_binary_data=true) override;
150 
157  virtual void legacy_read_offline_data_from_files(const std::string & directory_name = "offline_data",
158  bool read_error_bound_data=true,
159  const bool read_binary_data=true) override;
160 
161  //----------- PUBLIC DATA MEMBERS -----------//
162 
167 
174 
178  std::vector<DenseMatrix<Number>> RB_M_q_vector;
179 
184  std::vector<std::vector<Number>> RB_outputs_all_k;
185 
190  std::vector<std::vector<Real>> RB_output_error_bounds_all_k;
191 
196 
200  std::vector<DenseVector<Number>> RB_temporal_solution_data;
201 
206  std::vector<Real > error_bound_all_k;
207 
212  std::vector<Real> initial_L2_error_all_N;
213 
218  std::vector<DenseVector<Number>> RB_initial_condition_all_N;
219 
224  std::vector<std::vector<std::vector<Number>>> Fq_Mq_representor_innerprods;
225  std::vector<std::vector<std::vector<Number>>> Mq_Mq_representor_innerprods;
226  std::vector<std::vector<std::vector<std::vector<Number>>>> Aq_Mq_representor_innerprods;
227 
228 
239 
244  std::vector<std::vector<std::unique_ptr<NumericVector<Number>>>> M_q_representor;
245 
250 };
251 
252 }
253 
254 #endif // LIBMESH_TRANSIENT_RB_EVALUATION_H
virtual void resize_data_structures(const unsigned int Nmax, bool resize_error_bound_data=true) override
std::vector< std::vector< std::vector< Number > > > Mq_Mq_representor_innerprods
virtual void legacy_read_offline_data_from_files(const std::string &directory_name="offline_data", bool read_error_bound_data=true, const bool read_binary_data=true) override
virtual Real get_error_bound_normalization() override
std::vector< DenseMatrix< Number > > RB_M_q_vector
virtual Real compute_residual_dual_norm(const unsigned int N) override
virtual Real residual_scaling_numer(Real alpha_LB)
virtual void legacy_write_offline_data_to_files(const std::string &directory_name="offline_data", const bool write_binary_data=true) override
std::vector< std::vector< std::unique_ptr< NumericVector< Number > > > > M_q_representor
TransientRBEvaluation(const Parallel::Communicator &comm_in)
std::vector< std::vector< std::vector< Number > > > Fq_Mq_representor_innerprods
virtual Real uncached_compute_residual_dual_norm(const unsigned int N)
std::vector< std::vector< Real > > RB_output_error_bounds_all_k
virtual void clear() override
std::vector< DenseVector< Number > > RB_initial_condition_all_N
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< DenseVector< Number > > RB_temporal_solution_data
void cache_online_residual_terms(const unsigned int N)
std::vector< std::vector< Number > > RB_outputs_all_k
Encapsulates the details of the generalized Euler discretization.
std::vector< std::vector< std::vector< std::vector< Number > > > > Aq_Mq_representor_innerprods
virtual Real rb_solve(unsigned int N) override
virtual void clear_riesz_representors() override