[P]arallel [Hi]gh-order [Li]brary for [P]DEs
Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
|
Hyperreduced adaptive sampling. More...
#include <hyper_reduced_adaptive_sampling.h>
Public Member Functions | |
HyperreducedAdaptiveSampling (const PHiLiP::Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler ¶meter_handler_input) | |
Constructor. | |
int | run_sampling () const override |
Run test. | |
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 ¶meter, Epetra_Vector weights) const |
Solve FOM and ROM, return error in functional between the models. | |
void | solveFunctionalHROM (const RowVectorXd ¶meter, Epetra_Vector weights) const |
Solve ROM and track functional. | |
void | updateNearestExistingROMs (const RowVectorXd ¶meter, 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 ¶meter, 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. | |
![]() | |
AdaptiveSamplingBase (const PHiLiP::Parameters::AllParameters *const parameters_input, const dealii::ParameterHandler ¶meter_handler_input) | |
Default constructor that will set the constants. | |
virtual | ~AdaptiveSamplingBase ()=default |
Virtual destructor. | |
virtual void | outputIterationData (std::string iteration) const |
Output for each iteration. | |
RowVectorXd | readROMFunctionalPoint () const |
Find point to solve for functional from param file. | |
void | placeInitialSnapshots () const |
Placement of initial snapshots. | |
virtual RowVectorXd | getMaxErrorROM () const |
Compute RBF and find max error. | |
dealii::LinearAlgebra::distributed::Vector< double > | solveSnapshotFOM (const RowVectorXd ¶meter) const |
Solve full-order snapshot. | |
Parameters::AllParameters | reinit_params (const RowVectorXd ¶meter) const |
Reinitialize parameters. | |
void | configureInitialParameterSpace () const |
Set up parameter space depending on test case. | |
Public Attributes | |
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. | |
![]() | |
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::NearestNeighbors > | nearest_neighbors |
Nearest neighbors of snapshots. | |
const MPI_Comm | mpi_communicator |
MPI communicator. | |
const int | mpi_rank |
MPI rank. | |
dealii::ConditionalOStream | pcout |
ConditionalOStream. More... | |
Hyperreduced adaptive sampling.
Definition at line 32 of file hyper_reduced_adaptive_sampling.h.