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

Hyperreduced Adaptive Sampling with the updated error indicator. More...

#include <hyper_reduced_sampling_error_updated.h>

Inheritance diagram for PHiLiP::HyperreducedSamplingErrorUpdated< dim, nstate >:
Collaboration diagram for PHiLiP::HyperreducedSamplingErrorUpdated< dim, nstate >:

Public Member Functions

 HyperreducedSamplingErrorUpdated (const PHiLiP::Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
 Constructor.
 
int run_sampling () const override
 Run test.
 
RowVectorXd getMaxErrorROM () const override
 Compute RBF and find max error.
 
bool placeROMLocations (const MatrixXd &rom_points, Epetra_Vector weights) const
 Placement of ROMs.
 
void trueErrorROM (const MatrixXd &rom_points, Epetra_Vector weights) const
 Compute true/actual error at all ROM points (error in functional between FOM and ROM solution)
 
double solveSnapshotROMandFOM (const RowVectorXd &parameter, Epetra_Vector weights) const
 Solve FOM and ROM, return error in functional between the models.
 
void solveFunctionalHROM (const RowVectorXd &parameter, Epetra_Vector weights) const
 Solve HROM and track functional.
 
void updateNearestExistingROMs (const RowVectorXd &parameter, Epetra_Vector weights) const
 Updates nearest ROM points to snapshot if error discrepancy is above tolerance.
 
std::unique_ptr< ProperOrthogonalDecomposition::ROMSolution< dim, nstate > > solveSnapshotROM (const RowVectorXd &parameter, Epetra_Vector weights) const
 Solve reduced-order solution.
 
Epetra_Vector allocateVectorToSingleCore (const Epetra_Vector &b) const
 Copy all elements in matrix A to all cores.
 
void outputIterationData (std::string iteration) const override
 Output for each iteration.
 
- Public Member Functions inherited from PHiLiP::AdaptiveSamplingBase< dim, nstate >
 AdaptiveSamplingBase (const PHiLiP::Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler &parameter_handler_input)
 Default constructor that will set the constants.
 
virtual ~AdaptiveSamplingBase ()=default
 Virtual destructor.
 
RowVectorXd readROMFunctionalPoint () const
 Find point to solve for functional from param file.
 
void placeInitialSnapshots () const
 Placement of initial snapshots.
 
dealii::LinearAlgebra::distributed::Vector< double > solveSnapshotFOM (const RowVectorXd &parameter) const
 Solve full-order snapshot.
 
Parameters::AllParameters reinit_params (const RowVectorXd &parameter) const
 Reinitialize parameters.
 
void configureInitialParameterSpace () const
 Set up parameter space depending on test case.
 

Public Attributes

std::vector< std::unique_ptr< ProperOrthogonalDecomposition::HROMTestLocation< dim, nstate > > > hrom_locations
 Vector of parameter-HROMTestLocation pairs.
 
std::shared_ptr< Epetra_Vector > ptr_weights
 Ptr vector of ECSW Weights.
 
std::vector< double > rom_functional
 Functional value predicted by the rom at each sammpling iteration at parameter location specified in the inputs.
 
- Public Attributes inherited from PHiLiP::AdaptiveSamplingBase< 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.
 
MatrixXd snapshot_parameters
 Matrix of snapshot parameters.
 
std::vector< std::unique_ptr< ProperOrthogonalDecomposition::ROMTestLocation< dim, nstate > > > rom_locations
 Vector of parameter-ROMTestLocation pairs.
 
std::vector< dealii::LinearAlgebra::distributed::Vector< double > > fom_locations
 Vector of parameter-ROMTestLocation pairs.
 
double max_error
 Maximum error.
 
std::shared_ptr< ProperOrthogonalDecomposition::OnlinePOD< dim > > current_pod
 Most up to date POD basis.
 
std::shared_ptr< ProperOrthogonalDecomposition::NearestNeighborsnearest_neighbors
 Nearest neighbors of snapshots.
 
const MPI_Comm mpi_communicator
 MPI communicator.
 
const int mpi_rank
 MPI rank.
 
dealii::ConditionalOStream pcout
 ConditionalOStream. More...
 

Detailed Description

template<int dim, int nstate>
class PHiLiP::HyperreducedSamplingErrorUpdated< dim, nstate >

Hyperreduced Adaptive Sampling with the updated error indicator.

Definition at line 32 of file hyper_reduced_sampling_error_updated.h.


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