[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
PHiLiP::HyperReduction::AssembleECSWRes< dim, nstate > Class Template Reference

#include <assemble_ECSW_residual.h>

Inheritance diagram for PHiLiP::HyperReduction::AssembleECSWRes< dim, nstate >:
Collaboration diagram for PHiLiP::HyperReduction::AssembleECSWRes< dim, nstate >:

Public Member Functions

 AssembleECSWRes (const PHiLiP::Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input, std::shared_ptr< DGBase< dim, double >> &dg_input, std::shared_ptr< ProperOrthogonalDecomposition::PODBase< dim >> pod, MatrixXd snapshot_parameters_input, Parameters::ODESolverParam::ODESolverEnum ode_solver_type, Epetra_MpiComm &Comm)
 Constructor.
 
 ~AssembleECSWRes ()
 Destructor.
 
void build_problem () override
 Fill entries of A and b.
 
- Public Member Functions inherited from PHiLiP::HyperReduction::AssembleECSWBase< dim, nstate >
 AssembleECSWBase (const PHiLiP::Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input, std::shared_ptr< DGBase< dim, double >> &dg_input, std::shared_ptr< ProperOrthogonalDecomposition::PODBase< dim >> pod, MatrixXd snapshot_parameters_input, Parameters::ODESolverParam::ODESolverEnum ode_solver_type, Epetra_MpiComm &Comm)
 Constructor.
 
virtual ~AssembleECSWBase ()
 Destructor.
 
std::shared_ptr< Epetra_CrsMatrix > local_generate_test_basis (Epetra_CrsMatrix &system_matrix, const Epetra_CrsMatrix &pod_basis)
 Generate Test Basis from the pod and snapshot info depending on the ode_solve_type (copied from the ODE solvers)
 
Parameters::AllParameters reinit_params (const RowVectorXd &parameter) const
 Reinitialize parameters.
 
void update_snapshots (dealii::LinearAlgebra::distributed::Vector< double > fom_solution)
 Update POD and Snapshot Parameters.
 
void update_POD_snaps (std::shared_ptr< ProperOrthogonalDecomposition::PODBase< dim >> pod_update, MatrixXd snapshot_parameters_update)
 Update POD and Snapshot Parameters.
 

Additional Inherited Members

- Public Attributes inherited from PHiLiP::HyperReduction::AssembleECSWBase< dim, nstate >
const Parameters::AllParameters *const all_parameters
 Pointer to all parameters.
 
const dealii::ParameterHandler & parameter_handler
 Parameter handler for storing the .prm file being ran.
 
std::shared_ptr< DGBase< dim, double > > dg
 dg
 
std::shared_ptr< ProperOrthogonalDecomposition::PODBase< dim > > pod
 POD.
 
MatrixXd snapshot_parameters
 Matrix of snapshot parameters.
 
const MPI_Comm mpi_communicator
 MPI communicator.
 
const int mpi_rank
 MPI rank.
 
dealii::ConditionalOStream pcout
 ConditionalOStream. More...
 
Parameters::ODESolverParam::ODESolverEnum ode_solver_type
 ODE Solve Type/ Projection Type (galerkin or petrov-galerkin)
 
Epetra_MpiComm Comm_
 Epetra Communicator Object with MPI.
 
std::shared_ptr< dealii::TrilinosWrappers::SparseMatrix > A_T
 Matrix for the NNLS Problem.
 
dealii::LinearAlgebra::ReadWriteVector< double > b
 RHS Vector for the NNLS Problem.
 
std::vector< dealii::LinearAlgebra::distributed::Vector< double > > fom_locations
 Vector of parameter-ROMTestLocation pairs.
 

Detailed Description

template<int dim, int nstate>
class PHiLiP::HyperReduction::AssembleECSWRes< dim, nstate >

Class for assembling NNLS problem (C matrix & d vector from the residual of each snapshot) for finding the weights for the ECSW hyper-reduction approach. NOTE: This class does not solve for the weights, but A and b can be passed to the NNLS solver class.

Definition at line 34 of file assemble_ECSW_residual.h.


The documentation for this class was generated from the following files: