27 DenseVector<Real> & inp_vector,
28 std::string var_name);
34 Real
getNodalQoI(std::string var_name,
unsigned int qoi_type)
const;
74 const std::vector<std::vector<DenseVector<Real>>> &
_base;
const InputParameters & parameters() const
Real getNodalQoI(std::string var_name, unsigned int qoi_type) const
Get the nodal QoI of the reconstructed solution for a given variable.
void reconstructApproximateSolution()
Reconstruct the approximate solution vector using the stored coefficients.
void solveReducedSystem(const std::vector< Real > ¶ms)
Assemble and solve the reduced equation system.
void initializeReducedSystem()
Initialize reduced matrices, vectors and additional containers.
const Real _penalty
Penalty parameter for Dirichlet BCs.
std::vector< unsigned int > _comulative_ranks
Comulative ranks of the system. Used for indexing only.
const std::vector< DenseVector< Real > > & getApproximateSolution() const
Get a reference to the approximate solutions.
static InputParameters validParams()
std::vector< unsigned int > _new_ranks
The new rank the variable should have.
std::vector< DenseVector< Real > > _approx_solution
Reconstructed solution for each variable.
void initializeApproximateSolution()
Initialize approximate solution vector.
const std::vector< std::vector< DenseVector< Real > > > & _base
The basis vectors for all the variables.
std::vector< std::string > _change_rank
A vector containing the number of basis functions each variable should use.
bool _initialized
Switch that is set to see if the ROM matrices and vectors are initialized.
void evaluateSolution(const std::vector< Real > ¶ms)
Get the reduced solution for a given parameter sample.
const std::vector< std::string > & _tag_types
Strings describing which operator is indepedent of the solution and which corresponds to a reduced Di...
const std::vector< DenseMatrix< Real > > & _red_operators
The reduced operators in the same order as given in tag_types.
DenseVector< Real > _rhs
The reduced right hand side.
DenseMatrix< Real > _sys_mx
The reduced system matrix.
std::vector< unsigned int > _final_ranks
The final rank that should be used for every variable.
DenseVector< Real > _coeffs
Coefficients of the reduced order model.
const std::vector< std::string > & _var_names
Vector containing the names of the variables we want to reconstruct.