20#ifndef LIBMESH_TRANSIENT_RB_EVALUATION_H
21#define LIBMESH_TRANSIENT_RB_EVALUATION_H
24#include "libmesh/rb_evaluation.h"
25#include "libmesh/rb_temporal_discretization.h"
34class TransientRBThetaExpansion;
80 virtual void clear()
override;
90 bool resize_error_bound_data=
true)
override;
158 const bool write_binary_data=
true)
override;
167 bool read_error_bound_data=
true,
168 const bool read_binary_data=
true)
override;
Defines a dense matrix for use in Finite Element-type computations.
Defines a dense vector for use in Finite Element-type computations.
This class is part of the rbOOmit framework.
virtual Real rb_solve(unsigned int N)
Perform online solve with the N RB basis functions, for the set of parameters in current_params,...
virtual Real compute_residual_dual_norm(const unsigned int N)
Compute the dual norm of the residual for the solution saved in RB_solution_vector.
Define a class that encapsulates the details of a "generalized Euler" temporal discretization to be u...
This class is part of the rbOOmit framework.
virtual Real get_error_bound_normalization() override
std::vector< std::vector< Real > > RB_output_error_bounds_all_k
The error bounds for each RB output for all time-levels from the most recent rb_solve.
std::vector< std::vector< std::vector< std::vector< Number > > > > Aq_Mq_representor_innerprods
TransientRBEvaluation(TransientRBEvaluation &&)=default
Special functions.
TransientRBEvaluation(const TransientRBEvaluation &)=delete
std::vector< std::vector< Number > > RB_outputs_all_k
The RB outputs for all time-levels from the most recent rb_solve.
DenseVector< Number > RB_RHS_save
virtual void clear() override
Clear this TransientRBEvaluation object.
TransientRBEvaluation & operator=(const TransientRBEvaluation &)=delete
Number cached_Fq_term
Cached residual terms.
std::vector< std::vector< std::vector< Number > > > Mq_Mq_representor_innerprods
virtual ~TransientRBEvaluation()
std::vector< std::vector< std::vector< Number > > > Fq_Mq_representor_innerprods
Vectors storing the residual representor inner products to be used in computing the residuals online.
void cache_online_residual_terms(const unsigned int N)
Helper function for caching the terms in the online residual assembly that do not change in time.
DenseMatrix< Number > RB_LHS_matrix
Cached data for subsequent solves.
std::vector< Real > error_bound_all_k
The error bound data for all time-levels from the most recent rb_solve.
DenseMatrix< Number > RB_L2_matrix
Dense RB L2 matrix.
virtual void resize_data_structures(const unsigned int Nmax, bool resize_error_bound_data=true) override
Resize and clear the data vectors corresponding to the value of Nmax.
DenseVector< Number > cached_Fq_Mq_vector
virtual Real uncached_compute_residual_dual_norm(const unsigned int N)
Compute the dual norm of the residual for the solution saved in RB_solution.
std::vector< std::vector< std::unique_ptr< NumericVector< Number > > > > M_q_representor
Vector storing the mass matrix representors.
DenseVector< Number > cached_Fq_Aq_vector
DenseMatrix< Number > cached_Aq_Mq_matrix
std::vector< Real > initial_L2_error_all_N
Vector storing initial L2 error for all 1 <= N <= RB_size.
bool _rb_solve_data_cached
Check that the data has been cached in case of using rb_solve_again.
std::vector< DenseMatrix< Number > > RB_M_q_vector
Dense matrices for the RB mass matrices.
DenseMatrix< Number > RB_RHS_matrix
DenseVector< Number > old_RB_solution
The RB solution at the previous time-level.
DenseMatrix< Number > cached_Aq_Aq_matrix
std::vector< DenseVector< Number > > RB_temporal_solution_data
Array storing the solution data at each time level from the most recent solve.
std::vector< DenseVector< Number > > RB_initial_condition_all_N
The RB initial conditions (i.e.
virtual Real rb_solve_again()
If a solve has already been performed, then we cached some data and we can perform a new solve much m...
virtual Real residual_scaling_numer(Real alpha_LB)
Specifies the residual scaling on the numerator to be used in the a posteriori error bound.
virtual Real compute_residual_dual_norm(const unsigned int N) override
Compute the dual norm of the residual for the solution saved in RB_solution_vector.
DenseMatrix< Number > cached_Mq_Mq_matrix
RBEvaluation Parent
The type of the parent.
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
Read in the saved Offline reduced basis data to initialize the system for Online solves.
virtual void clear_riesz_representors() override
Clear all the Riesz representors that are used to compute the RB residual (and hence error bound).
virtual void legacy_write_offline_data_to_files(const std::string &directory_name="offline_data", const bool write_binary_data=true) override
Write out all the data to text files in order to segregate the Offline stage from the Online stage.
virtual Real rb_solve(unsigned int N) override
Perform online solve with the N RB basis functions, for the set of parameters in current_params,...
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real