libMesh
|
#include <rb_classes.h>
Public Types | |
typedef SimpleRBConstruction | sys_type |
The type of system. More... | |
typedef RBConstruction | Parent |
The type of the parent. More... | |
typedef SimpleRBConstruction | sys_type |
The type of system. More... | |
typedef RBConstruction | Parent |
The type of the parent. More... | |
typedef SimpleRBConstruction | sys_type |
The type of system. More... | |
typedef TransientRBConstruction | Parent |
The type of the parent. More... | |
typedef SimpleRBConstruction | sys_type |
The type of system. More... | |
typedef RBConstruction | Parent |
The type of the parent. More... | |
typedef SimpleRBConstruction | sys_type |
The type of system. More... | |
typedef RBConstruction | Parent |
The type of the parent. More... | |
typedef SimpleRBConstruction | sys_type |
The type of system. More... | |
typedef RBConstruction | Parent |
The type of the parent. More... | |
typedef std::map< std::string, SparseMatrix< Number > * >::iterator | matrices_iterator |
Matrix iterator typedefs. More... | |
typedef std::map< std::string, SparseMatrix< Number > * >::const_iterator | const_matrices_iterator |
typedef Number(* | ValueFunctionPointer) (const Point &p, const Parameters &Parameters, const std::string &sys_name, const std::string &unknown_name) |
Projects arbitrary functions onto the current solution. More... | |
typedef Gradient(* | GradientFunctionPointer) (const Point &p, const Parameters ¶meters, const std::string &sys_name, const std::string &unknown_name) |
typedef std::map< std::string, NumericVector< Number > * >::iterator | vectors_iterator |
Vector iterator typedefs. More... | |
typedef std::map< std::string, NumericVector< Number > * >::const_iterator | const_vectors_iterator |
Public Member Functions | |
SimpleRBConstruction (EquationSystems &es, const std::string &name_in, const unsigned int number_in) | |
virtual | ~SimpleRBConstruction () |
Destructor. More... | |
virtual void | init_data () |
Initialize data structures. More... | |
virtual void | init_context (FEMContext &c) |
Pre-request all relevant element data. More... | |
SimpleRBConstruction (EquationSystems &es, const std::string &name, const unsigned int number) | |
virtual | ~SimpleRBConstruction () |
Destructor. More... | |
virtual void | init_data () |
Initialize data structures. More... | |
virtual void | init_context (FEMContext &c) |
Pre-request all relevant element data. More... | |
SimpleRBConstruction (EquationSystems &es, const std::string &name_in, const unsigned int number_in) | |
virtual | ~SimpleRBConstruction () |
Destructor. More... | |
virtual void | init_data () |
Initialize data structures. More... | |
virtual void | init_context (FEMContext &c) |
Pre-request all relevant element data. More... | |
SimpleRBConstruction (EquationSystems &es, const std::string &name_in, const unsigned int number_in) | |
virtual | ~SimpleRBConstruction () |
Destructor. More... | |
virtual void | init_data () |
Initialize data structures. More... | |
virtual void | init_context (FEMContext &c) |
Pre-request all relevant element data. More... | |
SimpleRBConstruction (EquationSystems &es, const std::string &name_in, const unsigned int number_in) | |
virtual | ~SimpleRBConstruction () |
Destructor. More... | |
virtual void | init_data () |
Initialize data structures. More... | |
virtual void | init_context (FEMContext &c) |
Pre-request all relevant element data. More... | |
SimpleRBConstruction (EquationSystems &es, const std::string &name_in, const unsigned int number_in) | |
virtual | ~SimpleRBConstruction () |
Destructor. More... | |
virtual void | init_data () |
Initialize data structures. More... | |
virtual void | init_context (FEMContext &c) |
Pre-request all relevant element data. More... | |
virtual void | solve_for_matrix_and_rhs (LinearSolver< Number > &input_solver, SparseMatrix< Number > &input_matrix, NumericVector< Number > &input_rhs) |
Assembles & solves the linear system A*x=b for the specified matrix input_matrix and right-hand side rhs . More... | |
void | set_rb_evaluation (RBEvaluation &rb_eval_in) |
Set the RBEvaluation object. More... | |
RBEvaluation & | get_rb_evaluation () |
Get a reference to the RBEvaluation object. More... | |
bool | is_rb_eval_initialized () const |
RBThetaExpansion & | get_rb_theta_expansion () |
Get a reference to the RBThetaExpansion object that that belongs to rb_eval. More... | |
void | set_rb_assembly_expansion (RBAssemblyExpansion &rb_assembly_expansion_in) |
Set the rb_assembly_expansion object. More... | |
RBAssemblyExpansion & | get_rb_assembly_expansion () |
sys_type & | system () |
virtual void | clear () override |
Clear all the data structures associated with the system. More... | |
virtual std::string | system_type () const override |
virtual Real | truth_solve (int plot_solution) |
Perform a "truth" solve, i.e. More... | |
virtual Real | train_reduced_basis (const bool resize_rb_eval_data=true) |
Train the reduced basis. More... | |
void | enrich_basis_from_rhs_terms (const bool resize_rb_eval_data=true) |
This function computes one basis function for each rhs term. More... | |
virtual Real | compute_max_error_bound () |
(i) Compute the a posteriori error bound for each set of parameters in the training set, (ii) set current_parameters to the parameters that maximize the error bound, and (iii) return the maximum error bound. More... | |
const RBParameters & | get_greedy_parameter (unsigned int i) |
Return the parameters chosen during the i^th step of the Greedy algorithm. More... | |
void | set_rel_training_tolerance (Real new_training_tolerance) |
Get/set the relative tolerance for the basis training. More... | |
Real | get_rel_training_tolerance () |
void | set_abs_training_tolerance (Real new_training_tolerance) |
Get/set the absolute tolerance for the basis training. More... | |
Real | get_abs_training_tolerance () |
void | set_normalize_rb_bound_in_greedy (bool normalize_rb_bound_in_greedy_in) |
Get/set the boolean to indicate if we normalize the RB error in the greedy. More... | |
bool | get_normalize_rb_bound_in_greedy () |
unsigned int | get_Nmax () const |
Get/set Nmax, the maximum number of RB functions we are willing to compute. More... | |
virtual void | set_Nmax (unsigned int Nmax) |
virtual void | load_basis_function (unsigned int i) |
Load the i^th RB function into the RBConstruction solution vector. More... | |
virtual void | load_rb_solution () |
Load the RB solution from the most recent solve with rb_eval into this system's solution vector. More... | |
Real | compute_residual_dual_norm_slow (const unsigned int N) |
The slow (but simple, non-error prone) way to compute the residual dual norm. More... | |
SparseMatrix< Number > * | get_inner_product_matrix () |
Get a pointer to inner_product_matrix. More... | |
SparseMatrix< Number > * | get_non_dirichlet_inner_product_matrix () |
Get the non-Dirichlet (or more generally no-constraints) version of the inner-product matrix. More... | |
SparseMatrix< Number > * | get_non_dirichlet_inner_product_matrix_if_avail () |
Get the non-Dirichlet inner-product matrix if it's available, otherwise get the inner-product matrix with constraints. More... | |
SparseMatrix< Number > * | get_Aq (unsigned int q) |
Get a pointer to Aq. More... | |
SparseMatrix< Number > * | get_non_dirichlet_Aq (unsigned int q) |
Get a pointer to non_dirichlet_Aq. More... | |
SparseMatrix< Number > * | get_non_dirichlet_Aq_if_avail (unsigned int q) |
Get a pointer to non_dirichlet_Aq if it's available, otherwise get Aq. More... | |
virtual void | initialize_rb_construction (bool skip_matrix_assembly=false, bool skip_vector_assembly=false) |
Allocate all the data structures necessary for the construction stage of the RB method. More... | |
NumericVector< Number > * | get_Fq (unsigned int q) |
Get a pointer to Fq. More... | |
NumericVector< Number > * | get_non_dirichlet_Fq (unsigned int q) |
Get a pointer to non-Dirichlet Fq. More... | |
NumericVector< Number > * | get_non_dirichlet_Fq_if_avail (unsigned int q) |
Get a pointer to non_dirichlet_Fq if it's available, otherwise get Fq. More... | |
NumericVector< Number > * | get_output_vector (unsigned int n, unsigned int q_l) |
Get a pointer to the n^th output. More... | |
NumericVector< Number > * | get_non_dirichlet_output_vector (unsigned int n, unsigned int q_l) |
Get a pointer to non-Dirichlet output vector. More... | |
virtual void | get_all_matrices (std::map< std::string, SparseMatrix< Number > * > &all_matrices) |
Get a map that stores pointers to all of the matrices. More... | |
virtual void | get_all_vectors (std::map< std::string, NumericVector< Number > * > &all_vectors) |
Get a map that stores pointers to all of the vectors. More... | |
virtual void | get_output_vectors (std::map< std::string, NumericVector< Number > * > &all_vectors) |
Get a map that stores pointers to all of the vectors. More... | |
virtual void | assemble_affine_expansion (bool skip_matrix_assembly, bool skip_vector_assembly) |
Assemble the matrices and vectors for this system. More... | |
void | assemble_inner_product_matrix (SparseMatrix< Number > *input_matrix, bool apply_dof_constraints=true) |
Assemble the inner product matrix and store it in input_matrix. More... | |
void | assemble_Aq_matrix (unsigned int q, SparseMatrix< Number > *input_matrix, bool apply_dof_constraints=true) |
Assemble the q^th affine matrix and store it in input_matrix. More... | |
void | assemble_Fq_vector (unsigned int q, NumericVector< Number > *input_vector, bool apply_dof_constraints=true) |
Assemble the q^th affine vector and store it in input_matrix. More... | |
void | add_scaled_Aq (Number scalar, unsigned int q_a, SparseMatrix< Number > *input_matrix, bool symmetrize) |
Add the scaled q^th affine matrix to input_matrix. More... | |
virtual void | write_riesz_representors_to_files (const std::string &riesz_representors_dir, const bool write_binary_residual_representors) |
Write out all the Riesz representor data to files. More... | |
virtual void | read_riesz_representors_from_files (const std::string &riesz_representors_dir, const bool write_binary_residual_representors) |
Read in all the Riesz representor data from files. More... | |
virtual void | recompute_all_residual_terms (const bool compute_inner_products=true) |
This function computes all of the residual representors, can be useful when restarting a basis training computation. More... | |
virtual void | process_parameters_file (const std::string ¶meters_filename) |
Read in from the file specified by parameters_filename and set the this system's member variables accordingly. More... | |
void | set_rb_construction_parameters (unsigned int n_training_samples_in, bool deterministic_training_in, unsigned int training_parameters_random_seed_in, bool quiet_mode_in, unsigned int Nmax_in, Real rel_training_tolerance_in, Real abs_training_tolerance_in, bool normalize_rb_error_bound_in_greedy_in, RBParameters mu_min_in, RBParameters mu_max_in, std::map< std::string, std::vector< Real >> discrete_parameter_values_in, std::map< std::string, bool > log_scaling) |
Set the state of this RBConstruction object based on the arguments to this function. More... | |
virtual void | print_info () |
Print out info that describes the current setup of this RBConstruction. More... | |
void | print_basis_function_orthogonality () |
Print out a matrix that shows the orthogonality of the RB basis functions. More... | |
unsigned int | get_delta_N () const |
Get delta_N, the number of basis functions we add to the RB space per iteration of the greedy algorithm. More... | |
void | set_inner_product_assembly (ElemAssembly &inner_product_assembly_in) |
Set the rb_assembly_expansion object. More... | |
ElemAssembly & | get_inner_product_assembly () |
void | set_energy_inner_product (const std::vector< Number > &energy_inner_product_coeffs_in) |
Specify the coefficients of the A_q operators to be used in the energy inner-product. More... | |
void | zero_constrained_dofs_on_vector (NumericVector< Number > &vector) |
It is sometimes useful to be able to zero vector entries that correspond to constrained dofs. More... | |
void | set_convergence_assertion_flag (bool flag) |
Setter for the flag determining if convergence should be checked after each solve. More... | |
void | set_quiet_mode (bool quiet_mode_in) |
Set the quiet_mode flag. More... | |
bool | is_quiet () const |
Is the system in quiet mode? More... | |
numeric_index_type | get_n_training_samples () const |
Get the total number of training samples. More... | |
numeric_index_type | get_local_n_training_samples () const |
Get the total number of training samples local to this processor. More... | |
numeric_index_type | get_first_local_training_index () const |
Get the first local index of the training parameters. More... | |
numeric_index_type | get_last_local_training_index () const |
Get the last local index of the training parameters. More... | |
virtual void | initialize_training_parameters (const RBParameters &mu_min, const RBParameters &mu_max, unsigned int n_training_parameters, std::map< std::string, bool > log_param_scale, bool deterministic=true) |
Initialize the parameter ranges and indicate whether deterministic or random training parameters should be used and whether or not we want the parameters to be scaled logarithmically. More... | |
virtual void | load_training_set (std::map< std::string, std::vector< Number >> &new_training_set) |
Overwrite the training parameters with new_training_set. More... | |
void | broadcast_parameters (unsigned int proc_id) |
Broadcasts parameters on processor proc_id to all processors. More... | |
void | set_training_random_seed (unsigned int seed) |
Set the seed that is used to randomly generate training parameters. More... | |
void | set_deterministic_training_parameter_name (const std::string &name) |
In some cases we only want to allow discrete parameter values, instead of parameters that may take any value in a specified interval. More... | |
const std::string & | get_deterministic_training_parameter_name () const |
Get the name of the parameter that we will generate deterministic training parameters for. More... | |
void | set_deterministic_training_parameter_repeats (unsigned int repeats) |
Set the number of times each sample of the deterministic training parameter is repeated. More... | |
unsigned int | get_deterministic_training_parameter_repeats () const |
Get the number of times each sample of the deterministic training parameter is repeated. More... | |
virtual void | reinit () override |
Reinitializes the member data fields associated with the system, so that, e.g., assemble() may be used. More... | |
virtual void | assemble () override |
Prepares matrix and _dof_map for matrix assembly. More... | |
virtual void | restrict_solve_to (const SystemSubset *subset, const SubsetSolveMode subset_solve_mode=SUBSET_ZERO) override |
After calling this method, any solve will be limited to the given subset. More... | |
virtual void | solve () override |
Assembles & solves the linear system A*x=b. More... | |
virtual LinearSolver< Number > * | get_linear_solver () const override |
virtual void | release_linear_solver (LinearSolver< Number > *) const override |
Releases a pointer to a linear solver acquired by this->get_linear_solver() More... | |
virtual void | assembly (bool get_residual, bool get_jacobian, bool apply_heterogeneous_constraints=false, bool apply_no_constraints=false) override |
Assembles a residual in rhs and/or a jacobian in matrix , as requested. More... | |
unsigned int | n_linear_iterations () const |
Real | final_linear_residual () const |
void | attach_shell_matrix (ShellMatrix< Number > *shell_matrix) |
This function enables the user to provide a shell matrix, i.e. More... | |
void | detach_shell_matrix () |
Detaches a shell matrix. More... | |
ShellMatrix< Number > * | get_shell_matrix () |
virtual void | disable_cache () override |
Avoids use of any cached data that might affect any solve result. More... | |
virtual std::pair< unsigned int, Real > | get_linear_solve_parameters () const |
virtual void | assemble_residual_derivatives (const ParameterVector ¶meters) override |
Residual parameter derivative function. More... | |
virtual std::pair< unsigned int, Real > | sensitivity_solve (const ParameterVector ¶meters) override |
Assembles & solves the linear system(s) (dR/du)*u_p = -dR/dp, for those parameters contained within parameters . More... | |
virtual std::pair< unsigned int, Real > | weighted_sensitivity_solve (const ParameterVector ¶meters, const ParameterVector &weights) override |
Assembles & solves the linear system(s) (dR/du)*u_w = sum(w_p*-dR/dp), for those parameters p contained within parameters weighted by the values w_p found within weights . More... | |
virtual std::pair< unsigned int, Real > | adjoint_solve (const QoISet &qoi_indices=QoISet()) override |
Assembles & solves the linear system (dR/du)^T*z = dq/du, for those quantities of interest q specified by qoi_indices . More... | |
virtual std::pair< unsigned int, Real > | weighted_sensitivity_adjoint_solve (const ParameterVector ¶meters, const ParameterVector &weights, const QoISet &qoi_indices=QoISet()) override |
Assembles & solves the linear system(s) (dR/du)^T*z_w = sum(w_p*(d^2q/dudp - d^2R/dudp*z)), for those parameters p contained within parameters , weighted by the values w_p found within weights . More... | |
virtual void | adjoint_qoi_parameter_sensitivity (const QoISet &qoi_indices, const ParameterVector ¶meters, SensitivityData &sensitivities) override |
Solves for the derivative of each of the system's quantities of interest q in qoi [qoi_indices] with respect to each parameter in parameters , placing the result for qoi i and parameter j into sensitivities [i][j]. More... | |
virtual void | forward_qoi_parameter_sensitivity (const QoISet &qoi_indices, const ParameterVector ¶meters, SensitivityData &sensitivities) override |
Solves for the derivative of each of the system's quantities of interest q in qoi [qoi_indices] with respect to each parameter in parameters , placing the result for qoi i and parameter j into sensitivities [i][j]. More... | |
virtual void | qoi_parameter_hessian (const QoISet &qoi_indices, const ParameterVector ¶meters, SensitivityData &hessian) override |
For each of the system's quantities of interest q in qoi [qoi_indices], and for a vector of parameters p, the parameter sensitivity Hessian H_ij is defined as H_ij = (d^2 q)/(d p_i d p_j) This Hessian is the output of this method, where for each q_i, H_jk is stored in hessian.second_derivative(i,j,k) . More... | |
virtual void | qoi_parameter_hessian_vector_product (const QoISet &qoi_indices, const ParameterVector ¶meters, const ParameterVector &vector, SensitivityData &product) override |
For each of the system's quantities of interest q in qoi [qoi_indices], and for a vector of parameters p, the parameter sensitivity Hessian H_ij is defined as H_ij = (d^2 q)/(d p_i d p_j) The Hessian-vector product, for a vector v_k in parameter space, is S_j = H_jk v_k This product is the output of this method, where for each q_i, S_j is stored in sensitivities [i][j]. More... | |
SparseMatrix< Number > & | add_matrix (const std::string &mat_name) |
Adds the additional matrix mat_name to this system. More... | |
template<template< typename > class> | |
SparseMatrix< Number > & | add_matrix (const std::string &mat_name) |
Adds the additional matrix mat_name to this system. More... | |
void | remove_matrix (const std::string &mat_name) |
Removes the additional matrix mat_name from this system. More... | |
bool | have_matrix (const std::string &mat_name) const |
const SparseMatrix< Number > * | request_matrix (const std::string &mat_name) const |
SparseMatrix< Number > * | request_matrix (const std::string &mat_name) |
const SparseMatrix< Number > & | get_matrix (const std::string &mat_name) const |
SparseMatrix< Number > & | get_matrix (const std::string &mat_name) |
virtual unsigned int | n_matrices () const override |
virtual void | assemble_qoi (const QoISet &qoi_indices=QoISet()) override |
Prepares qoi for quantity of interest assembly, then calls user qoi function. More... | |
virtual void | assemble_qoi_derivative (const QoISet &qoi_indices=QoISet(), bool include_liftfunc=true, bool apply_constraints=true) override |
Prepares adjoint_rhs for quantity of interest derivative assembly, then calls user qoi derivative function. More... | |
void | init () |
Initializes degrees of freedom on the current mesh. More... | |
virtual void | reinit_constraints () |
Reinitializes the constraints for this system. More... | |
bool | is_initialized () |
virtual void | update () |
Update the local values to reflect the solution on neighboring processors. More... | |
bool | is_adjoint_already_solved () const |
Accessor for the adjoint_already_solved boolean. More... | |
void | set_adjoint_already_solved (bool setting) |
Setter for the adjoint_already_solved boolean. More... | |
virtual void | qoi_parameter_sensitivity (const QoISet &qoi_indices, const ParameterVector ¶meters, SensitivityData &sensitivities) |
Solves for the derivative of each of the system's quantities of interest q in qoi [qoi_indices] with respect to each parameter in parameters , placing the result for qoi i and parameter j into sensitivities [i][j]. More... | |
virtual bool | compare (const System &other_system, const Real threshold, const bool verbose) const |
const std::string & | name () const |
void | project_solution (FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr) const |
Projects arbitrary functions onto the current solution. More... | |
void | project_solution (FEMFunctionBase< Number > *f, FEMFunctionBase< Gradient > *g=nullptr) const |
Projects arbitrary functions onto the current solution. More... | |
void | project_solution (ValueFunctionPointer fptr, GradientFunctionPointer gptr, const Parameters ¶meters) const |
This method projects an arbitrary function onto the solution via L2 projections and nodal interpolations on each element. More... | |
void | project_vector (NumericVector< Number > &new_vector, FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr, int is_adjoint=-1) const |
Projects arbitrary functions onto a vector of degree of freedom values for the current system. More... | |
void | project_vector (NumericVector< Number > &new_vector, FEMFunctionBase< Number > *f, FEMFunctionBase< Gradient > *g=nullptr, int is_adjoint=-1) const |
Projects arbitrary functions onto a vector of degree of freedom values for the current system. More... | |
void | project_vector (ValueFunctionPointer fptr, GradientFunctionPointer gptr, const Parameters ¶meters, NumericVector< Number > &new_vector, int is_adjoint=-1) const |
Projects arbitrary functions onto a vector of degree of freedom values for the current system. More... | |
void | boundary_project_solution (const std::set< boundary_id_type > &b, const std::vector< unsigned int > &variables, FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr) |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system. More... | |
void | boundary_project_solution (const std::set< boundary_id_type > &b, const std::vector< unsigned int > &variables, ValueFunctionPointer fptr, GradientFunctionPointer gptr, const Parameters ¶meters) |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system. More... | |
void | boundary_project_vector (const std::set< boundary_id_type > &b, const std::vector< unsigned int > &variables, NumericVector< Number > &new_vector, FunctionBase< Number > *f, FunctionBase< Gradient > *g=nullptr, int is_adjoint=-1) const |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system. More... | |
void | boundary_project_vector (const std::set< boundary_id_type > &b, const std::vector< unsigned int > &variables, ValueFunctionPointer fptr, GradientFunctionPointer gptr, const Parameters ¶meters, NumericVector< Number > &new_vector, int is_adjoint=-1) const |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system. More... | |
unsigned int | number () const |
void | update_global_solution (std::vector< Number > &global_soln) const |
Fill the input vector global_soln so that it contains the global solution on all processors. More... | |
void | update_global_solution (std::vector< Number > &global_soln, const processor_id_type dest_proc) const |
Fill the input vector global_soln so that it contains the global solution on processor dest_proc . More... | |
const MeshBase & | get_mesh () const |
MeshBase & | get_mesh () |
const DofMap & | get_dof_map () const |
DofMap & | get_dof_map () |
const EquationSystems & | get_equation_systems () const |
EquationSystems & | get_equation_systems () |
bool | active () const |
void | activate () |
Activates the system. More... | |
void | deactivate () |
Deactivates the system. More... | |
void | set_basic_system_only () |
Sets the system to be "basic only": i.e. More... | |
vectors_iterator | vectors_begin () |
Beginning of vectors container. More... | |
const_vectors_iterator | vectors_begin () const |
Beginning of vectors container. More... | |
vectors_iterator | vectors_end () |
End of vectors container. More... | |
const_vectors_iterator | vectors_end () const |
End of vectors container. More... | |
NumericVector< Number > & | add_vector (const std::string &vec_name, const bool projections=true, const ParallelType type=PARALLEL) |
Adds the additional vector vec_name to this system. More... | |
void | remove_vector (const std::string &vec_name) |
Removes the additional vector vec_name from this system. More... | |
bool & | project_solution_on_reinit (void) |
Tells the System whether or not to project the solution vector onto new grids when the system is reinitialized. More... | |
bool | have_vector (const std::string &vec_name) const |
const NumericVector< Number > * | request_vector (const std::string &vec_name) const |
NumericVector< Number > * | request_vector (const std::string &vec_name) |
const NumericVector< Number > * | request_vector (const unsigned int vec_num) const |
NumericVector< Number > * | request_vector (const unsigned int vec_num) |
const NumericVector< Number > & | get_vector (const std::string &vec_name) const |
NumericVector< Number > & | get_vector (const std::string &vec_name) |
const NumericVector< Number > & | get_vector (const unsigned int vec_num) const |
NumericVector< Number > & | get_vector (const unsigned int vec_num) |
const std::string & | vector_name (const unsigned int vec_num) const |
const std::string & | vector_name (const NumericVector< Number > &vec_reference) const |
void | set_vector_as_adjoint (const std::string &vec_name, int qoi_num) |
Allows one to set the QoI index controlling whether the vector identified by vec_name represents a solution from the adjoint (qoi_num >= 0) or primal (qoi_num == -1) space. More... | |
int | vector_is_adjoint (const std::string &vec_name) const |
void | set_vector_preservation (const std::string &vec_name, bool preserve) |
Allows one to set the boolean controlling whether the vector identified by vec_name should be "preserved": projected to new meshes, saved, etc. More... | |
bool | vector_preservation (const std::string &vec_name) const |
NumericVector< Number > & | add_adjoint_solution (unsigned int i=0) |
NumericVector< Number > & | get_adjoint_solution (unsigned int i=0) |
const NumericVector< Number > & | get_adjoint_solution (unsigned int i=0) const |
NumericVector< Number > & | add_sensitivity_solution (unsigned int i=0) |
NumericVector< Number > & | get_sensitivity_solution (unsigned int i=0) |
const NumericVector< Number > & | get_sensitivity_solution (unsigned int i=0) const |
NumericVector< Number > & | add_weighted_sensitivity_adjoint_solution (unsigned int i=0) |
NumericVector< Number > & | get_weighted_sensitivity_adjoint_solution (unsigned int i=0) |
const NumericVector< Number > & | get_weighted_sensitivity_adjoint_solution (unsigned int i=0) const |
NumericVector< Number > & | add_weighted_sensitivity_solution () |
NumericVector< Number > & | get_weighted_sensitivity_solution () |
const NumericVector< Number > & | get_weighted_sensitivity_solution () const |
NumericVector< Number > & | add_adjoint_rhs (unsigned int i=0) |
NumericVector< Number > & | get_adjoint_rhs (unsigned int i=0) |
const NumericVector< Number > & | get_adjoint_rhs (unsigned int i=0) const |
NumericVector< Number > & | add_sensitivity_rhs (unsigned int i=0) |
NumericVector< Number > & | get_sensitivity_rhs (unsigned int i=0) |
const NumericVector< Number > & | get_sensitivity_rhs (unsigned int i=0) const |
unsigned int | n_vectors () const |
unsigned int | n_vars () const |
unsigned int | n_variable_groups () const |
unsigned int | n_components () const |
dof_id_type | n_dofs () const |
dof_id_type | n_active_dofs () const |
dof_id_type | n_constrained_dofs () const |
dof_id_type | n_local_constrained_dofs () const |
dof_id_type | n_local_dofs () const |
unsigned int | add_variable (const std::string &var, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr) |
Adds the variable var to the list of variables for this system. More... | |
unsigned int | add_variable (const std::string &var, const Order order=FIRST, const FEFamily=LAGRANGE, const std::set< subdomain_id_type > *const active_subdomains=nullptr) |
Adds the variable var to the list of variables for this system. More... | |
unsigned int | add_variables (const std::vector< std::string > &vars, const FEType &type, const std::set< subdomain_id_type > *const active_subdomains=nullptr) |
Adds the variable var to the list of variables for this system. More... | |
unsigned int | add_variables (const std::vector< std::string > &vars, const Order order=FIRST, const FEFamily=LAGRANGE, const std::set< subdomain_id_type > *const active_subdomains=nullptr) |
Adds the variable var to the list of variables for this system. More... | |
const Variable & | variable (unsigned int var) const |
Return a constant reference to Variable var . More... | |
const VariableGroup & | variable_group (unsigned int vg) const |
Return a constant reference to VariableGroup vg . More... | |
bool | has_variable (const std::string &var) const |
const std::string & | variable_name (const unsigned int i) const |
unsigned short int | variable_number (const std::string &var) const |
void | get_all_variable_numbers (std::vector< unsigned int > &all_variable_numbers) const |
Fills all_variable_numbers with all the variable numbers for the variables that have been added to this system. More... | |
unsigned int | variable_scalar_number (const std::string &var, unsigned int component) const |
unsigned int | variable_scalar_number (unsigned int var_num, unsigned int component) const |
const FEType & | variable_type (const unsigned int i) const |
const FEType & | variable_type (const std::string &var) const |
bool | identify_variable_groups () const |
void | identify_variable_groups (const bool) |
Toggle automatic VariableGroup identification. More... | |
Real | calculate_norm (const NumericVector< Number > &v, unsigned int var, FEMNormType norm_type, std::set< unsigned int > *skip_dimensions=nullptr) const |
Real | calculate_norm (const NumericVector< Number > &v, const SystemNorm &norm, std::set< unsigned int > *skip_dimensions=nullptr) const |
void | read_header (Xdr &io, const std::string &version, const bool read_header=true, const bool read_additional_data=true, const bool read_legacy_format=false) |
Reads the basic data header for this System. More... | |
void | read_legacy_data (Xdr &io, const bool read_additional_data=true) |
Reads additional data, namely vectors, for this System. More... | |
template<typename ValType > | |
void | read_serialized_data (Xdr &io, const bool read_additional_data=true) |
Reads additional data, namely vectors, for this System. More... | |
void | read_serialized_data (Xdr &io, const bool read_additional_data=true) |
Non-templated version for backward compatibility. More... | |
template<typename InValType > | |
std::size_t | read_serialized_vectors (Xdr &io, const std::vector< NumericVector< Number > * > &vectors) const |
Read a number of identically distributed vectors. More... | |
std::size_t | read_serialized_vectors (Xdr &io, const std::vector< NumericVector< Number > * > &vectors) const |
Non-templated version for backward compatibility. More... | |
template<typename InValType > | |
void | read_parallel_data (Xdr &io, const bool read_additional_data) |
Reads additional data, namely vectors, for this System. More... | |
void | read_parallel_data (Xdr &io, const bool read_additional_data) |
Non-templated version for backward compatibility. More... | |
void | write_header (Xdr &io, const std::string &version, const bool write_additional_data) const |
Writes the basic data header for this System. More... | |
void | write_serialized_data (Xdr &io, const bool write_additional_data=true) const |
Writes additional data, namely vectors, for this System. More... | |
std::size_t | write_serialized_vectors (Xdr &io, const std::vector< const NumericVector< Number > * > &vectors) const |
Serialize & write a number of identically distributed vectors. More... | |
void | write_parallel_data (Xdr &io, const bool write_additional_data) const |
Writes additional data, namely vectors, for this System. More... | |
std::string | get_info () const |
void | attach_init_function (void fptr(EquationSystems &es, const std::string &name)) |
Register a user function to use in initializing the system. More... | |
void | attach_init_object (Initialization &init) |
Register a user class to use to initialize the system. More... | |
void | attach_assemble_function (void fptr(EquationSystems &es, const std::string &name)) |
Register a user function to use in assembling the system matrix and RHS. More... | |
void | attach_assemble_object (Assembly &assemble) |
Register a user object to use in assembling the system matrix and RHS. More... | |
void | attach_constraint_function (void fptr(EquationSystems &es, const std::string &name)) |
Register a user function for imposing constraints. More... | |
void | attach_constraint_object (Constraint &constrain) |
Register a user object for imposing constraints. More... | |
void | attach_QOI_function (void fptr(EquationSystems &es, const std::string &name, const QoISet &qoi_indices)) |
Register a user function for evaluating the quantities of interest, whose values should be placed in System::qoi . More... | |
void | attach_QOI_object (QOI &qoi) |
Register a user object for evaluating the quantities of interest, whose values should be placed in System::qoi . More... | |
void | attach_QOI_derivative (void fptr(EquationSystems &es, const std::string &name, const QoISet &qoi_indices, bool include_liftfunc, bool apply_constraints)) |
Register a user function for evaluating derivatives of a quantity of interest with respect to test functions, whose values should be placed in System::rhs . More... | |
void | attach_QOI_derivative_object (QOIDerivative &qoi_derivative) |
Register a user object for evaluating derivatives of a quantity of interest with respect to test functions, whose values should be placed in System::rhs . More... | |
virtual void | user_initialization () |
Calls user's attached initialization function, or is overridden by the user in derived classes. More... | |
virtual void | user_assembly () |
Calls user's attached assembly function, or is overridden by the user in derived classes. More... | |
virtual void | user_constrain () |
Calls user's attached constraint function, or is overridden by the user in derived classes. More... | |
virtual void | user_QOI (const QoISet &qoi_indices) |
Calls user's attached quantity of interest function, or is overridden by the user in derived classes. More... | |
virtual void | user_QOI_derivative (const QoISet &qoi_indices=QoISet(), bool include_liftfunc=true, bool apply_constraints=true) |
Calls user's attached quantity of interest derivative function, or is overridden by the user in derived classes. More... | |
virtual void | re_update () |
Re-update the local values when the mesh has changed. More... | |
virtual void | restrict_vectors () |
Restrict vectors after the mesh has coarsened. More... | |
virtual void | prolong_vectors () |
Prolong vectors after the mesh has refined. More... | |
Number | current_solution (const dof_id_type global_dof_number) const |
unsigned int | n_qois () const |
Number of currently active quantities of interest. More... | |
Number | point_value (unsigned int var, const Point &p, const bool insist_on_success=true, const NumericVector< Number > *sol=nullptr) const |
Number | point_value (unsigned int var, const Point &p, const Elem &e, const NumericVector< Number > *sol=nullptr) const |
Number | point_value (unsigned int var, const Point &p, const Elem *e) const |
Calls the version of point_value() which takes a reference. More... | |
Number | point_value (unsigned int var, const Point &p, const NumericVector< Number > *sol) const |
Calls the parallel version of point_value(). More... | |
Gradient | point_gradient (unsigned int var, const Point &p, const bool insist_on_success=true, const NumericVector< Number > *sol=nullptr) const |
Gradient | point_gradient (unsigned int var, const Point &p, const Elem &e, const NumericVector< Number > *sol=nullptr) const |
Gradient | point_gradient (unsigned int var, const Point &p, const Elem *e) const |
Calls the version of point_gradient() which takes a reference. More... | |
Gradient | point_gradient (unsigned int var, const Point &p, const NumericVector< Number > *sol) const |
Calls the parallel version of point_gradient(). More... | |
Tensor | point_hessian (unsigned int var, const Point &p, const bool insist_on_success=true, const NumericVector< Number > *sol=nullptr) const |
Tensor | point_hessian (unsigned int var, const Point &p, const Elem &e, const NumericVector< Number > *sol=nullptr) const |
Tensor | point_hessian (unsigned int var, const Point &p, const Elem *e) const |
Calls the version of point_hessian() which takes a reference. More... | |
Tensor | point_hessian (unsigned int var, const Point &p, const NumericVector< Number > *sol) const |
Calls the parallel version of point_hessian(). More... | |
void | local_dof_indices (const unsigned int var, std::set< dof_id_type > &var_indices) const |
Fills the std::set with the degrees of freedom on the local processor corresponding the the variable number passed in. More... | |
void | zero_variable (NumericVector< Number > &v, unsigned int var_num) const |
Zeroes all dofs in v that correspond to variable number var_num . More... | |
bool & | hide_output () |
void | projection_matrix (SparseMatrix< Number > &proj_mat) const |
This method creates a projection matrix which corresponds to the operation of project_vector between old and new solution spaces. More... | |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
void | initialize_parameters (const RBParameters &mu_min_in, const RBParameters &mu_max_in, const std::map< std::string, std::vector< Real >> &discrete_parameter_values) |
Initialize the parameter ranges and set current_parameters. More... | |
void | initialize_parameters (const RBParametrized &rb_parametrized) |
Initialize the parameter ranges and set current_parameters. More... | |
unsigned int | get_n_params () const |
Get the number of parameters. More... | |
unsigned int | get_n_continuous_params () const |
Get the number of continuous parameters. More... | |
unsigned int | get_n_discrete_params () const |
Get the number of discrete parameters. More... | |
std::set< std::string > | get_parameter_names () const |
Get a set that stores the parameter names. More... | |
const RBParameters & | get_parameters () const |
Get the current parameters. More... | |
void | set_parameters (const RBParameters ¶ms) |
Set the current parameters to params . More... | |
const RBParameters & | get_parameters_min () const |
Get an RBParameters object that specifies the minimum allowable value for each parameter. More... | |
const RBParameters & | get_parameters_max () const |
Get an RBParameters object that specifies the maximum allowable value for each parameter. More... | |
Real | get_parameter_min (const std::string ¶m_name) const |
Get minimum allowable value of parameter param_name . More... | |
Real | get_parameter_max (const std::string ¶m_name) const |
Get maximum allowable value of parameter param_name . More... | |
void | print_parameters () const |
Print the current parameters. More... | |
void | write_parameter_data_to_files (const std::string &continuous_param_file_name, const std::string &discrete_param_file_name, const bool write_binary_data) |
Write out the parameter ranges to files. More... | |
void | read_parameter_data_from_files (const std::string &continuous_param_file_name, const std::string &discrete_param_file_name, const bool read_binary_data) |
Read in the parameter ranges from files. More... | |
bool | is_discrete_parameter (const std::string &mu_name) const |
Is parameter mu_name discrete? More... | |
const std::map< std::string, std::vector< Real > > & | get_discrete_parameter_values () const |
Get a const reference to the discrete parameter values. More... | |
void | print_discrete_parameter_values () const |
Print out all the discrete parameter values. More... | |
Static Public Member Functions | |
static void | print_info (std::ostream &out=libMesh::out) |
Prints the reference information, by default to libMesh::out . More... | |
static void | print_info (std::ostream &out=libMesh::out) |
Prints the reference information, by default to libMesh::out . More... | |
static std::unique_ptr< DirichletBoundary > | build_zero_dirichlet_boundary_object () |
It's helpful to be able to generate a DirichletBoundary that stores a ZeroFunction in order to impose Dirichlet boundary conditions. More... | |
static std::string | get_info () |
Gets a string containing the reference information. More... | |
static std::string | get_info () |
Gets a string containing the reference information. More... | |
static unsigned int | n_objects () |
Prints the number of outstanding (created, but not yet destroyed) objects. More... | |
static unsigned int | n_objects () |
Prints the number of outstanding (created, but not yet destroyed) objects. More... | |
static void | enable_print_counter_info () |
Methods to enable/disable the reference counter output from print_info() More... | |
static void | enable_print_counter_info () |
Methods to enable/disable the reference counter output from print_info() More... | |
static void | disable_print_counter_info () |
static void | disable_print_counter_info () |
static Real | get_closest_value (Real value, const std::vector< Real > &list_of_values) |
Public Attributes | |
unsigned int | u_var |
Variable number for u. More... | |
CDRBAssemblyExpansion | cd_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e. More... | |
std::unique_ptr< DirichletBoundary > | dirichlet_bc |
The object that defines which degrees of freedom are on a Dirichlet boundary. More... | |
Ex02RBAssemblyExpansion | ex02_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e. More... | |
EimTestRBThetaExpansion | eim_test_rb_theta_expansion |
The object that stores the "theta" expansion of the parameter dependent PDE, i.e. More... | |
EimTestRBAssemblyExpansion | eim_test_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e. More... | |
Ex6AssemblyExpansion | ex6_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e. More... | |
Ex6InnerProduct | ex6_ip |
The inner product assembly object. More... | |
unsigned int | p_var |
Variable number for pd. More... | |
std::unique_ptr< AcousticsRBAssemblyExpansion > | acoustics_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e. More... | |
std::vector< Real > | training_error_bounds |
Vector storing the values of the error bound for each parameter in the training set — the parameter giving the largest error bound is chosen for the next snapshot in the Greedy basis training. More... | |
std::unique_ptr< LinearSolver< Number > > | inner_product_solver |
We store an extra linear solver object which we can optionally use for solving all systems in which the system matrix is set to inner_product_matrix. More... | |
LinearSolver< Number > * | extra_linear_solver |
Also, we store a pointer to an extra linear solver. More... | |
std::unique_ptr< SparseMatrix< Number > > | inner_product_matrix |
The inner product matrix. More... | |
std::vector< Number > | truth_outputs |
Vector storing the truth output values from the most recent truth solve. More... | |
std::vector< std::vector< Number > > | output_dual_innerprods |
The vector storing the dual norm inner product terms for each output. More... | |
std::vector< std::unique_ptr< NumericVector< Number > > > | Fq_representor |
Vector storing the residual representors associated with the right-hand side. More... | |
std::vector< Number > | Fq_representor_innerprods |
Vectors storing the residual representor inner products to be used in computing the residuals online. More... | |
bool | skip_residual_in_train_reduced_basis |
Boolean flag to indicate if we skip residual calculations in train_reduced_basis. More... | |
bool | exit_on_repeated_greedy_parameters |
Boolean flag to indicate whether we exit the greedy if we select the same parameters twice in a row. More... | |
bool | impose_internal_fluxes |
Boolean flag to indicate whether we impose "fluxes" (i.e. More... | |
bool | skip_degenerate_sides |
In some cases meshes are intentionally created with degenerate sides as a way to represent, say, triangles using a hex-only mesh. More... | |
bool | compute_RB_inner_product |
Boolean flag to indicate whether we compute the RB_inner_product_matrix. More... | |
bool | store_non_dirichlet_operators |
Boolean flag to indicate whether we store a second copy of each affine operator and vector which does not have Dirichlet bcs enforced. More... | |
bool | use_empty_rb_solve_in_greedy |
A boolean flag to indicate whether or not we initialize the Greedy algorithm by performing rb_solves on the training set with an "empty" (i.e. More... | |
bool | Fq_representor_innerprods_computed |
A boolean flag to indicate whether or not the Fq representor norms have already been computed — used to make sure that we don't recompute them unnecessarily. More... | |
std::unique_ptr< LinearSolver< Number > > | linear_solver |
The LinearSolver defines the interface used to solve the linear_implicit system. More... | |
SparseMatrix< Number > * | matrix |
The system matrix. More... | |
bool | zero_out_matrix_and_rhs |
By default, the system will zero out the matrix and the right hand side. More... | |
NumericVector< Number > * | rhs |
The system matrix. More... | |
bool | assemble_before_solve |
Flag which tells the system to whether or not to call the user assembly function during each call to solve(). More... | |
bool | use_fixed_solution |
A boolean to be set to true by systems using elem_fixed_solution, for optional use by e.g. More... | |
int | extra_quadrature_order |
A member int that can be employed to indicate increased or reduced quadrature order. More... | |
std::unique_ptr< NumericVector< Number > > | solution |
Data structure to hold solution values. More... | |
std::unique_ptr< NumericVector< Number > > | current_local_solution |
All the values I need to compute my contribution to the simulation at hand. More... | |
Real | time |
For time-dependent problems, this is the time t at the beginning of the current timestep. More... | |
std::vector< Number > | qoi |
Values of the quantities of interest. More... | |
bool | verbose_mode |
Public boolean to toggle verbose mode. More... | |
Protected Types | |
typedef std::map< std::string, std::pair< unsigned int, unsigned int > > | Counts |
Data structure to log the information. More... | |
typedef std::map< std::string, std::pair< unsigned int, unsigned int > > | Counts |
Data structure to log the information. More... | |
Protected Member Functions | |
virtual void | allocate_data_structures () |
Helper function that actually allocates all the data structures required by this class. More... | |
virtual void | truth_assembly () |
Assemble the truth matrix and right-hand side for current_parameters. More... | |
virtual std::unique_ptr< DGFEMContext > | build_context () |
Builds a DGFEMContext object with enough information to do evaluations on each element. More... | |
virtual SparseMatrix< Number > & | get_matrix_for_output_dual_solves () |
Return the matrix for the output residual dual norm solves. More... | |
virtual bool | greedy_termination_test (Real abs_greedy_error, Real initial_greedy_error, int count) |
Function that indicates when to terminate the Greedy basis training. More... | |
void | update_greedy_param_list () |
Update the list of Greedily chosen parameters with current_parameters. More... | |
void | add_scaled_matrix_and_vector (Number scalar, ElemAssembly *elem_assembly, SparseMatrix< Number > *input_matrix, NumericVector< Number > *input_vector, bool symmetrize=false, bool apply_dof_constraints=true) |
This function loops over the mesh and applies the specified interior and/or boundary assembly routines, then adds the scaled result to input_matrix and/or input_vector. More... | |
virtual void | post_process_elem_matrix_and_vector (DGFEMContext &) |
This function is called from add_scaled_matrix_and_vector() before each element matrix and vector are assembled into their global counterparts. More... | |
virtual void | post_process_truth_solution () |
Similarly, provide an opportunity to post-process the truth solution after the solve is complete. More... | |
virtual void | set_context_solution_vec (NumericVector< Number > &vec) |
Set current_local_solution = vec so that we can access vec from FEMContext during assembly. More... | |
virtual void | assemble_misc_matrices () |
Assemble and store all the inner-product matrix, the constraint matrix (for constrained problems) and the mass matrix (for time-dependent problems). More... | |
virtual void | assemble_all_affine_operators () |
Assemble and store all Q_a affine operators as well as the inner-product matrix. More... | |
virtual void | assemble_all_affine_vectors () |
Assemble and store the affine RHS vectors. More... | |
virtual void | assemble_all_output_vectors () |
Assemble and store the output vectors. More... | |
virtual void | compute_output_dual_innerprods () |
Compute and store the dual norm of each output functional. More... | |
virtual void | compute_Fq_representor_innerprods (bool compute_inner_products=true) |
Compute the terms that are combined ‘online’ to determine the dual norm of the residual. More... | |
virtual void | enrich_RB_space () |
Add a new basis function to the RB space. More... | |
virtual void | update_system () |
Update the system after enriching the RB space; this calls a series of functions to update the system properly. More... | |
virtual Real | get_RB_error_bound () |
virtual void | update_RB_system_matrices () |
Compute the reduced basis matrices for the current basis. More... | |
virtual void | update_residual_terms (bool compute_inner_products=true) |
Compute the terms that are combined ‘online’ to determine the dual norm of the residual. More... | |
bool | get_convergence_assertion_flag () const |
Getter for the flag determining if convergence should be checked after each solve. More... | |
void | check_convergence (LinearSolver< Number > &input_solver) |
Check if the linear solver reports convergence. More... | |
RBParameters | get_params_from_training_set (unsigned int index) |
Return the RBParameters in index index of training set. More... | |
void | set_params_from_training_set (unsigned int index) |
Set parameters to the RBParameters stored in index index of the training set. More... | |
virtual void | set_params_from_training_set_and_broadcast (unsigned int index) |
Load the specified training parameter and then broadcast to all processors. More... | |
virtual void | init_matrices () |
Initializes the matrices associated with this system. More... | |
void | project_vector (NumericVector< Number > &, int is_adjoint=-1) const |
Projects the vector defined on the old mesh onto the new mesh. More... | |
void | project_vector (const NumericVector< Number > &, NumericVector< Number > &, int is_adjoint=-1) const |
Projects the vector defined on the old mesh onto the new mesh. More... | |
void | increment_constructor_count (const std::string &name) |
Increments the construction counter. More... | |
void | increment_constructor_count (const std::string &name) |
Increments the construction counter. More... | |
void | increment_destructor_count (const std::string &name) |
Increments the destruction counter. More... | |
void | increment_destructor_count (const std::string &name) |
Increments the destruction counter. More... | |
Static Protected Member Functions | |
static void | get_global_max_error_pair (const Parallel::Communicator &communicator, std::pair< numeric_index_type, Real > &error_pair) |
Static function to return the error pair (index,error) that is corresponds to the largest error on all processors. More... | |
static void | generate_training_parameters_random (const Parallel::Communicator &communicator, std::map< std::string, bool > log_param_scale, std::map< std::string, std::unique_ptr< NumericVector< Number >>> &training_parameters_in, unsigned int n_training_samples_in, const RBParameters &min_parameters, const RBParameters &max_parameters, int training_parameters_random_seed=-1, bool serial_training_set=false) |
Static helper function for generating a randomized set of parameters. More... | |
static void | generate_training_parameters_deterministic (const Parallel::Communicator &communicator, std::map< std::string, bool > log_param_scale, std::map< std::string, std::unique_ptr< NumericVector< Number >>> &training_parameters_in, unsigned int n_training_samples_in, const RBParameters &min_parameters, const RBParameters &max_parameters, bool serial_training_set=false) |
Static helper function for generating a deterministic set of parameters. More... | |
Protected Attributes | |
unsigned int | Nmax |
Maximum number of reduced basis functions we are willing to use. More... | |
unsigned int | delta_N |
The number of basis functions that we add at each greedy step. More... | |
bool | output_dual_innerprods_computed |
A boolean flag to indicate whether or not the output dual norms have already been computed — used to make sure that we don't recompute them unnecessarily. More... | |
bool | assert_convergence |
A boolean flag to indicate whether to check for proper convergence after each solve. More... | |
bool | quiet_mode |
Flag to indicate whether we print out extra information during the Offline stage. More... | |
bool | serial_training_set |
This boolean flag indicates whether or not the training set should be the same on all processors. More... | |
std::unique_ptr< NumericVector< Number > > | inner_product_storage_vector |
We keep an extra temporary vector that is useful for performing inner products (avoids unnecessary memory allocation/deallocation). More... | |
unsigned int | _n_linear_iterations |
The number of linear iterations required to solve the linear system Ax=b. More... | |
Real | _final_linear_residual |
The final residual for the linear system Ax=b. More... | |
ShellMatrix< Number > * | _shell_matrix |
User supplies shell matrix or nullptr if no shell matrix is used. More... | |
const SystemSubset * | _subset |
The current subset on which to solve (or nullptr if none). More... | |
SubsetSolveMode | _subset_solve_mode |
If restrict-solve-to-subset mode is active, this member decides what happens with the dofs outside the subset. More... | |
const Parallel::Communicator & | _communicator |
Static Protected Attributes | |
static Counts | _counts |
Actually holds the data. More... | |
static Counts | _counts |
Actually holds the data. More... | |
static Threads::atomic< unsigned int > | _n_objects |
The number of objects. More... | |
static Threads::atomic< unsigned int > | _n_objects |
The number of objects. More... | |
static Threads::spin_mutex | _mutex |
Mutual exclusion object to enable thread-safe reference counting. More... | |
static Threads::spin_mutex | _mutex |
Mutual exclusion object to enable thread-safe reference counting. More... | |
static bool | _enable_print_counter = true |
Flag to control whether reference count information is printed when print_info is called. More... | |
static bool | _enable_print_counter = true |
Flag to control whether reference count information is printed when print_info is called. More... | |
Private Member Functions | |
void | add_system_matrix () |
Add the system matrix to the _matrices data structure. More... | |
void | add_system_rhs () |
Add the system right-hand-side vector to the _vectors data structure. More... | |
Real | discrete_var_norm (const NumericVector< Number > &v, unsigned int var, FEMNormType norm_type) const |
Finds the discrete norm for the entries in the vector corresponding to Dofs associated with var. More... | |
template<typename iterator_type , typename InValType > | |
std::size_t | read_serialized_blocked_dof_objects (const dof_id_type n_objects, const iterator_type begin, const iterator_type end, const InValType dummy, Xdr &io, const std::vector< NumericVector< Number > * > &vecs, const unsigned int var_to_read=libMesh::invalid_uint) const |
Reads an input vector from the stream io and assigns the values to a set of DofObjects . More... | |
unsigned int | read_SCALAR_dofs (const unsigned int var, Xdr &io, NumericVector< Number > *vec) const |
Reads the SCALAR dofs from the stream io and assigns the values to the appropriate entries of vec . More... | |
template<typename InValType > | |
numeric_index_type | read_serialized_vector (Xdr &io, NumericVector< Number > *vec) |
Reads a vector for this System. More... | |
numeric_index_type | read_serialized_vector (Xdr &io, NumericVector< Number > &vec) |
Non-templated version for backward compatibility. More... | |
template<typename iterator_type > | |
std::size_t | write_serialized_blocked_dof_objects (const std::vector< const NumericVector< Number > * > &vecs, const dof_id_type n_objects, const iterator_type begin, const iterator_type end, Xdr &io, const unsigned int var_to_write=libMesh::invalid_uint) const |
Writes an output vector to the stream io for a set of DofObjects . More... | |
unsigned int | write_SCALAR_dofs (const NumericVector< Number > &vec, const unsigned int var, Xdr &io) const |
Writes the SCALAR dofs associated with var to the stream io . More... | |
dof_id_type | write_serialized_vector (Xdr &io, const NumericVector< Number > &vec) const |
Writes a vector for this System. More... | |
void | write_parameter_ranges_to_file (const std::string &file_name, const bool write_binary) |
Write out the parameter ranges to file. More... | |
void | write_discrete_parameter_values_to_file (const std::string &file_name, const bool write_binary_data) |
Write out the discrete parameter values to file. More... | |
void | read_parameter_ranges_from_file (const std::string &file_name, const bool read_binary, RBParameters ¶m_min, RBParameters ¶m_max) |
Read in the parameter ranges from file. More... | |
void | read_discrete_parameter_values_from_file (const std::string &file_name, const bool read_binary_data, std::map< std::string, std::vector< Real >> &discrete_parameter_values_in) |
Read in the discrete parameter values from file, if we have any. More... | |
bool | valid_params (const RBParameters ¶ms) |
Helper function to check that params is valid. More... | |
Static Private Member Functions | |
static bool | is_value_in_list (Real value, const std::vector< Real > &list_of_values, Real tol) |
Helper function to check if the specified value is in the list of values (within a tolerance given by tol ). More... | |
Private Attributes | |
RBEvaluation * | rb_eval |
The current RBEvaluation object we are using to perform the Evaluation stage of the reduced basis method. More... | |
RBAssemblyExpansion * | rb_assembly_expansion |
This member holds the (parameter independent) assembly functors that define the "affine expansion" of the PDE that we are solving. More... | |
ElemAssembly * | inner_product_assembly |
Pointer to inner product assembly. More... | |
bool | use_energy_inner_product |
Boolean to indicate whether we're using the energy inner-product. More... | |
std::vector< Number > | energy_inner_product_coeffs |
We may optionally want to use the "energy inner-product" rather than the inner-product assembly specified in inner_product_assembly. More... | |
std::vector< std::unique_ptr< SparseMatrix< Number > > > | Aq_vector |
Vector storing the Q_a matrices from the affine expansion. More... | |
std::vector< std::unique_ptr< NumericVector< Number > > > | Fq_vector |
Vector storing the Q_f vectors in the affine decomposition of the right-hand side. More... | |
std::vector< std::vector< std::unique_ptr< NumericVector< Number > > > > | outputs_vector |
The libMesh vectors that define the output functionals. More... | |
std::vector< std::unique_ptr< SparseMatrix< Number > > > | non_dirichlet_Aq_vector |
We may also need a second set of matrices/vectors that do not have the Dirichlet boundary conditions enforced. More... | |
std::vector< std::unique_ptr< NumericVector< Number > > > | non_dirichlet_Fq_vector |
std::vector< std::vector< std::unique_ptr< NumericVector< Number > > > > | non_dirichlet_outputs_vector |
std::unique_ptr< SparseMatrix< Number > > | non_dirichlet_inner_product_matrix |
Real | rel_training_tolerance |
Relative and absolute tolerances for training reduced basis using the Greedy scheme. More... | |
Real | abs_training_tolerance |
bool | normalize_rb_bound_in_greedy |
This boolean indicates if we normalize the RB error in the greedy using RBEvaluation::get_error_bound_normalization(). More... | |
bool | training_parameters_initialized |
Boolean flag to indicate whether or not the parameter ranges have been initialized. More... | |
std::map< std::string, std::unique_ptr< NumericVector< Number > > > | training_parameters |
The training samples. More... | |
int | training_parameters_random_seed |
If < 0, use std::time() * processor_id() to seed the random number generator for the training parameters (default). More... | |
std::map< std::string, SparseMatrix< Number > * > | _matrices |
Some systems need an arbitrary number of matrices. More... | |
bool | _can_add_matrices |
true when additional matrices may still be added, false otherwise. More... | |
void(* | _init_system_function )(EquationSystems &es, const std::string &name) |
Function that initializes the system. More... | |
Initialization * | _init_system_object |
Object that initializes the system. More... | |
void(* | _assemble_system_function )(EquationSystems &es, const std::string &name) |
Function that assembles the system. More... | |
Assembly * | _assemble_system_object |
Object that assembles the system. More... | |
void(* | _constrain_system_function )(EquationSystems &es, const std::string &name) |
Function to impose constraints. More... | |
Constraint * | _constrain_system_object |
Object that constrains the system. More... | |
void(* | _qoi_evaluate_function )(EquationSystems &es, const std::string &name, const QoISet &qoi_indices) |
Function to evaluate quantity of interest. More... | |
QOI * | _qoi_evaluate_object |
Object to compute quantities of interest. More... | |
void(* | _qoi_evaluate_derivative_function )(EquationSystems &es, const std::string &name, const QoISet &qoi_indices, bool include_liftfunc, bool apply_constraints) |
Function to evaluate quantity of interest derivative. More... | |
QOIDerivative * | _qoi_evaluate_derivative_object |
Object to compute derivatives of quantities of interest. More... | |
std::unique_ptr< DofMap > | _dof_map |
Data structure describing the relationship between nodes, variables, etc... More... | |
EquationSystems & | _equation_systems |
Constant reference to the EquationSystems object used for the simulation. More... | |
MeshBase & | _mesh |
Constant reference to the mesh data structure used for the simulation. More... | |
const std::string | _sys_name |
A name associated with this system. More... | |
const unsigned int | _sys_number |
The number associated with this system. More... | |
std::vector< Variable > | _variables |
The Variable in this System . More... | |
std::vector< VariableGroup > | _variable_groups |
The VariableGroup in this System . More... | |
std::map< std::string, unsigned short int > | _variable_numbers |
The variable numbers corresponding to user-specified names, useful for name-based lookups. More... | |
bool | _active |
Flag stating if the system is active or not. More... | |
std::map< std::string, NumericVector< Number > * > | _vectors |
Some systems need an arbitrary number of vectors. More... | |
std::map< std::string, bool > | _vector_projections |
Holds true if a vector by that name should be projected onto a changed grid, false if it should be zeroed. More... | |
std::map< std::string, int > | _vector_is_adjoint |
Holds non-negative if a vector by that name should be projected using adjoint constraints/BCs, -1 if primal. More... | |
std::map< std::string, ParallelType > | _vector_types |
Holds the type of a vector. More... | |
bool | _solution_projection |
Holds true if the solution vector should be projected onto a changed grid, false if it should be zeroed. More... | |
bool | _basic_system_only |
Holds true if the components of more advanced system types (e.g. More... | |
bool | _is_initialized |
true when additional vectors and variables do not require immediate initialization, false otherwise. More... | |
bool | _identify_variable_groups |
true when VariableGroup structures should be automatically identified, false otherwise. More... | |
unsigned int | _additional_data_written |
This flag is used only when reading in a system from file. More... | |
std::vector< unsigned int > | _written_var_indices |
This vector is used only when reading in a system from file. More... | |
bool | adjoint_already_solved |
Has the adjoint problem already been solved? If the user sets adjoint_already_solved to true , we won't waste time solving it again. More... | |
bool | _hide_output |
Are we allowed to write this system to file? If _hide_output is true , then EquationSystems::write will ignore this system. More... | |
bool | parameters_initialized |
Flag indicating whether the parameters have been initialized. More... | |
RBParameters | parameters |
Vector storing the current parameters. More... | |
RBParameters | parameters_min |
Vectors that define the ranges (min and max) for the parameters. More... | |
RBParameters | parameters_max |
std::map< std::string, std::vector< Real > > | _discrete_parameter_values |
Map that defines the allowable values of any discrete parameters. More... | |
Definition at line 73 of file rb_classes.h.
|
inherited |
Definition at line 307 of file implicit_system.h.
|
inherited |
|
protectedinherited |
Data structure to log the information.
The log is identified by the class name.
Definition at line 117 of file reference_counter.h.
|
protectedinherited |
Data structure to log the information.
The log is identified by the class name.
Definition at line 117 of file reference_counter.h.
|
inherited |
|
inherited |
Matrix iterator typedefs.
Definition at line 306 of file implicit_system.h.
The type of the parent.
Definition at line 79 of file rb_classes.h.
The type of the parent.
Definition at line 97 of file rb_classes.h.
The type of the parent.
Definition at line 97 of file rb_classes.h.
The type of the parent.
Definition at line 99 of file rb_classes.h.
The type of the parent.
Definition at line 101 of file rb_classes.h.
The type of the parent.
Definition at line 115 of file rb_classes.h.
The type of system.
Definition at line 74 of file rb_classes.h.
The type of system.
Definition at line 92 of file rb_classes.h.
The type of system.
Definition at line 92 of file rb_classes.h.
The type of system.
Definition at line 94 of file rb_classes.h.
The type of system.
Definition at line 96 of file rb_classes.h.
The type of system.
Definition at line 110 of file rb_classes.h.
|
inherited |
|
inherited |
|
inline |
Definition at line 77 of file rb_classes.h.
|
inlinevirtual |
|
inline |
Definition at line 96 of file rb_classes.h.
|
inlinevirtual |
|
inline |
Definition at line 77 of file rb_classes.h.
|
inlinevirtual |
|
inline |
Definition at line 59 of file rb_classes.h.
|
inlinevirtual |
|
inline |
Definition at line 78 of file rb_classes.h.
|
inlinevirtual |
|
inline |
Definition at line 82 of file rb_classes.h.
|
inlinevirtual |
|
inlineinherited |
Activates the system.
Only active systems are solved.
Definition at line 2123 of file system.h.
References libMesh::System::_active.
|
inlineinherited |
true
if the system is active, false
otherwise. An active system will be solved. Definition at line 2115 of file system.h.
References libMesh::System::_active.
|
inherited |
Definition at line 1009 of file system.C.
References libMesh::System::add_vector().
Referenced by libMesh::ExplicitSystem::assemble_qoi_derivative(), and libMesh::FEMSystem::assemble_qoi_derivative().
|
inherited |
Definition at line 945 of file system.C.
References libMesh::System::add_vector(), and libMesh::System::set_vector_as_adjoint().
Referenced by libMesh::ImplicitSystem::adjoint_solve().
|
inherited |
Adds the additional matrix mat_name
to this system.
Only allowed prior to assemble()
. All additional matrices have the same sparsity pattern as the matrix used during solution. When not System
but the user wants to initialize the mayor matrix, then all the additional matrices, if existent, have to be initialized by the user, too.
This non-template method will add a derived matrix type corresponding to the solver package. If the user wishes to specify the matrix type to add, use the templated add_matrix
method instead
Definition at line 202 of file implicit_system.C.
References libMesh::ImplicitSystem::_can_add_matrices, libMesh::ImplicitSystem::_matrices, libMesh::SparseMatrix< T >::build(), libMesh::ParallelObject::comm(), and libMesh::ImplicitSystem::have_matrix().
Referenced by libMesh::ImplicitSystem::add_system_matrix(), libMesh::EigenTimeSolver::init(), main(), and libMesh::NewmarkSystem::NewmarkSystem().
|
inlineinherited |
Adds the additional matrix mat_name
to this system.
Only allowed prior to assemble()
. All additional matrices have the same sparsity pattern as the matrix used during solution. When not System
but the user wants to initialize the mayor matrix, then all the additional matrices, if existent, have to be initialized by the user, too.
This method will create add a derived matrix of type MatrixType<Number>
. One can use the non-templated add_matrix
method to add a matrix corresponding to the default solver package
Definition at line 454 of file implicit_system.h.
References libMesh::ImplicitSystem::_can_add_matrices, libMesh::ImplicitSystem::_matrices, libMesh::ParallelObject::comm(), and libMesh::ImplicitSystem::have_matrix().
|
inherited |
Add the scaled q^th affine matrix to input_matrix.
If symmetrize==true, then we symmetrize Aq before adding it.
Definition at line 893 of file rb_construction.C.
References libMesh::SparseMatrix< T >::add(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::SparseMatrix< T >::close(), libMesh::RBAssemblyExpansion::get_A_assembly(), libMesh::RBConstruction::get_Aq(), libMesh::RBConstruction::get_rb_theta_expansion(), and libMesh::RBConstruction::rb_assembly_expansion.
Referenced by libMesh::RBSCMConstruction::add_scaled_symm_Aq().
|
protectedinherited |
This function loops over the mesh and applies the specified interior and/or boundary assembly routines, then adds the scaled result to input_matrix and/or input_vector.
If symmetrize==true then we assemble the symmetric part of the matrix, 0.5*(A + A^T)
Definition at line 588 of file rb_construction.C.
References libMesh::DofMap::_dof_coupling, libMesh::SparseMatrix< T >::add_matrix(), libMesh::NumericVector< T >::add_vector(), libMesh::FEAbstract::attach_quadrature_rule(), libMesh::ElemAssembly::boundary_assembly(), libMesh::RBConstruction::build_context(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::ParallelObject::comm(), libMesh::DofMap::constrain_element_matrix_and_vector(), libMesh::FEType::default_quadrature_rule(), libMesh::DGFEMContext::dg_terms_are_active(), libMesh::DenseMatrix< T >::el(), libMesh::FEMContext::elem_fe_reinit(), libMesh::MeshBase::get_boundary_info(), libMesh::DiffContext::get_dof_indices(), libMesh::System::get_dof_map(), libMesh::FEMContext::get_elem(), libMesh::DGFEMContext::get_elem_elem_jacobian(), libMesh::DiffContext::get_elem_jacobian(), libMesh::DGFEMContext::get_elem_neighbor_jacobian(), libMesh::DiffContext::get_elem_residual(), libMesh::FEMContext::get_element_fe(), libMesh::FEAbstract::get_fe_type(), libMesh::System::get_mesh(), libMesh::DGFEMContext::get_neighbor_dof_indices(), libMesh::DGFEMContext::get_neighbor_elem_jacobian(), libMesh::DGFEMContext::get_neighbor_neighbor_jacobian(), libMesh::ElemAssembly::get_nodal_values(), libMesh::FEMContext::get_side(), libMesh::DenseMatrix< T >::get_transpose(), libMesh::RBConstruction::impose_internal_fluxes, libMesh::RBConstruction::init_context(), libMesh::ElemAssembly::interior_assembly(), libMesh::Tri3Subdivision::is_ghost(), libMesh::DenseMatrixBase< T >::m(), mesh, libMesh::DenseMatrixBase< T >::n(), libMesh::BoundaryInfo::n_nodeset_conds(), libMesh::Elem::n_sides(), libMesh::System::n_vars(), libMesh::Elem::neighbor_ptr(), libMesh::RBConstruction::post_process_elem_matrix_and_vector(), libMesh::FEMContext::pre_fe_reinit(), libMesh::DofObject::processor_id(), libMesh::FEMContext::side, libMesh::DGFEMContext::side_fe_reinit(), libMesh::Elem::side_ptr(), libMesh::RBConstruction::skip_degenerate_sides, and libMesh::TRI3SUBDIVISION.
Referenced by libMesh::RBConstruction::add_scaled_Aq(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::assemble_Aq_matrix(), libMesh::RBConstruction::assemble_Fq_vector(), libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::TransientRBConstruction::assemble_L2_matrix(), and libMesh::TransientRBConstruction::assemble_Mq_matrix().
|
inherited |
Definition at line 1039 of file system.C.
References libMesh::System::add_vector().
Referenced by libMesh::ImplicitSystem::assemble_residual_derivatives().
|
inherited |
Definition at line 894 of file system.C.
References libMesh::System::add_vector().
Referenced by libMesh::ImplicitSystem::sensitivity_solve().
|
privateinherited |
Add the system matrix to the _matrices
data structure.
Useful in initialization.
Definition at line 276 of file implicit_system.C.
References libMesh::ImplicitSystem::_matrices, libMesh::ImplicitSystem::add_matrix(), libMesh::libmesh_assert(), and libMesh::ImplicitSystem::matrix.
Referenced by libMesh::ImplicitSystem::clear(), and libMesh::ImplicitSystem::ImplicitSystem().
|
privateinherited |
Add the system right-hand-side vector to the _vectors
data structure.
Useful in initialization.
Definition at line 96 of file explicit_system.C.
References libMesh::System::add_vector(), libMesh::libmesh_assert(), libMesh::System::n_vectors(), and libMesh::ExplicitSystem::rhs.
Referenced by libMesh::ExplicitSystem::clear(), and libMesh::ExplicitSystem::ExplicitSystem().
|
inherited |
Adds the variable var
to the list of variables for this system.
If active_subdomains
is either nullptr
(the default) or points to an empty set, then it will be assumed that var
has no subdomain restrictions
Definition at line 1069 of file system.C.
References libMesh::System::_variable_groups, libMesh::System::_variable_numbers, libMesh::System::_variables, libMesh::System::add_variables(), libMesh::System::identify_variable_groups(), libMesh::System::is_initialized(), libMesh::libmesh_assert(), libMesh::System::n_variable_groups(), libMesh::System::n_vars(), libMesh::System::variable_name(), and libMesh::System::variable_type().
Referenced by libMesh::DifferentiableSystem::add_second_order_dot_vars(), libMesh::System::add_variable(), assemble_and_solve(), OverlappingTestBase::init(), SolidSystem::init_data(), CurlCurlSystem::init_data(), HeatSystem::init_data(), init_data(), main(), libMesh::ErrorVector::plot_error(), libMesh::System::read_header(), RationalMapTest< elem_type >::setUp(), FETest< order, family, elem_type >::setUp(), SlitMeshRefinedSystemTest::setUp(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), SystemsTest::testAssemblyWithDgFemContext(), SystemsTest::testBlockRestrictedVarNDofs(), SystemsTest::testBoundaryProjectCube(), DofMapTest::testConstraintLoopDetection(), DefaultCouplingTest::testCoupling(), PointNeighborCouplingTest::testCoupling(), SystemsTest::testDofCouplingWithVarGroups(), DofMapTest::testDofOwner(), MeshInputTest::testDynaReadPatch(), MeshInputTest::testExodusCopyElementSolution(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), EquationSystemsTest::testPostInitAddElem(), EquationSystemsTest::testPostInitAddRealSystem(), SystemsTest::testProjectCubeWithMeshFunction(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), SystemsTest::testProjectMatrix3D(), EquationSystemsTest::testRefineThenReinitPreserveFlags(), EquationSystemsTest::testReinitWithNodeElem(), EquationSystemsTest::testRepartitionThenReinit(), BoundaryInfoTest::testShellFaceConstraints(), and WriteVecAndScalar::testWrite().
|
inherited |
Adds the variable var
to the list of variables for this system.
Same as before, but assumes LAGRANGE
as default value for FEType.family
. If active_subdomains
is either nullptr
(the default) or points to an empty set, then it will be assumed that var
has no subdomain restrictions
Definition at line 1148 of file system.C.
References libMesh::System::add_variable().
|
inherited |
Adds the variable var
to the list of variables for this system.
If active_subdomains
is either nullptr
(the default) or points to an empty set, then it will be assumed that var
has no subdomain restrictions
Definition at line 1160 of file system.C.
References libMesh::System::_variable_groups, libMesh::System::_variable_numbers, libMesh::System::_variables, libMesh::System::is_initialized(), libMesh::libmesh_assert(), libMesh::System::n_components(), libMesh::System::n_vars(), libMesh::System::variable_name(), and libMesh::System::variable_type().
Referenced by libMesh::System::add_variable(), and libMesh::System::add_variables().
|
inherited |
Adds the variable var
to the list of variables for this system.
Same as before, but assumes LAGRANGE
as default value for FEType.family
. If active_subdomains
is either nullptr
(the default) or points to an empty set, then it will be assumed that var
has no subdomain restrictions
Definition at line 1213 of file system.C.
References libMesh::System::add_variables().
|
inherited |
Adds the additional vector vec_name
to this system.
All the additional vectors are similarly distributed, like the solution
, and initialized to zero.
By default vectors added by add_vector are projected to changed grids by reinit(). To zero them instead (more efficient), pass "false" as the second argument
Definition at line 661 of file system.C.
References libMesh::System::_dof_map, libMesh::System::_is_initialized, libMesh::System::_vector_is_adjoint, libMesh::System::_vector_projections, libMesh::System::_vector_types, libMesh::System::_vectors, libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::GHOSTED, libMesh::System::have_vector(), libMesh::NumericVector< T >::init(), libMesh::System::n_dofs(), and libMesh::System::n_local_dofs().
Referenced by libMesh::System::add_adjoint_rhs(), libMesh::System::add_adjoint_solution(), libMesh::System::add_sensitivity_rhs(), libMesh::System::add_sensitivity_solution(), libMesh::ExplicitSystem::add_system_rhs(), libMesh::System::add_weighted_sensitivity_adjoint_solution(), libMesh::System::add_weighted_sensitivity_solution(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::SecondOrderUnsteadySolver::init(), libMesh::UnsteadySolver::init(), libMesh::OptimizationSystem::init_data(), libMesh::ContinuationSystem::init_data(), main(), libMesh::NewmarkSystem::NewmarkSystem(), libMesh::System::read_header(), libMesh::FrequencySystem::set_frequencies(), libMesh::FrequencySystem::set_frequencies_by_range(), and libMesh::FrequencySystem::set_frequencies_by_steps().
|
inherited |
Definition at line 977 of file system.C.
References libMesh::System::add_vector(), and libMesh::System::set_vector_as_adjoint().
Referenced by libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve().
|
inherited |
Definition at line 924 of file system.C.
References libMesh::System::add_vector().
Referenced by libMesh::ImplicitSystem::weighted_sensitivity_solve().
|
overridevirtualinherited |
Solves for the derivative of each of the system's quantities of interest q in qoi
[qoi_indices] with respect to each parameter in parameters
, placing the result for qoi i
and parameter j
into sensitivities
[i][j].
Uses adjoint_solve() and the adjoint sensitivity method.
Currently uses finite differenced derivatives (partial q / partial p) and (partial R / partial p).
Reimplemented from libMesh::System.
Definition at line 686 of file implicit_system.C.
References std::abs(), libMesh::ImplicitSystem::adjoint_solve(), libMesh::SensitivityData::allocate_data(), libMesh::ExplicitSystem::assemble_qoi(), libMesh::ImplicitSystem::assemble_residual_derivatives(), libMesh::NumericVector< T >::dot(), libMesh::System::get_sensitivity_rhs(), libMesh::QoISet::has_index(), libMesh::System::is_adjoint_already_solved(), libMesh::System::n_qois(), libMesh::System::qoi, libMesh::Real, libMesh::ParameterVector::size(), and libMesh::TOLERANCE.
Referenced by main().
|
overridevirtualinherited |
Assembles & solves the linear system (dR/du)^T*z = dq/du, for those quantities of interest q specified by qoi_indices
.
Leave qoi_indices
empty to solve all adjoint problems.
Reimplemented from libMesh::System.
Reimplemented in libMesh::DifferentiableSystem.
Definition at line 359 of file implicit_system.C.
References libMesh::System::add_adjoint_solution(), libMesh::LinearSolver< T >::adjoint_solve(), libMesh::System::assemble_before_solve, libMesh::ExplicitSystem::assemble_qoi_derivative(), libMesh::ImplicitSystem::assembly(), libMesh::DofMap::enforce_adjoint_constraints_exactly(), libMesh::System::get_adjoint_rhs(), libMesh::System::get_adjoint_solution(), libMesh::System::get_dof_map(), libMesh::ImplicitSystem::get_linear_solve_parameters(), libMesh::ImplicitSystem::get_linear_solver(), libMesh::QoISet::has_index(), libMesh::ImplicitSystem::matrix, libMesh::System::n_qois(), and libMesh::ImplicitSystem::release_linear_solver().
Referenced by libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), libMesh::DifferentiableSystem::adjoint_solve(), libMesh::ImplicitSystem::qoi_parameter_hessian(), and libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product().
|
protectedvirtualinherited |
Helper function that actually allocates all the data structures required by this class.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 467 of file rb_construction.C.
References libMesh::RBConstruction::Aq_vector, libMesh::DofMap::attach_matrix(), libMesh::SparseMatrix< T >::build(), libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::RBConstruction::Fq_representor, libMesh::RBConstruction::Fq_representor_innerprods, libMesh::RBConstruction::Fq_vector, libMesh::System::get_dof_map(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::inner_product_matrix, libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::RBConstruction::non_dirichlet_Aq_vector, libMesh::RBConstruction::non_dirichlet_Fq_vector, libMesh::RBConstruction::non_dirichlet_inner_product_matrix, libMesh::RBConstruction::non_dirichlet_outputs_vector, libMesh::RBConstruction::output_dual_innerprods, libMesh::RBConstruction::outputs_vector, libMesh::PARALLEL, libMesh::RBConstruction::store_non_dirichlet_operators, and libMesh::RBConstruction::truth_outputs.
Referenced by libMesh::TransientRBConstruction::allocate_data_structures(), and libMesh::RBConstruction::initialize_rb_construction().
|
inlineoverridevirtualinherited |
Prepares matrix
and _dof_map
for matrix assembly.
Does not actually assemble anything. For matrix assembly, use the assemble()
in derived classes. Should be overridden in derived classes.
Reimplemented from libMesh::ImplicitSystem.
Reimplemented in libMesh::FrequencySystem, and libMesh::NewmarkSystem.
Definition at line 110 of file linear_implicit_system.h.
References libMesh::ImplicitSystem::assemble().
Referenced by libMesh::NewmarkSystem::assemble(), libMesh::FrequencySystem::assemble(), libMesh::LinearImplicitSystem::assembly(), and libMesh::LinearImplicitSystem::solve().
|
virtualinherited |
Assemble the matrices and vectors for this system.
Optionally skip matrix or vector assembly (e.g. we may want to read data in from disk instead).
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 449 of file rb_construction.C.
References libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::RBConstruction::assemble_all_output_vectors(), and libMesh::RBConstruction::assemble_misc_matrices().
Referenced by libMesh::TransientRBConstruction::assemble_affine_expansion(), and libMesh::RBConstruction::initialize_rb_construction().
|
protectedvirtualinherited |
Assemble and store all Q_a affine operators as well as the inner-product matrix.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 930 of file rb_construction.C.
References libMesh::RBConstruction::assemble_Aq_matrix(), libMesh::RBConstruction::get_Aq(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBConstruction::get_non_dirichlet_Aq(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::out, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::assemble_affine_expansion(), and libMesh::TransientRBConstruction::assemble_all_affine_operators().
|
protectedvirtualinherited |
Assemble and store the affine RHS vectors.
Definition at line 950 of file rb_construction.C.
References libMesh::RBConstruction::assemble_Fq_vector(), libMesh::RBConstruction::get_Fq(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBConstruction::get_non_dirichlet_Fq(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::out, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::assemble_affine_expansion().
|
protectedvirtualinherited |
Assemble and store the output vectors.
Definition at line 988 of file rb_construction.C.
References libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_non_dirichlet_output_vector(), libMesh::RBAssemblyExpansion::get_output_assembly(), libMesh::RBConstruction::get_output_vector(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::out, libMesh::RBConstruction::rb_assembly_expansion, libMesh::RBConstruction::store_non_dirichlet_operators, and libMesh::NumericVector< T >::zero().
Referenced by libMesh::RBConstruction::assemble_affine_expansion().
|
inherited |
Assemble the q^th affine matrix and store it in input_matrix.
Definition at line 876 of file rb_construction.C.
References libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::RBAssemblyExpansion::get_A_assembly(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::rb_assembly_expansion, and libMesh::SparseMatrix< T >::zero().
Referenced by libMesh::RBConstruction::assemble_all_affine_operators().
|
inherited |
Assemble the q^th affine vector and store it in input_matrix.
Definition at line 971 of file rb_construction.C.
References libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::RBAssemblyExpansion::get_F_assembly(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::rb_assembly_expansion, and libMesh::NumericVector< T >::zero().
Referenced by libMesh::RBConstruction::assemble_all_affine_vectors().
|
inherited |
Assemble the inner product matrix and store it in input_matrix.
Definition at line 841 of file rb_construction.C.
References libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::RBConstruction::energy_inner_product_coeffs, libMesh::RBAssemblyExpansion::get_A_assembly(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::inner_product_assembly, libMesh::RBConstruction::rb_assembly_expansion, libMesh::RBConstruction::use_energy_inner_product, and libMesh::SparseMatrix< T >::zero().
Referenced by libMesh::RBConstruction::assemble_misc_matrices().
|
protectedvirtualinherited |
Assemble and store all the inner-product matrix, the constraint matrix (for constrained problems) and the mass matrix (for time-dependent problems).
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 918 of file rb_construction.C.
References libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::RBConstruction::inner_product_matrix, libMesh::RBConstruction::non_dirichlet_inner_product_matrix, libMesh::out, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::assemble_affine_expansion(), and libMesh::TransientRBConstruction::assemble_misc_matrices().
|
overridevirtualinherited |
Prepares qoi
for quantity of interest assembly, then calls user qoi function.
Can be overridden in derived classes.
Reimplemented from libMesh::System.
Reimplemented in libMesh::FEMSystem.
Definition at line 56 of file explicit_system.C.
References libMesh::System::assemble_qoi(), libMesh::QoISet::has_index(), libMesh::System::n_qois(), and libMesh::System::qoi.
Referenced by libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::qoi_parameter_hessian(), and libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product().
|
overridevirtualinherited |
Prepares adjoint_rhs
for quantity of interest derivative assembly, then calls user qoi derivative function.
Can be overridden in derived classes.
Reimplemented from libMesh::System.
Reimplemented in libMesh::FEMSystem.
Definition at line 69 of file explicit_system.C.
References libMesh::System::add_adjoint_rhs(), libMesh::System::assemble_qoi_derivative(), libMesh::QoISet::has_index(), libMesh::System::n_qois(), and libMesh::NumericVector< T >::zero().
Referenced by libMesh::ImplicitSystem::adjoint_solve(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), and libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve().
|
overridevirtualinherited |
Residual parameter derivative function.
Uses finite differences by default.
This will assemble the sensitivity rhs vectors to hold -(partial R / partial p_i), making them ready to solve the forward sensitivity equation.
Can be overridden in derived classes.
Reimplemented from libMesh::System.
Definition at line 643 of file implicit_system.C.
References std::abs(), libMesh::System::add_sensitivity_rhs(), libMesh::ImplicitSystem::assembly(), libMesh::NumericVector< T >::close(), libMesh::Real, libMesh::ExplicitSystem::rhs, libMesh::ParameterVector::size(), and libMesh::TOLERANCE.
Referenced by libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), and libMesh::ImplicitSystem::sensitivity_solve().
|
overridevirtualinherited |
Assembles a residual in rhs
and/or a jacobian in matrix
, as requested.
Reimplemented from libMesh::ImplicitSystem.
Definition at line 366 of file linear_implicit_system.C.
References libMesh::NumericVector< T >::add_vector(), libMesh::LinearImplicitSystem::assemble(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::ImplicitSystem::matrix, libMesh::ExplicitSystem::rhs, and libMesh::System::solution.
|
inherited |
Register a user function to use in assembling the system matrix and RHS.
Definition at line 1755 of file system.C.
References libMesh::System::_assemble_system_function, libMesh::System::_assemble_system_object, fptr(), libMesh::libmesh_assert(), and libMesh::out.
Referenced by assemble_and_solve(), main(), SystemsTest::testAssemblyWithDgFemContext(), and SystemsTest::testDofCouplingWithVarGroups().
|
inherited |
Register a user object to use in assembling the system matrix and RHS.
Definition at line 1774 of file system.C.
References libMesh::System::_assemble_system_function, libMesh::System::_assemble_system_object, and libMesh::out.
Referenced by main().
|
inherited |
Register a user function for imposing constraints.
Definition at line 1790 of file system.C.
References libMesh::System::_constrain_system_function, libMesh::System::_constrain_system_object, fptr(), libMesh::libmesh_assert(), and libMesh::out.
|
inherited |
Register a user object for imposing constraints.
Definition at line 1809 of file system.C.
References libMesh::System::_constrain_system_function, libMesh::System::_constrain_system_object, and libMesh::out.
Referenced by DofMapTest::testConstraintLoopDetection().
|
inherited |
Register a user function to use in initializing the system.
Definition at line 1720 of file system.C.
References libMesh::System::_init_system_function, libMesh::System::_init_system_object, fptr(), libMesh::libmesh_assert(), and libMesh::out.
Referenced by main().
|
inherited |
Register a user class to use to initialize the system.
attach_init_function
. Definition at line 1739 of file system.C.
References libMesh::System::_init_system_function, libMesh::System::_init_system_object, and libMesh::out.
|
inherited |
Register a user function for evaluating derivatives of a quantity of interest with respect to test functions, whose values should be placed in System::rhs
.
Definition at line 1861 of file system.C.
References libMesh::System::_qoi_evaluate_derivative_function, libMesh::System::_qoi_evaluate_derivative_object, fptr(), libMesh::libmesh_assert(), and libMesh::out.
|
inherited |
Register a user object for evaluating derivatives of a quantity of interest with respect to test functions, whose values should be placed in System::rhs
.
Definition at line 1880 of file system.C.
References libMesh::System::_qoi_evaluate_derivative_function, libMesh::System::_qoi_evaluate_derivative_object, and libMesh::out.
|
inherited |
Register a user function for evaluating the quantities of interest, whose values should be placed in System::qoi
.
Definition at line 1825 of file system.C.
References libMesh::System::_qoi_evaluate_function, libMesh::System::_qoi_evaluate_object, fptr(), libMesh::libmesh_assert(), and libMesh::out.
|
inherited |
Register a user object for evaluating the quantities of interest, whose values should be placed in System::qoi
.
Definition at line 1845 of file system.C.
References libMesh::System::_qoi_evaluate_function, libMesh::System::_qoi_evaluate_object, and libMesh::out.
|
inherited |
This function enables the user to provide a shell matrix, i.e.
a matrix that is not stored element-wise, but as a function. When you register your shell matrix using this function, calling solve()
will no longer use the matrix
member but the registered shell matrix instead. You can reset this behaviour to its original state by supplying a nullptr
to this function.
Definition at line 158 of file linear_implicit_system.C.
References libMesh::LinearImplicitSystem::_shell_matrix.
Referenced by libMesh::LinearImplicitSystem::detach_shell_matrix(), and main().
|
inherited |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system.
This method projects an arbitrary boundary function onto the solution via L2 projections and nodal interpolations on each element.
Only degrees of freedom which affect the function's trace on a boundary in the set b
are affected. Only degrees of freedom associated with the variables listed in the vector variables
are projected. The function value f
and its gradient g
are user-provided cloneable functors. A gradient g
is only required/used for projecting onto finite element spaces with continuous derivatives. If non-default Parameters
are to be used, they can be provided in the parameters
argument.
Definition at line 1126 of file system_projection.C.
Referenced by SystemsTest::testBoundaryProjectCube().
|
inherited |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system.
This method projects components of an arbitrary boundary function onto the solution via L2 projections and nodal interpolations on each element.
Only degrees of freedom which affect the function's trace on a boundary in the set b
are affected. Only degrees of freedom associated with the variables listed in the vector variables
are projected. The function value fptr
and its gradient gptr
are represented by function pointers. A gradient gptr
is only required/used for projecting onto finite element spaces with continuous derivatives.
Definition at line 1109 of file system_projection.C.
|
inherited |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system.
This method projects an arbitrary function via L2 projections and nodal interpolations on each element.
Only degrees of freedom which affect the function's trace on a boundary in the set b
are affected. Only degrees of freedom associated with the variables listed in the vector variables
are projected. The function value f
and its gradient g
are user-provided cloneable functors. A gradient g
is only required/used for projecting onto finite element spaces with continuous derivatives. If non-default Parameters
are to be used, they can be provided in the parameters
argument.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
Definition at line 1162 of file system_projection.C.
References libMesh::NumericVector< T >::close(), libMesh::libmesh_ignore(), and libMesh::Threads::parallel_for().
|
inherited |
Projects arbitrary boundary functions onto a vector of degree of freedom values for the current system.
This method projects an arbitrary boundary function via L2 projections and nodal interpolations on each element.
Only degrees of freedom which affect the function's trace on a boundary in the set b
are affected. Only degrees of freedom associated with the variables listed in the vector variables
are projected. The function value fptr
and its gradient gptr
are represented by function pointers. A gradient gptr
is only required/used for projecting onto finite element spaces with continuous derivatives.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
Definition at line 1144 of file system_projection.C.
|
inherited |
Broadcasts parameters on processor proc_id to all processors.
Definition at line 600 of file rb_construction_base.C.
|
protectedvirtualinherited |
Builds a DGFEMContext object with enough information to do evaluations on each element.
We use DGFEMContext since it allows for both DG and continuous Galerkin formulations.
Definition at line 583 of file rb_construction.C.
Referenced by libMesh::RBConstruction::add_scaled_matrix_and_vector().
|
staticinherited |
It's helpful to be able to generate a DirichletBoundary that stores a ZeroFunction in order to impose Dirichlet boundary conditions.
Definition at line 2018 of file rb_construction.C.
Referenced by init_data().
|
inherited |
v
, using component_norm
and component_scale
to choose and weight the norms of each variable. Definition at line 1378 of file system.C.
References libMesh::System::_dof_map, libMesh::System::_mesh, std::abs(), libMesh::TypeVector< T >::add_scaled(), libMesh::TypeTensor< T >::add_scaled(), libMesh::FEGenericBase< OutputType >::build(), libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::FEType::default_quadrature_rule(), dim, libMesh::DISCRETE_L1, libMesh::DISCRETE_L2, libMesh::DISCRETE_L_INF, libMesh::System::discrete_var_norm(), libMesh::DofMap::dof_indices(), libMesh::MeshBase::elem_dimensions(), libMesh::ReferenceElem::get(), libMesh::FEGenericBase< OutputType >::get_d2phi(), libMesh::System::get_dof_map(), libMesh::FEGenericBase< OutputType >::get_dphi(), libMesh::FEAbstract::get_JxW(), libMesh::System::get_mesh(), libMesh::FEGenericBase< OutputType >::get_phi(), libMesh::H1, libMesh::H1_SEMINORM, libMesh::H2, libMesh::H2_SEMINORM, libMesh::L1, libMesh::NumericVector< T >::l1_norm(), libMesh::L2, libMesh::NumericVector< T >::l2_norm(), libMesh::L_INF, libMesh::libmesh_assert(), libMesh::NumericVector< T >::linfty_norm(), libMesh::NumericVector< T >::localize(), libMesh::QBase::n_points(), libMesh::System::n_vars(), std::norm(), libMesh::TypeVector< T >::norm(), libMesh::TypeTensor< T >::norm(), libMesh::TensorTools::norm_sq(), libMesh::TypeVector< T >::norm_sq(), libMesh::TypeTensor< T >::norm_sq(), libMesh::Real, libMesh::FEAbstract::reinit(), libMesh::SERIAL, libMesh::NumericVector< T >::size(), std::sqrt(), libMesh::DofMap::variable_type(), libMesh::W1_INF_SEMINORM, libMesh::W2_INF_SEMINORM, and libMesh::SystemNorm::weight().
|
inherited |
var
in the vector v
, in the specified norm (e.g. L2, L_INF, H1) Definition at line 1356 of file system.C.
References libMesh::DISCRETE_L1, libMesh::DISCRETE_L2, libMesh::DISCRETE_L_INF, libMesh::System::discrete_var_norm(), libMesh::L2, libMesh::System::n_vars(), and libMesh::Real.
Referenced by libMesh::AdaptiveTimeSolver::calculate_norm(), libMesh::UnsteadySolver::du(), main(), and output_norms().
|
protectedinherited |
Check if the linear solver reports convergence.
Throw an error when that is not the case.
Definition at line 2231 of file rb_construction.C.
References libMesh::LinearSolver< T >::get_converged_reason().
Referenced by libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
overridevirtualinherited |
Clear all the data structures associated with the system.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Reimplemented in libMesh::TransientSystem< RBConstruction >, libMesh::RBEIMConstruction, and libMesh::TransientRBConstruction.
Definition at line 100 of file rb_construction.C.
References libMesh::RBConstruction::Aq_vector, libMesh::RBConstructionBase< LinearImplicitSystem >::clear(), libMesh::RBConstruction::Fq_representor, libMesh::RBConstruction::Fq_representor_innerprods_computed, libMesh::RBConstruction::Fq_vector, libMesh::RBConstruction::non_dirichlet_Aq_vector, libMesh::RBConstruction::non_dirichlet_Fq_vector, libMesh::RBConstruction::non_dirichlet_outputs_vector, libMesh::RBConstruction::outputs_vector, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBEIMConstruction::clear(), and libMesh::RBConstruction::~RBConstruction().
|
inlineinherited |
Parallel::Communicator
object used by this mesh. Definition at line 94 of file parallel_object.h.
References libMesh::ParallelObject::_communicator.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), libMesh::__libmesh_petsc_diff_solver_monitor(), libMesh::__libmesh_petsc_diff_solver_residual(), libMesh::__libmesh_tao_equality_constraints(), libMesh::__libmesh_tao_equality_constraints_jacobian(), libMesh::__libmesh_tao_gradient(), libMesh::__libmesh_tao_hessian(), libMesh::__libmesh_tao_inequality_constraints(), libMesh::__libmesh_tao_inequality_constraints_jacobian(), libMesh::__libmesh_tao_objective(), libMesh::MeshRefinement::_coarsen_elements(), libMesh::ExactSolution::_compute_error(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::BoundaryInfo::_find_id_maps(), libMesh::PetscLinearSolver< Number >::_petsc_shell_matrix_get_diagonal(), libMesh::SlepcEigenSolver< libMesh::Number >::_petsc_shell_matrix_get_diagonal(), libMesh::PetscLinearSolver< Number >::_petsc_shell_matrix_mult(), libMesh::SlepcEigenSolver< libMesh::Number >::_petsc_shell_matrix_mult(), libMesh::PetscLinearSolver< Number >::_petsc_shell_matrix_mult_add(), libMesh::EquationSystems::_read_impl(), libMesh::MeshRefinement::_refine_elements(), libMesh::MeshRefinement::_smooth_flags(), libMesh::DofMap::add_constraints_to_send_list(), add_cube_convex_hull_to_mesh(), libMesh::PetscDMWrapper::add_dofs_helper(), libMesh::PetscDMWrapper::add_dofs_to_section(), libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::ImplicitSystem::add_matrix(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::DynaIO::add_spline_constraints(), libMesh::System::add_vector(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Modification::all_tri(), libMesh::LaplaceMeshSmoother::allgather_graph(), libMesh::DofMap::allgather_recursive_constraints(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::TransientRBConstruction::assemble_affine_expansion(), libMesh::FEMSystem::assemble_qoi(), libMesh::MeshCommunication::assign_global_indices(), libMesh::DofMap::attach_matrix(), libMesh::MeshTools::Generation::build_extrusion(), libMesh::BoundaryInfo::build_node_list_from_side_list(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::PetscDMWrapper::build_section(), libMesh::PetscDMWrapper::build_sf(), libMesh::System::calculate_norm(), libMesh::DofMap::check_dirichlet_bcid_consistency(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_max_error_bound(), libMesh::Nemesis_IO_Helper::compute_num_global_elem_blocks(), libMesh::Nemesis_IO_Helper::compute_num_global_nodesets(), libMesh::Nemesis_IO_Helper::compute_num_global_sidesets(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBSCMConstruction::compute_SCM_bounds_on_training_set(), libMesh::Problem_Interface::computeF(), libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::ExodusII_IO::copy_scalar_solution(), libMesh::MeshTools::correct_node_proc_ids(), libMesh::MeshTools::create_bounding_box(), libMesh::DofMap::create_dof_constraints(), libMesh::MeshTools::create_nodal_bounding_box(), libMesh::MeshRefinement::create_parent_error_vector(), libMesh::MeshTools::create_processor_bounding_box(), libMesh::MeshTools::create_subdomain_bounding_box(), libMesh::MeshCommunication::delete_remote_elements(), libMesh::DofMap::distribute_dofs(), DMlibMeshFunction(), DMlibMeshJacobian(), DMlibMeshSetSystem_libMesh(), DMVariableBounds_libMesh(), libMesh::DTKSolutionTransfer::DTKSolutionTransfer(), libMesh::MeshRefinement::eliminate_unrefined_patches(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::EpetraVector< T >::EpetraVector(), AssembleOptimization::equality_constraints(), libMesh::WeightedPatchRecoveryErrorEstimator::estimate_error(), libMesh::PatchRecoveryErrorEstimator::estimate_error(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::RBEIMConstruction::evaluate_mesh_function(), libMesh::MeshRefinement::flag_elements_by_elem_fraction(), libMesh::MeshRefinement::flag_elements_by_error_fraction(), libMesh::MeshRefinement::flag_elements_by_error_tolerance(), libMesh::MeshRefinement::flag_elements_by_mean_stddev(), libMesh::MeshRefinement::flag_elements_by_nelem_target(), libMesh::DofMap::gather_constraints(), libMesh::MeshfreeInterpolation::gather_remote_data(), libMesh::CondensedEigenSystem::get_eigenpair(), libMesh::DofMap::get_info(), libMesh::ImplicitSystem::get_linear_solver(), AssembleOptimization::inequality_constraints(), AssembleOptimization::inequality_constraints_jacobian(), libMesh::LocationMap< T >::init(), libMesh::TimeSolver::init(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::EigenSystem::init_matrices(), libMesh::OptimizationSystem::initialize_equality_constraints_storage(), libMesh::OptimizationSystem::initialize_inequality_constraints_storage(), libMesh::RBEIMConstruction::initialize_rb_construction(), integrate_function(), libMesh::MeshTools::libmesh_assert_consistent_distributed(), libMesh::MeshTools::libmesh_assert_consistent_distributed_nodes(), libMesh::MeshTools::libmesh_assert_contiguous_dof_ids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_new_node_procids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Elem >(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_topology_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_valid_boundary_ids(), libMesh::MeshTools::libmesh_assert_valid_dof_ids(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libMesh::DistributedMesh::libmesh_assert_valid_parallel_flags(), libMesh::DistributedMesh::libmesh_assert_valid_parallel_object_ids(), libMesh::DistributedMesh::libmesh_assert_valid_parallel_p_levels(), libMesh::MeshTools::libmesh_assert_valid_refinement_flags(), libMesh::MeshTools::libmesh_assert_valid_unique_ids(), libMesh::libmesh_petsc_preconditioner_apply(), libMesh::libmesh_petsc_snes_fd_residual(), libMesh::libmesh_petsc_snes_jacobian(), libMesh::libmesh_petsc_snes_mffd_residual(), libMesh::libmesh_petsc_snes_postcheck(), libMesh::libmesh_petsc_snes_residual(), libMesh::libmesh_petsc_snes_residual_helper(), libMesh::MeshRefinement::limit_level_mismatch_at_edge(), libMesh::MeshRefinement::limit_level_mismatch_at_node(), libMesh::MeshRefinement::limit_overrefined_boundary(), libMesh::MeshRefinement::limit_underrefined_boundary(), main(), libMesh::MeshRefinement::make_coarsening_compatible(), libMesh::MeshCommunication::make_elems_parallel_consistent(), libMesh::MeshRefinement::make_flags_parallel_consistent(), libMesh::MeshCommunication::make_new_node_proc_ids_parallel_consistent(), libMesh::MeshCommunication::make_new_nodes_parallel_consistent(), libMesh::MeshCommunication::make_node_ids_parallel_consistent(), libMesh::MeshCommunication::make_node_proc_ids_parallel_consistent(), libMesh::MeshCommunication::make_node_unique_ids_parallel_consistent(), libMesh::MeshCommunication::make_nodes_parallel_consistent(), libMesh::MeshCommunication::make_p_levels_parallel_consistent(), libMesh::MeshRefinement::make_refinement_compatible(), libMesh::TransientRBConstruction::mass_matrix_scaled_matvec(), libMesh::FEMSystem::mesh_position_set(), LinearElasticityWithContact::move_mesh(), libMesh::DistributedMesh::n_active_elem(), libMesh::MeshTools::n_active_levels(), libMesh::BoundaryInfo::n_boundary_conds(), libMesh::DofMap::n_constrained_dofs(), libMesh::BoundaryInfo::n_edge_conds(), libMesh::CondensedEigenSystem::n_global_non_condensed_dofs(), libMesh::MeshTools::n_levels(), libMesh::BoundaryInfo::n_nodeset_conds(), libMesh::MeshTools::n_p_levels(), libMesh::BoundaryInfo::n_shellface_conds(), libMesh::DistributedMesh::parallel_max_elem_id(), libMesh::DistributedMesh::parallel_max_node_id(), libMesh::ReplicatedMesh::parallel_max_unique_id(), libMesh::DistributedMesh::parallel_max_unique_id(), libMesh::DistributedMesh::parallel_n_elem(), libMesh::DistributedMesh::parallel_n_nodes(), libMesh::SparsityPattern::Build::parallel_sync(), libMesh::MeshTools::paranoid_n_levels(), libMesh::petsc_auto_fieldsplit(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::DofMap::print_dof_constraints(), FEMParameters::read(), libMesh::Nemesis_IO::read(), libMesh::XdrIO::read(), libMesh::CheckpointIO::read_header(), libMesh::XdrIO::read_header(), libMesh::System::read_header(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::System::read_legacy_data(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::System::read_SCALAR_dofs(), libMesh::XdrIO::read_serialized_bc_names(), libMesh::XdrIO::read_serialized_bcs_helper(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::XdrIO::read_serialized_connectivity(), libMesh::XdrIO::read_serialized_nodes(), libMesh::XdrIO::read_serialized_nodesets(), libMesh::XdrIO::read_serialized_subdomain_names(), libMesh::System::read_serialized_vector(), libMesh::MeshRefinement::refine_and_coarsen_elements(), libMesh::DistributedMesh::renumber_dof_objects(), LinearElasticityWithContact::residual_and_jacobian(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::DofMap::scatter_constraints(), libMesh::CheckpointIO::select_split_config(), libMesh::TransientRBConstruction::set_error_temporal_data(), libMesh::RBEIMConstruction::set_explicit_sys_subvector(), libMesh::DofMap::set_nonlocal_dof_objects(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::PetscDiffSolver::setup_petsc_data(), libMesh::LaplaceMeshSmoother::smooth(), libMesh::split_mesh(), libMesh::BoundaryInfo::sync(), libMesh::MeshRefinement::test_level_one(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), libMesh::MeshRefinement::test_unflagged(), SystemsTest::testBlockRestrictedVarNDofs(), PointLocatorTest::testLocator(), BoundaryInfoTest::testMesh(), SystemsTest::testProjectCubeWithMeshFunction(), CheckpointIOTest::testSplitter(), libMesh::MeshTools::total_weight(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::MeshfreeSolutionTransfer::transfer(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::MeshRefinement::uniformly_coarsen(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), libMesh::RBConstruction::update_residual_terms(), libMesh::NameBasedIO::write(), libMesh::XdrIO::write(), libMesh::VTKIO::write_nodal_data(), libMesh::RBEvaluation::write_out_vectors(), libMesh::TransientRBConstruction::write_riesz_representors_to_files(), libMesh::RBConstruction::write_riesz_representors_to_files(), libMesh::System::write_SCALAR_dofs(), libMesh::XdrIO::write_serialized_bcs_helper(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::XdrIO::write_serialized_connectivity(), libMesh::XdrIO::write_serialized_nodes(), libMesh::XdrIO::write_serialized_nodesets(), libMesh::RBDataSerialization::RBEvaluationSerialization::write_to_file(), libMesh::RBDataSerialization::TransientRBEvaluationSerialization::write_to_file(), libMesh::RBDataSerialization::RBEIMEvaluationSerialization::write_to_file(), and libMesh::RBDataSerialization::RBSCMEvaluationSerialization::write_to_file().
|
virtualinherited |
true
when the other system contains identical data, up to the given threshold. Outputs some diagnostic info when verbose
is set. Definition at line 514 of file system.C.
References libMesh::System::_is_initialized, libMesh::System::_sys_name, libMesh::System::_vectors, libMesh::System::get_vector(), libMesh::libmesh_assert(), libMesh::System::n_vectors(), libMesh::System::name(), libMesh::out, and libMesh::System::solution.
Referenced by libMesh::EquationSystems::compare().
|
protectedvirtualinherited |
Compute the terms that are combined ‘online’ to determine the dual norm of the residual.
Here we compute the terms associated with the right-hand side. These terms are basis independent, hence we separate them from the rest of the calculations that are done in update_residual_terms. By default, inner product terms are also computed, but you can turn this feature off e.g. if you are already reading in that data from files.
Definition at line 1730 of file rb_construction.C.
References libMesh::NumericVector< T >::add(), libMesh::RBConstruction::assert_convergence, libMesh::NumericVector< T >::build(), libMesh::RBConstruction::check_convergence(), libMesh::ParallelObject::comm(), libMesh::LinearImplicitSystem::final_linear_residual(), libMesh::RBConstruction::Fq_representor, libMesh::RBEvaluation::Fq_representor_innerprods, libMesh::RBConstruction::Fq_representor_innerprods, libMesh::RBConstruction::Fq_representor_innerprods_computed, libMesh::RBConstruction::get_Fq(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::Utility::get_timestamp(), libMesh::RBConstruction::inner_product_matrix, libMesh::RBConstruction::inner_product_solver, libMesh::RBConstructionBase< LinearImplicitSystem >::inner_product_storage_vector, libMesh::RBConstructionBase< LinearImplicitSystem >::is_quiet(), libMesh::libmesh_assert(), libMesh::System::n_dofs(), libMesh::LinearImplicitSystem::n_linear_iterations(), libMesh::System::n_local_dofs(), libMesh::out, libMesh::PARALLEL, libMesh::ExplicitSystem::rhs, libMesh::System::solution, libMesh::RBConstruction::solve_for_matrix_and_rhs(), libMesh::SparseMatrix< T >::vector_mult(), and libMesh::NumericVector< T >::zero().
Referenced by libMesh::RBConstruction::recompute_all_residual_terms(), and libMesh::RBConstruction::train_reduced_basis().
|
virtualinherited |
(i) Compute the a posteriori error bound for each set of parameters in the training set, (ii) set current_parameters to the parameters that maximize the error bound, and (iii) return the maximum error bound.
Definition at line 1395 of file rb_construction.C.
References libMesh::RBConstructionBase< LinearImplicitSystem >::broadcast_parameters(), libMesh::ParallelObject::comm(), libMesh::RBConstructionBase< LinearImplicitSystem >::get_first_local_training_index(), libMesh::RBConstructionBase< LinearImplicitSystem >::get_global_max_error_pair(), libMesh::RBConstructionBase< LinearImplicitSystem >::get_last_local_training_index(), libMesh::RBConstructionBase< LinearImplicitSystem >::get_local_n_training_samples(), libMesh::RBParametrized::get_n_params(), libMesh::RBConstruction::get_RB_error_bound(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::ParallelObject::processor_id(), libMesh::Real, libMesh::RBConstructionBase< LinearImplicitSystem >::serial_training_set, libMesh::RBConstructionBase< LinearImplicitSystem >::set_params_from_training_set(), and libMesh::RBConstruction::training_error_bounds.
Referenced by libMesh::RBConstruction::train_reduced_basis().
|
protectedvirtualinherited |
Compute and store the dual norm of each output functional.
Definition at line 1635 of file rb_construction.C.
References libMesh::NumericVector< T >::add(), libMesh::RBConstruction::assert_convergence, libMesh::NumericVector< T >::build(), libMesh::RBConstruction::check_convergence(), libMesh::ParallelObject::comm(), libMesh::LinearImplicitSystem::final_linear_residual(), libMesh::LinearImplicitSystem::get_linear_solver(), libMesh::RBConstruction::get_matrix_for_output_dual_solves(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_output_vector(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::Utility::get_timestamp(), libMesh::RBConstructionBase< LinearImplicitSystem >::inner_product_storage_vector, libMesh::RBConstructionBase< LinearImplicitSystem >::is_quiet(), libMesh::LinearImplicitSystem::linear_solver, libMesh::System::n_dofs(), libMesh::LinearImplicitSystem::n_linear_iterations(), libMesh::System::n_local_dofs(), libMesh::out, libMesh::RBEvaluation::output_dual_innerprods, libMesh::RBConstruction::output_dual_innerprods, libMesh::RBConstruction::output_dual_innerprods_computed, libMesh::PARALLEL, libMesh::ExplicitSystem::rhs, libMesh::System::solution, libMesh::RBConstruction::solve_for_matrix_and_rhs(), libMesh::SparseMatrix< T >::vector_mult(), and libMesh::NumericVector< T >::zero().
Referenced by libMesh::RBConstruction::train_reduced_basis().
|
inherited |
The slow (but simple, non-error prone) way to compute the residual dual norm.
Useful for error checking.
Definition at line 1819 of file rb_construction.C.
References libMesh::SparseMatrix< T >::add(), libMesh::NumericVector< T >::add(), libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::inner_product_matrix, libMesh::RBConstruction::inner_product_solver, libMesh::RBConstructionBase< LinearImplicitSystem >::inner_product_storage_vector, libMesh::libmesh_real(), libMesh::ImplicitSystem::matrix, libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::PARALLEL, libMesh::ExplicitSystem::rhs, libMesh::System::solution, libMesh::RBConstruction::solve_for_matrix_and_rhs(), std::sqrt(), libMesh::RBConstruction::truth_assembly(), libMesh::SparseMatrix< T >::vector_mult(), and libMesh::SparseMatrix< T >::zero().
|
inherited |
Definition at line 194 of file system.C.
References libMesh::System::_dof_map, and libMesh::System::current_local_solution.
Referenced by libMesh::ExactSolution::_compute_error(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::HPCoarsenTest::add_projection(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::ExactErrorEstimator::estimate_error(), main(), libMesh::WeightedPatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::PatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::HPCoarsenTest::select_refinement(), SolidSystem::side_time_derivative(), libMesh::EnsightIO::write_scalar_ascii(), and libMesh::EnsightIO::write_vector_ascii().
|
inlineinherited |
Deactivates the system.
Only active systems are solved.
Definition at line 2131 of file system.h.
References libMesh::System::_active.
|
inlineinherited |
Detaches a shell matrix.
Same as attach_shell_matrix(nullptr)
.
Definition at line 185 of file linear_implicit_system.h.
References libMesh::LinearImplicitSystem::attach_shell_matrix().
Referenced by main().
|
overridevirtualinherited |
Avoids use of any cached data that might affect any solve result.
Should be overridden in derived systems.
Reimplemented from libMesh::System.
Definition at line 293 of file implicit_system.C.
References libMesh::System::assemble_before_solve, libMesh::ImplicitSystem::get_linear_solver(), and libMesh::LinearSolver< T >::reuse_preconditioner().
|
staticinherited |
Definition at line 106 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
Referenced by libMesh::LibMeshInit::LibMeshInit().
|
staticinherited |
Definition at line 106 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
Referenced by libMesh::LibMeshInit::LibMeshInit().
|
privateinherited |
Finds the discrete norm for the entries in the vector corresponding to Dofs associated with var.
Definition at line 1337 of file system.C.
References libMesh::DISCRETE_L1, libMesh::DISCRETE_L2, libMesh::DISCRETE_L_INF, libMesh::System::local_dof_indices(), libMesh::NumericVector< T >::subset_l1_norm(), libMesh::NumericVector< T >::subset_l2_norm(), and libMesh::NumericVector< T >::subset_linfty_norm().
Referenced by libMesh::System::calculate_norm().
|
staticinherited |
Methods to enable/disable the reference counter output from print_info()
Definition at line 100 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
|
staticinherited |
Methods to enable/disable the reference counter output from print_info()
Definition at line 100 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
|
inherited |
This function computes one basis function for each rhs term.
This is useful in some cases since we can avoid doing a full greedy if we know that we do not have any "left-hand side" parameters, for example.
Definition at line 1134 of file rb_construction.C.
References libMesh::RBConstruction::assert_convergence, libMesh::RBConstruction::check_convergence(), libMesh::RBConstruction::enrich_RB_space(), libMesh::RBConstruction::extra_linear_solver, libMesh::RBConstruction::get_Fq(), libMesh::LinearImplicitSystem::get_linear_solver(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBConstruction::get_Nmax(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBParametrized::initialize_parameters(), libMesh::NumericVector< T >::l2_norm(), libMesh::ImplicitSystem::matrix, libMesh::out, libMesh::RBConstruction::post_process_truth_solution(), libMesh::RBEvaluation::resize_data_structures(), libMesh::ExplicitSystem::rhs, libMesh::RBConstruction::solve_for_matrix_and_rhs(), libMesh::RBConstruction::truth_assembly(), and libMesh::RBConstruction::update_system().
|
protectedvirtualinherited |
Add a new basis function to the RB space.
This is called during train_reduced_basis.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 1316 of file rb_construction.C.
References libMesh::RBEvaluation::basis_functions, libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstructionBase< LinearImplicitSystem >::inner_product_storage_vector, libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::PARALLEL, libMesh::System::solution, std::sqrt(), and libMesh::SparseMatrix< T >::vector_mult().
Referenced by libMesh::RBConstruction::enrich_basis_from_rhs_terms(), and libMesh::RBConstruction::train_reduced_basis().
|
inlineinherited |
Definition at line 169 of file linear_implicit_system.h.
References libMesh::LinearImplicitSystem::_final_linear_residual.
Referenced by libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), main(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
overridevirtualinherited |
Solves for the derivative of each of the system's quantities of interest q in qoi
[qoi_indices] with respect to each parameter in parameters
, placing the result for qoi i
and parameter j
into sensitivities
[i][j].
Uses the forward sensitivity method.
Currently uses finite differenced derivatives (partial q / partial p) and (partial R / partial p).
Reimplemented from libMesh::System.
Definition at line 796 of file implicit_system.C.
References std::abs(), libMesh::SensitivityData::allocate_data(), libMesh::ExplicitSystem::assemble_qoi(), libMesh::ExplicitSystem::assemble_qoi_derivative(), libMesh::ImplicitSystem::assembly(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::NumericVector< T >::dot(), libMesh::System::get_adjoint_rhs(), libMesh::System::get_sensitivity_solution(), libMesh::QoISet::has_index(), libMesh::ImplicitSystem::matrix, libMesh::System::n_qois(), libMesh::System::qoi, libMesh::Real, libMesh::ExplicitSystem::rhs, libMesh::ImplicitSystem::sensitivity_solve(), libMesh::ParameterVector::size(), and libMesh::TOLERANCE.
|
staticprotectedinherited |
Static helper function for generating a deterministic set of parameters.
Only works with 1 or 2 parameters (as defined by the lengths of min/max parameters vectors), otherwise throws an error.
Definition at line 412 of file rb_construction_base.C.
|
staticprotectedinherited |
Static helper function for generating a randomized set of parameters.
Definition at line 300 of file rb_construction_base.C.
|
inlineinherited |
Definition at line 193 of file rb_construction.h.
References libMesh::RBConstruction::abs_training_tolerance.
Referenced by libMesh::RBConstruction::print_info().
|
inherited |
Definition at line 1019 of file system.C.
References libMesh::System::get_vector().
Referenced by libMesh::ImplicitSystem::adjoint_solve(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), and libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve().
|
inherited |
Definition at line 1029 of file system.C.
References libMesh::System::get_vector().
|
inherited |
Definition at line 957 of file system.C.
References libMesh::System::get_vector().
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::ImplicitSystem::adjoint_solve(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), main(), HeatSystem::perturb_accumulate_residuals(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), and libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve().
|
inherited |
Definition at line 967 of file system.C.
References libMesh::System::get_vector().
|
virtualinherited |
Get a map that stores pointers to all of the matrices.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 1952 of file rb_construction.C.
References libMesh::RBConstruction::get_Aq(), libMesh::RBConstruction::get_inner_product_matrix(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBConstruction::get_non_dirichlet_Aq(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix(), libMesh::RBConstruction::get_rb_theta_expansion(), and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::TransientRBConstruction::get_all_matrices().
|
inherited |
Fills all_variable_numbers
with all the variable numbers for the variables that have been added to this system.
Definition at line 1240 of file system.C.
References libMesh::System::_variable_numbers, and libMesh::System::n_vars().
Referenced by libMesh::RBEIMConstruction::initialize_rb_construction(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), and SystemsTest::testProjectCubeWithMeshFunction().
|
virtualinherited |
Get a map that stores pointers to all of the vectors.
Definition at line 1977 of file rb_construction.C.
References libMesh::RBConstruction::get_Fq(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBConstruction::get_non_dirichlet_Fq(), libMesh::RBConstruction::get_output_vectors(), libMesh::RBConstruction::get_rb_theta_expansion(), and libMesh::RBConstruction::store_non_dirichlet_operators.
|
inherited |
Get a pointer to Aq.
Definition at line 1876 of file rb_construction.C.
References libMesh::RBConstruction::Aq_vector, and libMesh::RBConstruction::get_rb_theta_expansion().
Referenced by libMesh::RBConstruction::add_scaled_Aq(), libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::get_all_matrices(), libMesh::RBConstruction::get_non_dirichlet_Aq_if_avail(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), and libMesh::RBConstruction::update_residual_terms().
|
staticinherited |
value
from list_of_values
. Definition at line 433 of file rb_parametrized.C.
References std::abs(), distance(), libMesh::Real, and value.
Referenced by libMesh::RBParametrized::is_value_in_list().
|
protectedinherited |
Getter for the flag determining if convergence should be checked after each solve.
Definition at line 2245 of file rb_construction.C.
References libMesh::RBConstruction::assert_convergence.
|
inlineinherited |
Get delta_N, the number of basis functions we add to the RB space per iteration of the greedy algorithm.
For steady-state systems, this should be 1, but can be more than 1 for time-dependent systems.
Definition at line 417 of file rb_construction.h.
References libMesh::RBConstruction::delta_N.
Referenced by libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::TransientRBConstruction::print_info(), libMesh::TransientRBConstruction::update_system(), libMesh::TransientRBConstruction::write_riesz_representors_to_files(), and libMesh::RBConstruction::write_riesz_representors_to_files().
|
inherited |
Get the name of the parameter that we will generate deterministic training parameters for.
|
inherited |
Get the number of times each sample of the deterministic training parameter is repeated.
|
inherited |
Get a const reference to the discrete parameter values.
Definition at line 381 of file rb_parametrized.C.
References libMesh::RBParametrized::_discrete_parameter_values, and libMesh::RBParametrized::parameters_initialized.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder(), libMesh::RBParametrized::get_n_discrete_params(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBParametrized::print_discrete_parameter_values(), libMesh::RBParametrized::valid_params(), and libMesh::RBParametrized::write_discrete_parameter_values_to_file().
|
inlineinherited |
_dof_map
. Definition at line 2107 of file system.h.
References libMesh::System::_dof_map.
|
inlineinherited |
_dof_map
. Definition at line 2099 of file system.h.
References libMesh::System::_dof_map.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), libMesh::__libmesh_petsc_diff_solver_residual(), libMesh::ExactSolution::_compute_error(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::DifferentiableSystem::add_dot_var_dirichlet_bcs(), libMesh::HPCoarsenTest::add_projection(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::UnsteadySolver::adjoint_advance_timestep(), libMesh::ImplicitSystem::adjoint_solve(), libMesh::NewmarkSolver::advance_timestep(), libMesh::UnsteadySolver::advance_timestep(), libMesh::EquationSystems::allgather(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), assemble(), LinearElasticity::assemble(), assemble_1D(), AssembleOptimization::assemble_A_and_F(), assemble_and_solve(), assemble_biharmonic(), assemble_elasticity(), assemble_ellipticdg(), assemble_helmholtz(), assemble_laplace(), assemble_mass(), assemble_matrices(), assemble_matrix_and_rhs(), assemble_poisson(), assemble_SchroedingerEquation(), assemble_shell(), assemble_stokes(), assemble_wave(), libMesh::EquationSystems::build_discontinuous_solution_vector(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::PetscDMWrapper::build_sf(), libMesh::System::calculate_norm(), compute_jacobian(), compute_residual(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::Problem_Interface::computeF(), libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), MyConstraint::constrain(), libMesh::ExodusII_IO::copy_scalar_solution(), DMCreateDomainDecomposition_libMesh(), DMCreateFieldDecomposition_libMesh(), DMlibMeshFunction(), DMlibMeshJacobian(), DMlibMeshSetSystem_libMesh(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::RBEIMAssembly::evaluate_basis_function(), libMesh::System::get_info(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::SecondOrderUnsteadySolver::init_data(), libMesh::UnsteadySolver::init_data(), HeatSystem::init_data(), init_data(), LaplaceSystem::init_dirichlet_bcs(), libMesh::RBEIMConstruction::init_dof_map_between_systems(), libMesh::EigenSystem::init_matrices(), libMesh::ImplicitSystem::init_matrices(), libMesh::CondensedEigenSystem::initialize_condensed_dofs(), libMesh::OptimizationSystem::initialize_equality_constraints_storage(), libMesh::RBEIMAssembly::initialize_fe(), libMesh::OptimizationSystem::initialize_inequality_constraints_storage(), libMesh::RBEIMConstruction::initialize_rb_construction(), LaplaceYoung::jacobian(), LargeDeformationElasticity::jacobian(), libMesh::libmesh_petsc_snes_fd_residual(), libMesh::libmesh_petsc_snes_jacobian(), libMesh::libmesh_petsc_snes_mffd_residual(), libMesh::libmesh_petsc_snes_residual(), libMesh::libmesh_petsc_snes_residual_helper(), libMesh::System::local_dof_indices(), AssembleOptimization::lower_and_upper_bounds(), main(), libMesh::DofMap::max_constraint_error(), LinearElasticityWithContact::move_mesh(), libMesh::DGFEMContext::neighbor_side_fe_reinit(), libMesh::UnsteadySolver::old_nonlinear_solution(), libMesh::SecondOrderUnsteadySolver::old_solution_accel(), libMesh::SecondOrderUnsteadySolver::old_solution_rate(), libMesh::WeightedPatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::PatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::RBSCMConstruction::perform_SCM_greedy(), libMesh::petsc_auto_fieldsplit(), libMesh::ErrorVector::plot_error(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::FEMContext::pre_fe_reinit(), libMesh::RBEIMAssembly::RBEIMAssembly(), libMesh::RBEIMConstruction::RBEIMConstruction(), libMesh::System::re_update(), libMesh::System::read_parallel_data(), libMesh::System::read_SCALAR_dofs(), libMesh::SecondOrderUnsteadySolver::reinit(), libMesh::UnsteadySolver::reinit(), libMesh::EigenSystem::reinit(), libMesh::ImplicitSystem::reinit(), libMesh::System::reinit_constraints(), libMesh::EquationSystems::reinit_solutions(), LaplaceYoung::residual(), LargeDeformationElasticity::residual(), LinearElasticityWithContact::residual_and_jacobian(), libMesh::UnsteadySolver::retrieve_timestep(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::HPCoarsenTest::select_refinement(), libMesh::ImplicitSystem::sensitivity_solve(), libMesh::RBConstruction::set_context_solution_vec(), libMesh::PetscDMWrapper::set_point_range_in_section(), set_system_parameters(), FETest< order, family, elem_type >::setUp(), SolidSystem::side_time_derivative(), libMesh::NewtonSolver::solve(), libMesh::PetscDiffSolver::solve(), libMesh::RBConstruction::solve_for_matrix_and_rhs(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), SystemsTest::testBlockRestrictedVarNDofs(), DofMapTest::testConstraintLoopDetection(), DefaultCouplingTest::testCoupling(), PointNeighborCouplingTest::testCoupling(), EquationSystemsTest::testDisableDefaultGhosting(), SystemsTest::testDofCouplingWithVarGroups(), DofMapTest::testDofOwner(), MeshInputTest::testDynaReadPatch(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), SystemsTest::testProjectCubeWithMeshFunction(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), SystemsTest::testProjectMatrix3D(), BoundaryInfoTest::testShellFaceConstraints(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::BoundaryVolumeSolutionTransfer::transfer_boundary_volume(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve(), libMesh::ImplicitSystem::weighted_sensitivity_solve(), libMesh::Nemesis_IO_Helper::write_nodal_solution(), libMesh::System::write_parallel_data(), libMesh::EnsightIO::write_scalar_ascii(), libMesh::System::write_SCALAR_dofs(), libMesh::EnsightIO::write_vector_ascii(), and libMesh::RBConstruction::zero_constrained_dofs_on_vector().
|
inlineinherited |
Definition at line 725 of file system.h.
References libMesh::System::_equation_systems.
|
inlineinherited |
Definition at line 720 of file system.h.
References libMesh::System::_equation_systems.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::RBSCMConstruction::add_scaled_symm_Aq(), libMesh::NewmarkSystem::clear(), libMesh::FrequencySystem::clear_all(), compute_jacobian(), compute_residual(), LinearElasticityWithContact::compute_stresses(), SolidSystem::element_time_derivative(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), libMesh::ExactErrorEstimator::find_squared_element_error(), libMesh::RBEIMConstruction::get_explicit_system(), libMesh::ImplicitSystem::get_linear_solve_parameters(), SolidSystem::init_data(), HeatSystem::init_data(), libMesh::FrequencySystem::init_data(), libMesh::RBEIMConstruction::init_data(), libMesh::RBEIMConstruction::initialize_rb_construction(), LaplaceYoung::jacobian(), libMesh::RBSCMConstruction::load_matrix_B(), LinearElasticityWithContact::move_mesh(), libMesh::FrequencySystem::n_frequencies(), libMesh::RBSCMConstruction::perform_SCM_greedy(), libMesh::RBEIMConstruction::plot_parametrized_functions_in_training_set(), libMesh::System::point_gradient(), libMesh::System::point_value(), LaplaceYoung::residual(), LinearElasticityWithContact::residual_and_jacobian(), SolidSystem::save_initial_mesh(), libMesh::FrequencySystem::set_current_frequency(), libMesh::FrequencySystem::set_frequencies(), libMesh::FrequencySystem::set_frequencies_by_range(), libMesh::FrequencySystem::set_frequencies_by_steps(), libMesh::NewmarkSystem::set_newmark_parameters(), libMesh::NonlinearImplicitSystem::set_solver_parameters(), SolidSystem::side_time_derivative(), libMesh::CondensedEigenSystem::solve(), libMesh::EigenSystem::solve(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), libMesh::RBConstruction::solve_for_matrix_and_rhs(), MeshFunctionTest::test_p_level(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::MeshfreeSolutionTransfer::transfer(), libMesh::DirectSolutionTransfer::transfer(), libMesh::DTKSolutionTransfer::transfer(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), and libMesh::WrappedFunction< Output >::WrappedFunction().
|
inherited |
Get the first local index of the training parameters.
Definition at line 116 of file rb_construction_base.C.
|
inherited |
Get a pointer to Fq.
Definition at line 1905 of file rb_construction.C.
References libMesh::RBConstruction::Fq_vector, and libMesh::RBConstruction::get_rb_theta_expansion().
Referenced by libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBConstruction::get_all_vectors(), libMesh::RBConstruction::get_non_dirichlet_Fq_if_avail(), libMesh::TransientRBConstruction::truth_assembly(), and libMesh::RBConstruction::truth_assembly().
|
staticprotectedinherited |
Static function to return the error pair (index,error) that is corresponds to the largest error on all processors.
Definition at line 85 of file rb_construction_base.C.
|
inherited |
Return the parameters chosen during the i^th step of the Greedy algorithm.
Definition at line 1234 of file rb_construction.C.
References libMesh::RBConstruction::get_rb_evaluation(), and libMesh::RBEvaluation::greedy_param_list.
|
staticinherited |
Gets a string containing the reference information.
Definition at line 47 of file reference_counter.C.
References libMesh::ReferenceCounter::_counts, and libMesh::Quality::name().
Referenced by libMesh::ReferenceCounter::print_info().
|
staticinherited |
Gets a string containing the reference information.
Definition at line 47 of file reference_counter.C.
References libMesh::ReferenceCounter::_counts, and libMesh::Quality::name().
Referenced by libMesh::ReferenceCounter::print_info().
|
inherited |
Definition at line 1636 of file system.C.
References libMesh::FEType::family, libMesh::System::get_dof_map(), libMesh::DofMap::get_info(), libMesh::System::n_constrained_dofs(), libMesh::System::n_dofs(), libMesh::System::n_local_constrained_dofs(), libMesh::System::n_local_dofs(), libMesh::System::n_matrices(), libMesh::System::n_variable_groups(), libMesh::VariableGroup::n_variables(), libMesh::System::n_vectors(), libMesh::VariableGroup::name(), libMesh::System::name(), libMesh::System::number(), libMesh::System::system_type(), libMesh::Variable::type(), libMesh::DofMap::variable_group(), and libMesh::System::variable_group().
|
inherited |
Definition at line 385 of file rb_construction.C.
References libMesh::RBConstruction::inner_product_assembly, and libMesh::RBConstruction::use_energy_inner_product.
|
inherited |
Get a pointer to inner_product_matrix.
Accessing via this function, rather than directly through the class member allows us to do error checking (e.g. inner_product_matrix is not defined in low-memory mode).
Definition at line 1853 of file rb_construction.C.
References libMesh::RBConstruction::inner_product_matrix.
Referenced by libMesh::RBConstruction::get_all_matrices(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), and libMesh::RBSCMConstruction::load_matrix_B().
|
inherited |
Get the last local index of the training parameters.
Definition at line 123 of file rb_construction_base.C.
|
virtualinherited |
Reimplemented in libMesh::NonlinearImplicitSystem, and libMesh::DifferentiableSystem.
Definition at line 1410 of file implicit_system.C.
References libMesh::Parameters::get(), libMesh::System::get_equation_systems(), libMesh::EquationSystems::parameters, and libMesh::Real.
Referenced by libMesh::ImplicitSystem::adjoint_solve(), libMesh::ImplicitSystem::sensitivity_solve(), libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve(), and libMesh::ImplicitSystem::weighted_sensitivity_solve().
|
overridevirtualinherited |
Reimplemented from libMesh::ImplicitSystem.
Definition at line 353 of file linear_implicit_system.C.
References libMesh::LinearImplicitSystem::linear_solver.
Referenced by libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBConstruction::initialize_rb_construction(), main(), SystemsTest::testDofCouplingWithVarGroups(), libMesh::TransientRBConstruction::truth_solve(), and libMesh::RBConstruction::truth_solve().
|
inherited |
Get the total number of training samples local to this processor.
Definition at line 109 of file rb_construction_base.C.
|
inherited |
mat_name
.None of these matrices is involved in the solution process. Access is only granted when the matrix is already properly initialized.
Definition at line 269 of file implicit_system.C.
References libMesh::ImplicitSystem::_matrices.
|
inherited |
mat_name
.None of these matrices is involved in the solution process. Access is only granted when the matrix is already properly initialized.
Definition at line 262 of file implicit_system.C.
References libMesh::ImplicitSystem::_matrices.
Referenced by add_M_C_K_helmholtz(), assemble(), assemble_helmholtz(), libMesh::NewmarkSystem::compute_matrix(), main(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::EigenTimeSolver::solve(), and libMesh::NewmarkSystem::update_rhs().
|
protectedvirtualinherited |
Return the matrix for the output residual dual norm solves.
By default we use the inner product matrix for steady state problems.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 1630 of file rb_construction.C.
References libMesh::RBConstruction::inner_product_matrix.
Referenced by libMesh::RBConstruction::compute_output_dual_innerprods().
|
inlineinherited |
_mesh
. Definition at line 2091 of file system.h.
References libMesh::System::_mesh.
|
inlineinherited |
_mesh
. Definition at line 2083 of file system.h.
References libMesh::System::_mesh.
Referenced by libMesh::ExactSolution::_compute_error(), LinearElasticityWithContact::add_contact_edge_elements(), libMesh::PetscDMWrapper::add_dofs_to_section(), libMesh::HPCoarsenTest::add_projection(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), AssembleOptimization::assemble_A_and_F(), libMesh::FEMSystem::assemble_qoi(), libMesh::FEMSystem::assemble_qoi_derivative(), libMesh::FEMSystem::assembly(), AssemblyA0::boundary_assembly(), AssemblyF0::boundary_assembly(), AssemblyA1::boundary_assembly(), AssemblyF1::boundary_assembly(), AssemblyF2::boundary_assembly(), AssemblyA2::boundary_assembly(), libMesh::System::calculate_norm(), compute_jacobian(), compute_residual(), LinearElasticityWithContact::compute_stresses(), DMCreateDomainDecomposition_libMesh(), DMCreateFieldDecomposition_libMesh(), DMlibMeshSetSystem_libMesh(), SolidSystem::element_time_derivative(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::WeightedPatchRecoveryErrorEstimator::estimate_error(), libMesh::PatchRecoveryErrorEstimator::estimate_error(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::GenericProjector< FFunctor, GFunctor, FValue, ProjectionAction >::GenericProjector(), LinearElasticityWithContact::get_least_and_max_gap_function(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), SolidSystem::init_data(), libMesh::System::init_data(), libMesh::RBEIMConstruction::init_dof_map_between_systems(), libMesh::EigenSystem::init_matrices(), libMesh::ImplicitSystem::init_matrices(), LinearElasticityWithContact::initialize_contact_load_paths(), libMesh::RBEIMAssembly::initialize_fe(), libMesh::System::local_dof_indices(), libMesh::DofMap::max_constraint_error(), libMesh::FEMSystem::mesh_position_get(), libMesh::FEMSystem::mesh_position_set(), LinearElasticityWithContact::move_mesh(), libMesh::WeightedPatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::PatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::petsc_auto_fieldsplit(), libMesh::RBEIMConstruction::plot_parametrized_functions_in_training_set(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::FEMSystem::postprocess(), libMesh::System::read_header(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), libMesh::System::read_serialized_vector(), libMesh::System::read_serialized_vectors(), libMesh::EigenSystem::reinit(), libMesh::ImplicitSystem::reinit(), LinearElasticityWithContact::residual_and_jacobian(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), SolidSystem::save_initial_mesh(), libMesh::HPSingularity::select_refinement(), libMesh::HPCoarsenTest::select_refinement(), libMesh::PetscDMWrapper::set_point_range_in_section(), SolidSystem::side_time_derivative(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::BoundaryVolumeSolutionTransfer::transfer(), libMesh::BoundaryVolumeSolutionTransfer::transfer_boundary_volume(), libMesh::BoundaryVolumeSolutionTransfer::transfer_volume_boundary(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::System::write_header(), libMesh::RBEvaluation::write_out_vectors(), libMesh::System::write_parallel_data(), libMesh::System::write_serialized_vector(), libMesh::System::write_serialized_vectors(), and libMesh::System::zero_variable().
|
inherited |
Get the number of continuous parameters.
Definition at line 125 of file rb_parametrized.C.
References libMesh::RBParametrized::get_n_discrete_params(), libMesh::RBParametrized::get_n_params(), libMesh::libmesh_assert(), and libMesh::RBParametrized::parameters_initialized.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder(), and libMesh::RBParametrized::write_parameter_ranges_to_file().
|
inherited |
Get the number of discrete parameters.
Definition at line 135 of file rb_parametrized.C.
References libMesh::RBParametrized::get_discrete_parameter_values(), and libMesh::RBParametrized::parameters_initialized.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder(), libMesh::RBParametrized::get_n_continuous_params(), and libMesh::RBParametrized::write_discrete_parameter_values_to_file().
|
inherited |
Get the number of parameters.
Definition at line 115 of file rb_parametrized.C.
References libMesh::RBParameters::n_parameters(), libMesh::RBParametrized::parameters_initialized, libMesh::RBParametrized::parameters_max, and libMesh::RBParametrized::parameters_min.
Referenced by libMesh::RBConstruction::compute_max_error_bound(), libMesh::RBEIMTheta::evaluate(), libMesh::RBParametrized::get_n_continuous_params(), libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), and libMesh::RBParametrized::valid_params().
|
inherited |
|
inlineinherited |
Get/set Nmax, the maximum number of RB functions we are willing to compute.
Definition at line 206 of file rb_construction.h.
References libMesh::RBConstruction::Nmax.
Referenced by libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::greedy_termination_test(), and libMesh::RBConstruction::train_reduced_basis().
|
inherited |
Get a pointer to non_dirichlet_Aq.
Definition at line 1884 of file rb_construction.C.
References libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::non_dirichlet_Aq_vector, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::get_all_matrices(), and libMesh::RBConstruction::get_non_dirichlet_Aq_if_avail().
|
inherited |
Get a pointer to non_dirichlet_Aq if it's available, otherwise get Aq.
Definition at line 1895 of file rb_construction.C.
References libMesh::RBConstruction::get_Aq(), libMesh::RBConstruction::get_non_dirichlet_Aq(), and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::update_RB_system_matrices().
|
inherited |
Get a pointer to non-Dirichlet Fq.
Definition at line 1913 of file rb_construction.C.
References libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::non_dirichlet_Fq_vector, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::RBConstruction::get_all_vectors(), and libMesh::RBConstruction::get_non_dirichlet_Fq_if_avail().
|
inherited |
Get a pointer to non_dirichlet_Fq if it's available, otherwise get Fq.
Definition at line 1924 of file rb_construction.C.
References libMesh::RBConstruction::get_Fq(), libMesh::RBConstruction::get_non_dirichlet_Fq(), and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::update_RB_system_matrices().
|
inherited |
Get the non-Dirichlet (or more generally no-constraints) version of the inner-product matrix.
This is useful for performing multiplications on vectors that already have constraints enforced.
Definition at line 1858 of file rb_construction.C.
References libMesh::RBConstruction::non_dirichlet_inner_product_matrix, and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::get_all_matrices(), and libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail().
|
inherited |
Get the non-Dirichlet inner-product matrix if it's available, otherwise get the inner-product matrix with constraints.
Definition at line 1866 of file rb_construction.C.
References libMesh::RBConstruction::get_inner_product_matrix(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix(), and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::RBConstruction::print_basis_function_orthogonality(), libMesh::TransientRBConstruction::set_error_temporal_data(), libMesh::RBConstruction::truth_solve(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inherited |
Get a pointer to non-Dirichlet output vector.
Definition at line 1943 of file rb_construction.C.
References libMesh::RBConstruction::get_rb_theta_expansion(), and libMesh::RBConstruction::non_dirichlet_outputs_vector.
Referenced by libMesh::RBConstruction::assemble_all_output_vectors(), and libMesh::RBConstruction::get_output_vectors().
|
inlineinherited |
Definition at line 200 of file rb_construction.h.
References libMesh::RBConstruction::normalize_rb_bound_in_greedy.
Referenced by libMesh::RBConstruction::print_info().
|
inherited |
Get a pointer to the n^th output.
Definition at line 1934 of file rb_construction.C.
References libMesh::RBConstruction::get_rb_theta_expansion(), and libMesh::RBConstruction::outputs_vector.
Referenced by libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::get_output_vectors(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), and libMesh::RBConstruction::update_RB_system_matrices().
|
virtualinherited |
Get a map that stores pointers to all of the vectors.
Definition at line 1997 of file rb_construction.C.
References libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_non_dirichlet_output_vector(), libMesh::RBConstruction::get_output_vector(), libMesh::RBConstruction::get_rb_theta_expansion(), and libMesh::RBConstruction::store_non_dirichlet_operators.
Referenced by libMesh::RBConstruction::get_all_vectors().
|
inherited |
Get maximum allowable value of parameter param_name
.
Definition at line 198 of file rb_parametrized.C.
References libMesh::RBParameters::get_value(), libMesh::RBParametrized::parameters_initialized, and libMesh::RBParametrized::parameters_max.
Referenced by libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), and libMesh::RBParametrized::valid_params().
|
inherited |
Get minimum allowable value of parameter param_name
.
Definition at line 190 of file rb_parametrized.C.
References libMesh::RBParameters::get_value(), libMesh::RBParametrized::parameters_initialized, and libMesh::RBParametrized::parameters_min.
Referenced by libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), and libMesh::RBParametrized::valid_params().
|
inherited |
Get a set that stores the parameter names.
Definition at line 144 of file rb_parametrized.C.
References libMesh::RBParameters::get_parameter_names(), libMesh::RBParametrized::parameters_initialized, and libMesh::RBParametrized::parameters_min.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder().
|
inherited |
Get the current parameters.
Definition at line 166 of file rb_parametrized.C.
References libMesh::RBParametrized::parameters, and libMesh::RBParametrized::parameters_initialized.
Referenced by libMesh::TransientRBConstruction::add_scaled_mass_matrix(), libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEIMConstruction::compute_best_fit_error(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBSCMConstruction::compute_SCM_bounds_on_training_set(), libMesh::RBSCMConstruction::enrich_C_J(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::RBEIMTheta::evaluate(), libMesh::RBEIMEvaluation::evaluate_parametrized_function(), libMesh::RBSCMConstruction::evaluate_stability_constant(), libMesh::RBConstruction::get_RB_error_bound(), libMesh::RBSCMEvaluation::get_SCM_LB(), libMesh::RBSCMEvaluation::get_SCM_UB(), SimpleRBEvaluation::get_stability_lower_bound(), libMesh::RBConstruction::greedy_termination_test(), libMesh::RBSCMEvaluation::legacy_read_offline_data_from_files(), libMesh::TransientRBConstruction::mass_matrix_scaled_matvec(), libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), libMesh::RBParametrized::print_parameters(), libMesh::RBSCMConstruction::process_parameters_file(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::RBEIMEvaluation::rb_solve(), libMesh::RBSCMEvaluation::save_current_parameters(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), and libMesh::RBConstruction::update_greedy_param_list().
|
inherited |
Get an RBParameters object that specifies the maximum allowable value for each parameter.
Definition at line 182 of file rb_parametrized.C.
References libMesh::RBParametrized::parameters_initialized, and libMesh::RBParametrized::parameters_max.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBSCMConstruction::process_parameters_file(), libMesh::RBConstruction::set_rb_construction_parameters(), and libMesh::RBParametrized::write_parameter_ranges_to_file().
|
inherited |
Get an RBParameters object that specifies the minimum allowable value for each parameter.
Definition at line 174 of file rb_parametrized.C.
References libMesh::RBParametrized::parameters_initialized, and libMesh::RBParametrized::parameters_min.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBSCMConstruction::process_parameters_file(), libMesh::RBConstruction::set_rb_construction_parameters(), and libMesh::RBParametrized::write_parameter_ranges_to_file().
|
protectedinherited |
Return the RBParameters in index index
of training set.
Definition at line 136 of file rb_construction_base.C.
|
inherited |
Definition at line 371 of file rb_construction.C.
References libMesh::RBConstruction::rb_assembly_expansion.
Referenced by libMesh::TransientRBConstruction::assemble_Mq_matrix(), libMesh::TransientRBConstruction::initialize_rb_construction(), and libMesh::RBConstruction::initialize_rb_construction().
|
protectedvirtualinherited |
Used in the Greedy algorithm to select the next parameter.
Reimplemented in libMesh::RBEIMConstruction.
Definition at line 1356 of file rb_construction.C.
References libMesh::RBConstruction::abs_training_tolerance, libMesh::RBEvaluation::get_error_bound_normalization(), libMesh::RBParametrized::get_parameters(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::normalize_rb_bound_in_greedy, libMesh::RBEvaluation::rb_solve(), libMesh::Real, and libMesh::RBParametrized::set_parameters().
Referenced by libMesh::RBConstruction::compute_max_error_bound().
|
inherited |
Get a reference to the RBEvaluation object.
Definition at line 175 of file rb_construction.C.
References libMesh::RBConstruction::rb_eval.
Referenced by libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::TransientRBConstruction::assemble_affine_expansion(), libMesh::RBEIMConstruction::compute_best_fit_error(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_max_error_bound(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::RBConstruction::get_greedy_parameter(), libMesh::RBConstruction::get_RB_error_bound(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::greedy_termination_test(), libMesh::RBEIMConstruction::initialize_eim_assembly_objects(), libMesh::RBEIMConstruction::initialize_parametrized_functions_in_training_set(), libMesh::RBEIMConstruction::load_basis_function(), libMesh::RBConstruction::load_basis_function(), libMesh::RBEIMConstruction::load_rb_solution(), libMesh::RBConstruction::load_rb_solution(), libMesh::TransientRBConstruction::load_rb_solution(), main(), libMesh::RBConstruction::print_basis_function_orthogonality(), libMesh::TransientRBConstruction::process_parameters_file(), libMesh::RBEIMAssembly::RBEIMAssembly(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::recompute_all_residual_terms(), libMesh::TransientRBConstruction::set_error_temporal_data(), libMesh::RBConstruction::train_reduced_basis(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::update_greedy_param_list(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), libMesh::RBConstruction::update_residual_terms(), libMesh::TransientRBConstruction::write_riesz_representors_to_files(), and libMesh::RBConstruction::write_riesz_representors_to_files().
|
inherited |
Get a reference to the RBThetaExpansion object that that belongs to rb_eval.
Definition at line 188 of file rb_construction.C.
References libMesh::RBConstruction::get_rb_evaluation(), and libMesh::RBEvaluation::get_rb_theta_expansion().
Referenced by libMesh::RBConstruction::add_scaled_Aq(), libMesh::TransientRBConstruction::add_scaled_mass_matrix(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::TransientRBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::assemble_Aq_matrix(), libMesh::RBConstruction::assemble_Fq_vector(), libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::TransientRBConstruction::assemble_Mq_matrix(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::TransientRBConstruction::get_all_matrices(), libMesh::RBConstruction::get_all_matrices(), libMesh::RBConstruction::get_all_vectors(), libMesh::RBConstruction::get_Aq(), libMesh::RBConstruction::get_Fq(), libMesh::TransientRBConstruction::get_M_q(), libMesh::RBConstruction::get_non_dirichlet_Aq(), libMesh::RBConstruction::get_non_dirichlet_Fq(), libMesh::TransientRBConstruction::get_non_dirichlet_M_q(), libMesh::RBConstruction::get_non_dirichlet_output_vector(), libMesh::RBConstruction::get_output_vector(), libMesh::RBConstruction::get_output_vectors(), libMesh::TransientRBConstruction::initialize_rb_construction(), libMesh::RBConstruction::initialize_rb_construction(), libMesh::TransientRBConstruction::mass_matrix_scaled_matvec(), libMesh::TransientRBConstruction::print_info(), libMesh::RBConstruction::print_info(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inlineinherited |
Definition at line 186 of file rb_construction.h.
References libMesh::RBConstruction::rel_training_tolerance.
Referenced by libMesh::RBConstruction::print_info().
|
inherited |
assemble_residual_derivatives()
is called.When assembled, this vector should hold -(partial R / partial p_i)
Definition at line 1049 of file system.C.
References libMesh::System::get_vector().
Referenced by libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), and libMesh::ImplicitSystem::sensitivity_solve().
|
inherited |
Definition at line 1059 of file system.C.
References libMesh::System::get_vector().
|
inherited |
Definition at line 904 of file system.C.
References libMesh::System::get_vector().
Referenced by libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::qoi_parameter_hessian(), and libMesh::ImplicitSystem::sensitivity_solve().
|
inherited |
Definition at line 914 of file system.C.
References libMesh::System::get_vector().
|
inlineinherited |
nullptr
. Definition at line 191 of file linear_implicit_system.h.
References libMesh::LinearImplicitSystem::_shell_matrix.
|
inherited |
vec_name
. Access is only granted when the vector is already properly initialized. Definition at line 781 of file system.C.
References libMesh::System::_vectors.
|
inherited |
vec_name
. Access is only granted when the vector is already properly initialized. Definition at line 774 of file system.C.
References libMesh::System::_vectors.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), add_M_C_K_helmholtz(), libMesh::UnsteadySolver::adjoint_advance_timestep(), libMesh::NewmarkSolver::advance_timestep(), libMesh::AdaptiveTimeSolver::advance_timestep(), libMesh::UnsteadySolver::advance_timestep(), apply_initial(), assemble(), libMesh::System::compare(), libMesh::NewmarkSolver::compute_initial_accel(), libMesh::UnsteadySolver::du(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::System::get_adjoint_rhs(), libMesh::System::get_adjoint_solution(), libMesh::System::get_sensitivity_rhs(), libMesh::System::get_sensitivity_solution(), libMesh::System::get_weighted_sensitivity_adjoint_solution(), libMesh::System::get_weighted_sensitivity_solution(), libMesh::NewmarkSystem::initial_conditions(), AssembleOptimization::lower_and_upper_bounds(), main(), libMesh::NewmarkSolver::project_initial_accel(), libMesh::SecondOrderUnsteadySolver::project_initial_rate(), libMesh::SecondOrderUnsteadySolver::reinit(), libMesh::UnsteadySolver::reinit(), libMesh::MemorySolutionHistory::retrieve(), libMesh::UnsteadySolver::retrieve_timestep(), libMesh::TwostepTimeSolver::solve(), libMesh::FrequencySystem::solve(), libMesh::NewmarkSystem::update_rhs(), and libMesh::NewmarkSystem::update_u_v_a().
|
inherited |
vec_num
(where the vectors are counted starting with 0). Definition at line 804 of file system.C.
References libMesh::libmesh_assert(), libMesh::System::vectors_begin(), and libMesh::System::vectors_end().
|
inherited |
vec_num
(where the vectors are counted starting with 0). Definition at line 788 of file system.C.
References libMesh::libmesh_assert(), libMesh::System::vectors_begin(), and libMesh::System::vectors_end().
|
inherited |
Definition at line 989 of file system.C.
References libMesh::System::get_vector().
Referenced by libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), and libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve().
|
inherited |
Definition at line 999 of file system.C.
References libMesh::System::get_vector().
|
inherited |
Definition at line 931 of file system.C.
References libMesh::System::get_vector().
Referenced by libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), and libMesh::ImplicitSystem::weighted_sensitivity_solve().
|
inherited |
Definition at line 938 of file system.C.
References libMesh::System::get_vector().
|
protectedvirtualinherited |
Function that indicates when to terminate the Greedy basis training.
Override in subclasses to specialize.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 1192 of file rb_construction.C.
References libMesh::RBConstruction::abs_training_tolerance, libMesh::RBConstruction::exit_on_repeated_greedy_parameters, libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_Nmax(), libMesh::RBParametrized::get_parameters(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBEvaluation::greedy_param_list, libMesh::out, libMesh::Real, and libMesh::RBConstruction::rel_training_tolerance.
Referenced by libMesh::TransientRBConstruction::greedy_termination_test(), and libMesh::RBConstruction::train_reduced_basis().
|
inherited |
true
if a variable named var
exists in this System Definition at line 1225 of file system.C.
References libMesh::System::_variable_numbers.
Referenced by libMesh::GMVIO::copy_nodal_solution(), and main().
|
inlineinherited |
true
if this System
has a matrix associated with the given name, false
otherwise. Definition at line 439 of file implicit_system.h.
References libMesh::ImplicitSystem::_matrices.
Referenced by libMesh::ImplicitSystem::add_matrix(), and libMesh::EigenTimeSolver::init().
|
inlineinherited |
true
if this System
has a vector associated with the given name, false
otherwise. Definition at line 2275 of file system.h.
References libMesh::System::_vectors.
Referenced by libMesh::System::add_vector().
|
inlineinherited |
true
, then EquationSystems::write
will ignore this system. Definition at line 1712 of file system.h.
References libMesh::System::_hide_output.
|
inlineinherited |
true
when VariableGroup
structures should be automatically identified, false
otherwise. Definition at line 2251 of file system.h.
References libMesh::System::_identify_variable_groups.
Referenced by libMesh::System::add_variable().
|
inlineinherited |
Toggle automatic VariableGroup
identification.
Definition at line 2259 of file system.h.
References libMesh::System::_identify_variable_groups.
|
inlineprotectedinherited |
Increments the construction counter.
Should be called in the constructor of any derived class that will be reference counted.
Definition at line 181 of file reference_counter.h.
References libMesh::ReferenceCounter::_counts, libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::ReferenceCountedObject().
|
inlineprotectedinherited |
Increments the construction counter.
Should be called in the constructor of any derived class that will be reference counted.
Definition at line 181 of file reference_counter.h.
References libMesh::ReferenceCounter::_counts, libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::ReferenceCountedObject().
|
inlineprotectedinherited |
Increments the destruction counter.
Should be called in the destructor of any derived class that will be reference counted.
Definition at line 194 of file reference_counter.h.
References libMesh::ReferenceCounter::_counts, libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::~ReferenceCountedObject().
|
inlineprotectedinherited |
Increments the destruction counter.
Should be called in the destructor of any derived class that will be reference counted.
Definition at line 194 of file reference_counter.h.
References libMesh::ReferenceCounter::_counts, libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::~ReferenceCountedObject().
|
inherited |
Initializes degrees of freedom on the current mesh.
Sets the
Definition at line 237 of file system.C.
References libMesh::System::_basic_system_only, libMesh::System::init_data(), libMesh::System::is_initialized(), libMesh::libmesh_assert(), libMesh::System::n_vars(), and libMesh::System::user_initialization().
|
inlinevirtual |
Pre-request all relevant element data.
Definition at line 114 of file rb_classes.h.
References u_var.
|
inlinevirtual |
Pre-request all relevant element data.
Reimplemented from libMesh::RBConstruction.
Definition at line 126 of file rb_classes.h.
References libMesh::FEMContext::get_element_fe(), libMesh::FEMContext::get_side_fe(), and p_var.
|
inlinevirtual |
Pre-request all relevant element data.
Reimplemented from libMesh::RBConstruction.
Definition at line 133 of file rb_classes.h.
References libMesh::FEMContext::get_element_fe(), and u_var.
|
inlinevirtual |
Pre-request all relevant element data.
Reimplemented from libMesh::RBConstruction.
Definition at line 133 of file rb_classes.h.
References libMesh::FEMContext::get_element_fe(), and u_var.
|
inlinevirtual |
Pre-request all relevant element data.
Reimplemented from libMesh::RBConstruction.
Definition at line 135 of file rb_classes.h.
References libMesh::FEMContext::get_element_fe(), and u_var.
|
inlinevirtual |
Pre-request all relevant element data.
(This is not essential, but it allows libMesh to cache data and hence run faster.)
Reimplemented from libMesh::RBConstruction.
Definition at line 148 of file rb_classes.h.
References libMesh::FEMContext::get_element_fe(), and u_var.
|
inlinevirtual |
Initialize data structures.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Definition at line 84 of file rb_classes.h.
References EimTestRBAssemblyExpansion::A0_assembly, libMesh::DofMap::add_dirichlet_boundary(), libMesh::System::add_variable(), libMesh::RBConstruction::build_zero_dirichlet_boundary_object(), dirichlet_bc, eim_test_rb_assembly_expansion, libMesh::FIRST, libMesh::System::get_dof_map(), libMesh::RBConstructionBase< LinearImplicitSystem >::init_data(), libMesh::RBConstruction::set_inner_product_assembly(), libMesh::RBConstruction::set_rb_assembly_expansion(), and u_var.
|
inlinevirtual |
Initialize data structures.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Definition at line 102 of file rb_classes.h.
References CDRBAssemblyExpansion::A0_assembly, libMesh::DofMap::add_dirichlet_boundary(), libMesh::System::add_variable(), libMesh::RBConstruction::build_zero_dirichlet_boundary_object(), cd_rb_assembly_expansion, dirichlet_bc, libMesh::FIRST, libMesh::System::get_dof_map(), libMesh::RBConstructionBase< LinearImplicitSystem >::init_data(), libMesh::RBConstruction::set_inner_product_assembly(), libMesh::RBConstruction::set_rb_assembly_expansion(), and u_var.
|
inlinevirtual |
Initialize data structures.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Definition at line 102 of file rb_classes.h.
References CDRBAssemblyExpansion::A0_assembly, libMesh::DofMap::add_dirichlet_boundary(), libMesh::System::add_variable(), libMesh::RBConstruction::build_zero_dirichlet_boundary_object(), cd_rb_assembly_expansion, dirichlet_bc, libMesh::FIRST, libMesh::System::get_dof_map(), libMesh::RBConstructionBase< LinearImplicitSystem >::init_data(), CDRBAssemblyExpansion::M0_assembly, libMesh::RBConstruction::set_inner_product_assembly(), libMesh::RBConstruction::set_rb_assembly_expansion(), and u_var.
|
inlinevirtual |
Initialize data structures.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Definition at line 104 of file rb_classes.h.
References libMesh::DofMap::add_dirichlet_boundary(), libMesh::System::add_variable(), libMesh::RBConstruction::build_zero_dirichlet_boundary_object(), dirichlet_bc, ex6_assembly_expansion, ex6_ip, libMesh::FIRST, libMesh::System::get_dof_map(), libMesh::RBConstructionBase< LinearImplicitSystem >::init_data(), libMesh::RBConstruction::set_inner_product_assembly(), libMesh::RBConstruction::set_rb_assembly_expansion(), and u_var.
|
inlinevirtual |
Initialize data structures.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Definition at line 106 of file rb_classes.h.
References acoustics_rb_assembly_expansion, libMesh::System::add_variable(), libMesh::RBConstructionBase< LinearImplicitSystem >::init_data(), p_var, libMesh::SECOND, libMesh::RBConstruction::set_inner_product_assembly(), and libMesh::RBConstruction::set_rb_assembly_expansion().
|
inlinevirtual |
Initialize data structures.
Reimplemented from libMesh::RBConstructionBase< LinearImplicitSystem >.
Definition at line 120 of file rb_classes.h.
References libMesh::DofMap::add_dirichlet_boundary(), libMesh::System::add_variable(), Ex02RBAssemblyExpansion::B_assembly, libMesh::RBConstruction::build_zero_dirichlet_boundary_object(), dirichlet_bc, ex02_rb_assembly_expansion, libMesh::FIRST, libMesh::System::get_dof_map(), libMesh::RBConstructionBase< LinearImplicitSystem >::init_data(), libMesh::RBConstruction::set_inner_product_assembly(), libMesh::RBConstruction::set_rb_assembly_expansion(), and u_var.
|
protectedvirtualinherited |
Initializes the matrices associated with this system.
Definition at line 105 of file implicit_system.C.
References libMesh::ImplicitSystem::_can_add_matrices, libMesh::ImplicitSystem::_matrices, libMesh::DofMap::attach_matrix(), libMesh::DofMap::compute_sparsity(), libMesh::System::get_dof_map(), libMesh::System::get_mesh(), libMesh::SparseMatrix< T >::initialized(), libMesh::DofMap::is_attached(), libMesh::libmesh_assert(), and libMesh::ImplicitSystem::matrix.
Referenced by libMesh::ImplicitSystem::init_data().
|
inherited |
Initialize the parameter ranges and set current_parameters.
Definition at line 60 of file rb_parametrized.C.
References libMesh::RBParametrized::_discrete_parameter_values, libMesh::RBParameters::get_value(), libMesh::RBParameters::n_parameters(), libMesh::RBParametrized::parameters_initialized, libMesh::RBParametrized::parameters_max, libMesh::RBParametrized::parameters_min, libMesh::Real, libMesh::RBParametrized::set_parameters(), and libMesh::RBParameters::set_value().
Referenced by libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBEIMConstruction::initialize_parametrized_functions_in_training_set(), libMesh::RBDataDeserialization::load_parameter_ranges(), libMesh::RBSCMConstruction::perform_SCM_greedy(), libMesh::RBSCMConstruction::process_parameters_file(), libMesh::RBParametrized::read_parameter_data_from_files(), libMesh::RBConstruction::set_rb_construction_parameters(), and libMesh::RBConstruction::train_reduced_basis().
|
inherited |
Initialize the parameter ranges and set current_parameters.
Definition at line 108 of file rb_parametrized.C.
References libMesh::RBParametrized::get_discrete_parameter_values(), libMesh::RBParametrized::get_parameters_max(), libMesh::RBParametrized::get_parameters_min(), and libMesh::RBParametrized::initialize_parameters().
|
virtualinherited |
Allocate all the data structures necessary for the construction stage of the RB method.
This function also performs matrix and vector assembly of the "truth" affine expansion.
We can optionally skip the matrix or vector assembly steps by setting skip_matrix_assembly = true, or skip_vector_assembly = true, respectively.
Reimplemented in libMesh::RBEIMConstruction, and libMesh::TransientRBConstruction.
Definition at line 419 of file rb_construction.C.
References libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_affine_expansion(), libMesh::LinearImplicitSystem::get_linear_solver(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_rb_assembly_expansion(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::inner_product_solver, and libMesh::LinearSolver< T >::reuse_preconditioner().
Referenced by libMesh::TransientRBConstruction::initialize_rb_construction(), libMesh::RBEIMConstruction::initialize_rb_construction(), and main().
|
virtualinherited |
Initialize the parameter ranges and indicate whether deterministic or random training parameters should be used and whether or not we want the parameters to be scaled logarithmically.
Definition at line 181 of file rb_construction_base.C.
|
inlineinherited |
Accessor for the adjoint_already_solved boolean.
Definition at line 396 of file system.h.
References libMesh::System::adjoint_already_solved.
Referenced by libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), libMesh::ImplicitSystem::qoi_parameter_hessian(), and libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product().
|
inherited |
Is parameter mu_name
discrete?
Definition at line 373 of file rb_parametrized.C.
References libMesh::RBParametrized::_discrete_parameter_values, and libMesh::RBParametrized::parameters_initialized.
Referenced by libMesh::RBDataSerialization::add_parameter_ranges_to_builder(), libMesh::RBConstruction::print_info(), libMesh::RBParametrized::valid_params(), and libMesh::RBParametrized::write_parameter_ranges_to_file().
|
inlineinherited |
true
iff this system has been initialized. Definition at line 2139 of file system.h.
References libMesh::System::_is_initialized.
Referenced by libMesh::System::add_variable(), libMesh::System::add_variables(), and libMesh::System::init().
|
inlineinherited |
|
inherited |
true
if rb_eval is initialized. False, otherwise. Definition at line 183 of file rb_construction.C.
References libMesh::RBConstruction::rb_eval.
Referenced by libMesh::TransientRBConstruction::print_info(), and libMesh::RBConstruction::print_info().
|
staticprivateinherited |
Helper function to check if the specified value is in the list of values (within a tolerance given by tol
).
Definition at line 453 of file rb_parametrized.C.
References std::abs(), libMesh::RBParametrized::get_closest_value(), libMesh::Real, and value.
Referenced by libMesh::RBParametrized::valid_params().
|
virtualinherited |
Load the i^th RB function into the RBConstruction solution vector.
Reimplemented in libMesh::RBEIMConstruction.
Definition at line 1305 of file rb_construction.C.
References libMesh::RBEvaluation::get_basis_function(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::System::solution, and libMesh::System::update().
Referenced by main().
|
virtualinherited |
Load the RB solution from the most recent solve with rb_eval into this system's solution vector.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 1800 of file rb_construction.C.
References libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBEvaluation::RB_solution, libMesh::DenseVector< T >::size(), libMesh::System::solution, and libMesh::System::update().
Referenced by main().
|
virtualinherited |
Overwrite the training parameters with new_training_set.
Definition at line 257 of file rb_construction_base.C.
|
inherited |
Fills the std::set with the degrees of freedom on the local processor corresponding the the variable number passed in.
Definition at line 1259 of file system.C.
References libMesh::DofMap::dof_indices(), libMesh::DofMap::end_dof(), libMesh::DofMap::first_dof(), libMesh::System::get_dof_map(), libMesh::System::get_mesh(), and libMesh::libmesh_assert().
Referenced by libMesh::System::discrete_var_norm(), SystemsTest::testBlockRestrictedVarNDofs(), and libMesh::DirectSolutionTransfer::transfer().
|
inlineinherited |
Definition at line 2267 of file system.h.
References libMesh::System::n_constrained_dofs(), and libMesh::System::n_dofs().
|
inlineinherited |
n_vars()
in the case of all scalar-valued variables. Definition at line 2171 of file system.h.
References libMesh::System::_variables, libMesh::Variable::first_scalar_number(), and libMesh::Variable::n_components().
Referenced by libMesh::System::add_variables().
|
inherited |
Definition at line 157 of file system.C.
References libMesh::System::_dof_map.
Referenced by libMesh::System::get_info(), libMesh::System::n_active_dofs(), and BoundaryInfoTest::testShellFaceConstraints().
|
inherited |
Definition at line 150 of file system.C.
References libMesh::System::_dof_map.
Referenced by libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::System::add_vector(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::TransientRBConstruction::assemble_affine_expansion(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::System::get_info(), libMesh::SecondOrderUnsteadySolver::init_data(), libMesh::UnsteadySolver::init_data(), libMesh::System::init_data(), libMesh::RBEIMConstruction::init_dof_map_between_systems(), libMesh::OptimizationSystem::initialize_equality_constraints_storage(), libMesh::OptimizationSystem::initialize_inequality_constraints_storage(), libMesh::RBEIMConstruction::initialize_rb_construction(), main(), libMesh::TransientRBConstruction::mass_matrix_scaled_matvec(), libMesh::System::n_active_dofs(), libMesh::CondensedEigenSystem::n_global_non_condensed_dofs(), libMesh::FEMSystem::numerical_jacobian(), libMesh::RBSCMConstruction::perform_SCM_greedy(), libMesh::RBEIMAssembly::RBEIMAssembly(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::System::read_legacy_data(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::SecondOrderUnsteadySolver::reinit(), libMesh::UnsteadySolver::reinit(), libMesh::System::restrict_vectors(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::TransientRBConstruction::set_error_temporal_data(), libMesh::RBEIMConstruction::set_explicit_sys_subvector(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), SystemsTest::testProjectCubeWithMeshFunction(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), SystemsTest::testProjectMatrix3D(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inlineinherited |
Definition at line 164 of file linear_implicit_system.h.
References libMesh::LinearImplicitSystem::_n_linear_iterations.
Referenced by libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), main(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inherited |
Definition at line 172 of file system.C.
References libMesh::System::_dof_map.
Referenced by libMesh::System::get_info().
|
inherited |
Definition at line 187 of file system.C.
References libMesh::System::_dof_map, and libMesh::ParallelObject::processor_id().
Referenced by libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::System::add_vector(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::TransientRBConstruction::assemble_affine_expansion(), libMesh::PetscDMWrapper::build_section(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::TransientRBConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::System::get_info(), libMesh::SecondOrderUnsteadySolver::init_data(), libMesh::UnsteadySolver::init_data(), libMesh::System::init_data(), libMesh::OptimizationSystem::initialize_equality_constraints_storage(), libMesh::OptimizationSystem::initialize_inequality_constraints_storage(), libMesh::RBEIMConstruction::initialize_rb_construction(), main(), libMesh::TransientRBConstruction::mass_matrix_scaled_matvec(), libMesh::RBEIMAssembly::RBEIMAssembly(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::SecondOrderUnsteadySolver::reinit(), libMesh::UnsteadySolver::reinit(), libMesh::System::restrict_vectors(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::TransientRBConstruction::set_error_temporal_data(), MeshFunctionTest::test_p_level(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inlineoverridevirtualinherited |
Reimplemented from libMesh::System.
Definition at line 446 of file implicit_system.h.
References libMesh::ImplicitSystem::_matrices.
|
inlinestaticinherited |
Prints the number of outstanding (created, but not yet destroyed) objects.
Definition at line 83 of file reference_counter.h.
References libMesh::ReferenceCounter::_n_objects.
|
inlinestaticinherited |
Prints the number of outstanding (created, but not yet destroyed) objects.
Definition at line 83 of file reference_counter.h.
References libMesh::ReferenceCounter::_n_objects.
|
inlineinherited |
Definition at line 100 of file parallel_object.h.
References libMesh::ParallelObject::_communicator.
Referenced by libMesh::BoundaryInfo::_find_id_maps(), libMesh::DofMap::add_constraints_to_send_list(), libMesh::PetscDMWrapper::add_dofs_to_section(), libMesh::DistributedMesh::add_elem(), libMesh::DofMap::add_neighbors_to_send_list(), libMesh::DistributedMesh::add_node(), libMesh::LaplaceMeshSmoother::allgather_graph(), libMesh::DofMap::allgather_recursive_constraints(), libMesh::FEMSystem::assembly(), libMesh::AztecLinearSolver< T >::AztecLinearSolver(), libMesh::BoundaryInfo::build_node_list_from_side_list(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::DistributedMesh::clear(), libMesh::Nemesis_IO_Helper::compute_border_node_ids(), libMesh::Nemesis_IO_Helper::construct_nemesis_filename(), libMesh::ExodusII_IO::copy_scalar_solution(), libMesh::UnstructuredMesh::create_pid_mesh(), libMesh::MeshTools::create_processor_bounding_box(), libMesh::DofMap::distribute_dofs(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), libMesh::EnsightIO::EnsightIO(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::Nemesis_IO_Helper::initialize(), libMesh::DistributedMesh::insert_elem(), libMesh::MeshTools::libmesh_assert_contiguous_dof_ids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_new_node_procids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Elem >(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_topology_consistent_procids< Node >(), libMesh::MeshTools::libmesh_assert_valid_boundary_ids(), libMesh::MeshTools::libmesh_assert_valid_dof_ids(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libMesh::MeshTools::libmesh_assert_valid_refinement_flags(), libMesh::DofMap::local_variable_indices(), libMesh::MeshRefinement::make_coarsening_compatible(), libMesh::MeshBase::partition(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::DofMap::prepare_send_list(), libMesh::DofMap::print_dof_constraints(), libMesh::NameBasedIO::read(), libMesh::Nemesis_IO::read(), libMesh::CheckpointIO::read(), libMesh::CheckpointIO::read_connectivity(), libMesh::XdrIO::read_header(), libMesh::CheckpointIO::read_nodes(), libMesh::System::read_parallel_data(), libMesh::System::read_SCALAR_dofs(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::System::read_serialized_vector(), libMesh::DistributedMesh::renumber_dof_objects(), OverlappingFunctorTest::run_partitioner_test(), libMesh::DofMap::scatter_constraints(), libMesh::DofMap::set_nonlocal_dof_objects(), libMesh::PetscDMWrapper::set_point_range_in_section(), CheckpointIOTest::testSplitter(), WriteVecAndScalar::testWrite(), libMesh::MeshRefinement::uniformly_coarsen(), libMesh::DistributedMesh::update_parallel_id_counts(), libMesh::GMVIO::write_binary(), libMesh::GMVIO::write_discontinuous_gmv(), libMesh::VTKIO::write_nodal_data(), libMesh::System::write_parallel_data(), libMesh::System::write_SCALAR_dofs(), libMesh::XdrIO::write_serialized_bcs_helper(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::XdrIO::write_serialized_connectivity(), libMesh::XdrIO::write_serialized_nodes(), and libMesh::XdrIO::write_serialized_nodesets().
|
inlineinherited |
Number of currently active quantities of interest.
Definition at line 2328 of file system.h.
References libMesh::System::qoi.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::adjoint_solve(), libMesh::SensitivityData::allocate_data(), libMesh::SensitivityData::allocate_hessian_data(), libMesh::ExplicitSystem::assemble_qoi(), libMesh::FEMSystem::assemble_qoi(), libMesh::ExplicitSystem::assemble_qoi_derivative(), libMesh::FEMSystem::assemble_qoi_derivative(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::FEMContext::pre_fe_reinit(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), libMesh::QoISet::size(), and libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve().
|
inlineinherited |
VariableGroup
variable groups in the system Definition at line 2163 of file system.h.
References libMesh::System::_variable_groups.
Referenced by libMesh::System::add_variable(), libMesh::FEMSystem::assembly(), libMesh::System::get_info(), and libMesh::System::init_data().
|
inlineinherited |
Definition at line 2155 of file system.h.
References libMesh::System::_variables.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::PetscDMWrapper::add_dofs_helper(), libMesh::DiffContext::add_localized_vector(), libMesh::RBConstruction::add_scaled_matrix_and_vector(), libMesh::System::add_variable(), libMesh::System::add_variables(), libMesh::FEMContext::attach_quadrature_rules(), libMesh::EquationSystems::build_discontinuous_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::PetscDMWrapper::build_section(), libMesh::System::calculate_norm(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::DGFEMContext::DGFEMContext(), libMesh::DiffContext::DiffContext(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::ErrorEstimator::estimate_errors(), libMesh::ExactSolution::ExactSolution(), libMesh::FEMContext::find_hardest_fe_type(), libMesh::EquationSystems::find_variable_numbers(), libMesh::System::get_all_variable_numbers(), libMesh::System::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::FEMSystem::init_context(), libMesh::RBEIMConstruction::init_context_with_sys(), libMesh::RBEIMConstruction::init_dof_map_between_systems(), libMesh::FEMContext::init_internal_data(), libMesh::DifferentiablePhysics::init_physics(), AssemblyA0::interior_assembly(), AssemblyA1::interior_assembly(), AssemblyA2::interior_assembly(), main(), libMesh::WeightedPatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::PatchRecoveryErrorEstimator::EstimateError::operator()(), output_norms(), libMesh::petsc_auto_fieldsplit(), libMesh::FEMContext::pre_fe_reinit(), libMesh::System::re_update(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::System::read_serialized_vector(), libMesh::System::read_serialized_vectors(), libMesh::HPCoarsenTest::select_refinement(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::SystemSubsetBySubdomain::set_var_nums(), OverlappingTestBase::setup_coupling_matrix(), SystemsTest::testDofCouplingWithVarGroups(), SlitMeshRefinedSystemTest::testRestart(), SlitMeshRefinedSystemTest::testSystem(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::System::write_header(), libMesh::System::write_parallel_data(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::System::write_serialized_vector(), libMesh::System::write_serialized_vectors(), and libMesh::System::zero_variable().
|
inlineinherited |
_vectors
map Definition at line 2283 of file system.h.
References libMesh::System::_vectors.
Referenced by libMesh::ExplicitSystem::add_system_rhs(), libMesh::System::compare(), libMesh::System::get_info(), main(), and libMesh::System::write_header().
|
inlineinherited |
Definition at line 2067 of file system.h.
References libMesh::System::_sys_name.
Referenced by libMesh::System::compare(), compute_jacobian(), compute_residual(), libMesh::ContinuationSystem::ContinuationSystem(), DMlibMeshSetUpName_Private(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::ExactSolution::ExactSolution(), libMesh::ExactErrorEstimator::find_squared_element_error(), libMesh::System::get_info(), libMesh::ImplicitSystem::get_linear_solver(), libMesh::NewtonSolver::init(), libMesh::TimeSolver::init_data(), main(), output_norms(), libMesh::petsc_auto_fieldsplit(), libMesh::RBEIMConstruction::plot_parametrized_functions_in_training_set(), libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), libMesh::TimeSolver::reinit(), libMesh::PetscDiffSolver::setup_petsc_data(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), libMesh::NonlinearImplicitSystem::solve(), libMesh::System::user_assembly(), libMesh::System::user_constrain(), libMesh::System::user_initialization(), libMesh::System::user_QOI(), libMesh::System::user_QOI_derivative(), libMesh::System::variable_number(), libMesh::System::write_header(), libMesh::System::write_parallel_data(), and libMesh::System::write_serialized_data().
|
inlineinherited |
Definition at line 2075 of file system.h.
References libMesh::System::_sys_number.
Referenced by libMesh::ExactSolution::_compute_error(), libMesh::PetscDMWrapper::add_dofs_helper(), assemble_matrix_and_rhs(), assemble_shell(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::ExodusII_IO::copy_nodal_solution(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::ExactErrorEstimator::find_squared_element_error(), libMesh::EquationSystems::find_variable_numbers(), libMesh::System::get_info(), main(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), libMesh::System::read_serialized_blocked_dof_objects(), LinearElasticityWithContact::residual_and_jacobian(), SolidSystem::save_initial_mesh(), libMesh::HPCoarsenTest::select_refinement(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::MeshfreeSolutionTransfer::transfer(), libMesh::BoundaryVolumeSolutionTransfer::transfer_boundary_volume(), libMesh::BoundaryVolumeSolutionTransfer::transfer_volume_boundary(), libMesh::DTKAdapter::update_variable_values(), libMesh::System::write_parallel_data(), libMesh::System::write_serialized_blocked_dof_objects(), and libMesh::System::zero_variable().
|
inherited |
var
at the physical point p
in the mesh, similarly to point_value. Definition at line 2100 of file system.C.
References libMesh::Variable::active_subdomains(), libMesh::ParallelObject::comm(), libMesh::PointLocatorBase::enable_out_of_mesh_mode(), libMesh::System::get_dof_map(), libMesh::System::get_mesh(), libMesh::libmesh_assert(), mesh, libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), and libMesh::System::variable().
Referenced by line_print(), and libMesh::System::point_gradient().
|
inherited |
var
at the physical point p
in local Elem e
in the mesh, similarly to point_value. Definition at line 2162 of file system.C.
References libMesh::FEInterface::compute_data(), libMesh::Elem::contains_point(), libMesh::System::current_local_solution, dim, libMesh::Elem::dim(), libMesh::DofMap::dof_indices(), libMesh::FEComputeData::dshape, libMesh::FEComputeData::enable_derivative(), libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::FEMap::inverse_map(), libMesh::DofMap::is_evaluable(), libMesh::libmesh_assert(), libMesh::FEComputeData::local_transform, and libMesh::DofMap::variable_type().
|
inherited |
Calls the version of point_gradient() which takes a reference.
This function exists only to prevent people from calling the version of point_gradient() that has a boolean third argument, which would result in unnecessary PointLocator calls.
Definition at line 2227 of file system.C.
References libMesh::libmesh_assert(), and libMesh::System::point_gradient().
|
inherited |
Calls the parallel version of point_gradient().
This function exists only to prevent people from accidentally calling the version of point_gradient() that has a boolean third argument, which would result in incorrect output.
Definition at line 2235 of file system.C.
References libMesh::System::point_gradient().
|
inherited |
var
at the physical point p
in the mesh, similarly to point_value. Definition at line 2244 of file system.C.
References libMesh::Variable::active_subdomains(), libMesh::ParallelObject::comm(), libMesh::PointLocatorBase::enable_out_of_mesh_mode(), libMesh::System::get_dof_map(), libMesh::System::get_mesh(), libMesh::libmesh_assert(), mesh, libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), and libMesh::System::variable().
Referenced by libMesh::System::point_hessian().
|
inherited |
var
at the physical point p
in local Elem e
in the mesh, similarly to point_value. Definition at line 2305 of file system.C.
References libMesh::TypeTensor< T >::add_scaled(), libMesh::FEGenericBase< OutputType >::build(), libMesh::Elem::contains_point(), libMesh::System::current_local_solution, libMesh::Elem::dim(), libMesh::DofMap::dof_indices(), libMesh::System::get_dof_map(), libMesh::Elem::infinite(), libMesh::FEMap::inverse_map(), libMesh::DofMap::is_evaluable(), libMesh::libmesh_assert(), and libMesh::DofMap::variable_type().
|
inherited |
Calls the version of point_hessian() which takes a reference.
This function exists only to prevent people from calling the version of point_hessian() that has a boolean third argument, which would result in unnecessary PointLocator calls.
Definition at line 2367 of file system.C.
References libMesh::libmesh_assert(), and libMesh::System::point_hessian().
|
inherited |
Calls the parallel version of point_hessian().
This function exists only to prevent people from accidentally calling the version of point_hessian() that has a boolean third argument, which would result in incorrect output.
Definition at line 2375 of file system.C.
References libMesh::System::point_hessian().
|
inherited |
var
at the physical point p
in the mesh, without knowing a priori which element contains p
, using the degree of freedom coefficients in sol
(or in current_local_solution
if sol
is left null).MeshBase::sub_point_locator()
; users may or may not want to call MeshBase::clear_point_locator()
afterward. Also, point_locator() is expensive (N log N for initial construction, log N for evaluations). Avoid using this function in any context where you are already looping over elements.Because the element containing p
may lie on any processor, this function is parallel-only.
By default this method expects the point to reside inside the domain and will abort if no element can be found which contains p
. The optional parameter insist_on_success
can be set to false to allow the method to return 0 when the point is not located.
Definition at line 1971 of file system.C.
References libMesh::Variable::active_subdomains(), libMesh::ParallelObject::comm(), libMesh::PointLocatorBase::enable_out_of_mesh_mode(), libMesh::System::get_dof_map(), libMesh::System::get_mesh(), libMesh::libmesh_assert(), mesh, libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), libMesh::DofObject::processor_id(), and libMesh::System::variable().
Referenced by line_print(), main(), libMesh::System::point_value(), DefaultCouplingTest::testCoupling(), PointNeighborCouplingTest::testCoupling(), MeshInputTest::testExodusCopyElementSolution(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), SystemsTest::testProjectCubeWithMeshFunction(), and EquationSystemsTest::testRepartitionThenReinit().
|
inherited |
var
at the physical point p
contained in local Elem e
, using the degree of freedom coefficients in sol
(or in current_local_solution
if sol
is left null).This version of point_value can be run in serial, but assumes e
is in the local mesh partition or is algebraically ghosted.
Definition at line 2032 of file system.C.
References libMesh::FEInterface::compute_data(), libMesh::Elem::contains_point(), libMesh::System::current_local_solution, libMesh::Elem::dim(), libMesh::DofMap::dof_indices(), libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::FEMap::inverse_map(), libMesh::DofMap::is_evaluable(), libMesh::libmesh_assert(), and libMesh::DofMap::variable_type().
|
inherited |
Calls the version of point_value() which takes a reference.
This function exists only to prevent people from calling the version of point_value() that has a boolean third argument, which would result in unnecessary PointLocator calls.
Definition at line 2084 of file system.C.
References libMesh::libmesh_assert(), and libMesh::System::point_value().
|
inherited |
Calls the parallel version of point_value().
This function exists only to prevent people from accidentally calling the version of point_value() that has a boolean third argument, which would result in incorrect output.
Definition at line 2092 of file system.C.
References libMesh::System::point_value().
|
inlineprotectedvirtualinherited |
This function is called from add_scaled_matrix_and_vector() before each element matrix and vector are assembled into their global counterparts.
By default it is a no-op, but it could be used to apply any user-defined transformations immediately prior to assembly. We use DGFEMContext since it allows for both DG and continuous Galerkin formulations.
Definition at line 641 of file rb_construction.h.
Referenced by libMesh::RBConstruction::add_scaled_matrix_and_vector().
|
inlineprotectedvirtualinherited |
Similarly, provide an opportunity to post-process the truth solution after the solve is complete.
By default this is a no-op, but it could be used to apply any required user-defined post processing to the solution vector. Note: the truth solution is stored in the "solution" member of this class, which is inherited from the parent System class several levels up.
Definition at line 651 of file rb_construction.h.
Referenced by libMesh::RBConstruction::enrich_basis_from_rhs_terms(), and libMesh::RBConstruction::truth_solve().
|
inherited |
Print out a matrix that shows the orthogonality of the RB basis functions.
This is a helpful debugging tool, e.g. orthogonality can be degraded due to finite precision arithmetic.
Definition at line 348 of file rb_construction.C.
References libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::out, libMesh::System::solution, value, and libMesh::SparseMatrix< T >::vector_mult().
Referenced by main().
|
inherited |
Print out all the discrete parameter values.
Definition at line 389 of file rb_parametrized.C.
References libMesh::RBParametrized::get_discrete_parameter_values(), libMesh::out, and value.
Referenced by libMesh::RBSCMConstruction::print_info(), and libMesh::RBConstruction::print_info().
|
virtualinherited |
Print out info that describes the current setup of this RBConstruction.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 312 of file rb_construction.C.
References libMesh::RBConstruction::get_abs_training_tolerance(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBParametrized::get_n_params(), libMesh::RBConstructionBase< LinearImplicitSystem >::get_n_training_samples(), libMesh::RBConstruction::get_normalize_rb_bound_in_greedy(), libMesh::RBParametrized::get_parameter_max(), libMesh::RBParametrized::get_parameter_min(), libMesh::RBParametrized::get_parameters(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstruction::get_rel_training_tolerance(), libMesh::RBParametrized::is_discrete_parameter(), libMesh::RBConstructionBase< LinearImplicitSystem >::is_quiet(), libMesh::RBConstruction::is_rb_eval_initialized(), libMesh::System::name(), libMesh::RBConstruction::Nmax, libMesh::out, and libMesh::RBParametrized::print_discrete_parameter_values().
Referenced by main(), libMesh::RBEIMConstruction::print_info(), and libMesh::TransientRBConstruction::print_info().
|
staticinherited |
Prints the reference information, by default to libMesh::out
.
Definition at line 87 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter, and libMesh::ReferenceCounter::get_info().
|
staticinherited |
Prints the reference information, by default to libMesh::out
.
Definition at line 87 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter, and libMesh::ReferenceCounter::get_info().
|
inherited |
Print the current parameters.
Definition at line 206 of file rb_parametrized.C.
References libMesh::RBParametrized::get_parameters(), libMesh::RBParametrized::parameters_initialized, and libMesh::RBParameters::print().
Referenced by libMesh::RBConstruction::train_reduced_basis().
|
virtualinherited |
Read in from the file specified by parameters_filename
and set the this system's member variables accordingly.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 193 of file rb_construction.C.
References libMesh::RBConstruction::abs_training_tolerance, libMesh::RBConstruction::Nmax, libMesh::RBConstructionBase< LinearImplicitSystem >::quiet_mode, libMesh::Real, libMesh::RBConstruction::rel_training_tolerance, libMesh::RBConstruction::set_rb_construction_parameters(), and libMesh::RBParameters::set_value().
Referenced by main(), libMesh::RBEIMConstruction::process_parameters_file(), and libMesh::TransientRBConstruction::process_parameters_file().
|
inlineinherited |
Definition at line 106 of file parallel_object.h.
References libMesh::ParallelObject::_communicator.
Referenced by libMesh::BoundaryInfo::_find_id_maps(), libMesh::EquationSystems::_read_impl(), libMesh::PetscDMWrapper::add_dofs_to_section(), libMesh::DistributedMesh::add_elem(), libMesh::BoundaryInfo::add_elements(), libMesh::DofMap::add_neighbors_to_send_list(), libMesh::DistributedMesh::add_node(), libMesh::UnstructuredMesh::all_second_order(), libMesh::MeshTools::Modification::all_tri(), libMesh::DofMap::allgather_recursive_constraints(), libMesh::FEMSystem::assembly(), libMesh::Nemesis_IO_Helper::build_element_and_node_maps(), libMesh::InfElemBuilder::build_inf_elem(), libMesh::BoundaryInfo::build_node_list_from_side_list(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::DistributedMesh::clear(), libMesh::ExodusII_IO_Helper::close(), libMesh::Nemesis_IO_Helper::compute_border_node_ids(), libMesh::Nemesis_IO_Helper::compute_communication_map_parameters(), libMesh::Nemesis_IO_Helper::compute_internal_and_border_elems_and_internal_nodes(), libMesh::RBConstruction::compute_max_error_bound(), libMesh::Nemesis_IO_Helper::compute_node_communication_maps(), libMesh::Nemesis_IO_Helper::compute_num_global_elem_blocks(), libMesh::Nemesis_IO_Helper::compute_num_global_nodesets(), libMesh::Nemesis_IO_Helper::compute_num_global_sidesets(), libMesh::Nemesis_IO_Helper::construct_nemesis_filename(), libMesh::ExodusII_IO::copy_scalar_solution(), libMesh::MeshTools::correct_node_proc_ids(), libMesh::ExodusII_IO_Helper::create(), libMesh::DistributedMesh::delete_elem(), libMesh::DistributedMesh::delete_node(), libMesh::MeshCommunication::delete_remote_elements(), libMesh::DofMap::distribute_dofs(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), libMesh::DistributedMesh::DistributedMesh(), libMesh::DofMap::end_dof(), libMesh::DofMap::end_old_dof(), libMesh::EnsightIO::EnsightIO(), libMesh::RBEIMConstruction::evaluate_mesh_function(), libMesh::MeshFunction::find_element(), libMesh::MeshFunction::find_elements(), libMesh::UnstructuredMesh::find_neighbors(), libMesh::DofMap::first_dof(), libMesh::DofMap::first_old_dof(), libMesh::Nemesis_IO_Helper::get_cmap_params(), libMesh::Nemesis_IO_Helper::get_eb_info_global(), libMesh::Nemesis_IO_Helper::get_elem_cmap(), libMesh::Nemesis_IO_Helper::get_elem_map(), libMesh::DofMap::get_info(), libMesh::Nemesis_IO_Helper::get_init_global(), libMesh::Nemesis_IO_Helper::get_init_info(), libMesh::Nemesis_IO_Helper::get_loadbal_param(), libMesh::DofMap::get_local_constraints(), libMesh::Nemesis_IO_Helper::get_node_cmap(), libMesh::Nemesis_IO_Helper::get_node_map(), libMesh::Nemesis_IO_Helper::get_ns_param_global(), libMesh::Nemesis_IO_Helper::get_ss_param_global(), libMesh::SparsityPattern::Build::handle_vi_vj(), libMesh::SystemSubsetBySubdomain::init(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), HeatSystem::init_data(), libMesh::ExodusII_IO_Helper::initialize(), libMesh::ExodusII_IO_Helper::initialize_element_variables(), libMesh::ExodusII_IO_Helper::initialize_global_variables(), libMesh::ExodusII_IO_Helper::initialize_nodal_variables(), libMesh::DistributedMesh::insert_elem(), libMesh::DofMap::is_evaluable(), libMesh::SparsityPattern::Build::join(), libMesh::DofMap::last_dof(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEIMEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBSCMEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEIMEvaluation::legacy_write_out_interpolation_points_elem(), libMesh::MeshTools::libmesh_assert_consistent_distributed(), libMesh::MeshTools::libmesh_assert_consistent_distributed_nodes(), libMesh::MeshTools::libmesh_assert_contiguous_dof_ids(), libMesh::MeshTools::libmesh_assert_parallel_consistent_procids< Elem >(), libMesh::MeshTools::libmesh_assert_valid_neighbors(), libMesh::DistributedMesh::libmesh_assert_valid_parallel_object_ids(), libMesh::DofMap::local_variable_indices(), main(), libMesh::MeshRefinement::make_coarsening_compatible(), AugmentSparsityOnInterface::mesh_reinit(), libMesh::MeshBase::n_active_local_elem(), libMesh::BoundaryInfo::n_boundary_conds(), libMesh::BoundaryInfo::n_edge_conds(), libMesh::DofMap::n_local_dofs(), libMesh::System::n_local_dofs(), libMesh::MeshBase::n_local_elem(), libMesh::MeshBase::n_local_nodes(), libMesh::BoundaryInfo::n_nodeset_conds(), libMesh::BoundaryInfo::n_shellface_conds(), libMesh::SparsityPattern::Build::operator()(), libMesh::DistributedMesh::own_node(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::DofMap::print_dof_constraints(), libMesh::Nemesis_IO_Helper::put_cmap_params(), libMesh::Nemesis_IO_Helper::put_elem_cmap(), libMesh::Nemesis_IO_Helper::put_elem_map(), libMesh::Nemesis_IO_Helper::put_loadbal_param(), libMesh::Nemesis_IO_Helper::put_node_cmap(), libMesh::Nemesis_IO_Helper::put_node_map(), libMesh::NameBasedIO::read(), libMesh::Nemesis_IO::read(), libMesh::XdrIO::read(), libMesh::CheckpointIO::read(), libMesh::ExodusII_IO_Helper::read_elem_num_map(), libMesh::ExodusII_IO_Helper::read_global_values(), libMesh::CheckpointIO::read_header(), libMesh::XdrIO::read_header(), libMesh::System::read_header(), libMesh::RBEvaluation::read_in_vectors_from_multiple_files(), libMesh::System::read_legacy_data(), libMesh::ExodusII_IO_Helper::read_node_num_map(), libMesh::System::read_parallel_data(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::System::read_SCALAR_dofs(), libMesh::XdrIO::read_serialized_bc_names(), libMesh::XdrIO::read_serialized_bcs_helper(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::XdrIO::read_serialized_connectivity(), libMesh::System::read_serialized_data(), libMesh::XdrIO::read_serialized_nodes(), libMesh::XdrIO::read_serialized_nodesets(), libMesh::XdrIO::read_serialized_subdomain_names(), libMesh::System::read_serialized_vector(), libMesh::System::read_serialized_vectors(), libMesh::DistributedMesh::renumber_dof_objects(), libMesh::DofMap::scatter_constraints(), libMesh::CheckpointIO::select_split_config(), libMesh::DofMap::set_nonlocal_dof_objects(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::LaplaceMeshSmoother::smooth(), DefaultCouplingTest::testCoupling(), PointNeighborCouplingTest::testCoupling(), MeshInputTest::testDynaReadElem(), MeshInputTest::testDynaReadPatch(), MeshInputTest::testExodusCopyElementSolution(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), SystemsTest::testProjectMatrix3D(), BoundaryInfoTest::testShellFaceConstraints(), CheckpointIOTest::testSplitter(), WriteVecAndScalar::testWrite(), libMesh::MeshTools::total_weight(), libMesh::MeshRefinement::uniformly_coarsen(), libMesh::Parallel::Packing< Node * >::unpack(), libMesh::Parallel::Packing< Elem * >::unpack(), libMesh::DistributedMesh::update_parallel_id_counts(), libMesh::DTKAdapter::update_variable_values(), libMesh::NameBasedIO::write(), libMesh::XdrIO::write(), libMesh::CheckpointIO::write(), libMesh::EquationSystems::write(), libMesh::GMVIO::write_discontinuous_gmv(), libMesh::ExodusII_IO::write_element_data(), libMesh::ExodusII_IO_Helper::write_element_values(), libMesh::ExodusII_IO_Helper::write_element_values_element_major(), libMesh::ExodusII_IO_Helper::write_elements(), libMesh::ExodusII_IO::write_global_data(), libMesh::ExodusII_IO_Helper::write_global_values(), libMesh::System::write_header(), libMesh::ExodusII_IO::write_information_records(), libMesh::ExodusII_IO_Helper::write_information_records(), libMesh::ExodusII_IO_Helper::write_nodal_coordinates(), libMesh::VTKIO::write_nodal_data(), libMesh::UCDIO::write_nodal_data(), libMesh::ExodusII_IO::write_nodal_data(), libMesh::ExodusII_IO::write_nodal_data_discontinuous(), libMesh::ExodusII_IO_Helper::write_nodal_values(), libMesh::Nemesis_IO_Helper::write_nodesets(), libMesh::ExodusII_IO_Helper::write_nodesets(), libMesh::RBEvaluation::write_out_vectors(), write_output_solvedata(), libMesh::System::write_parallel_data(), libMesh::RBConstruction::write_riesz_representors_to_files(), libMesh::System::write_SCALAR_dofs(), libMesh::XdrIO::write_serialized_bc_names(), libMesh::XdrIO::write_serialized_bcs_helper(), libMesh::System::write_serialized_blocked_dof_objects(), libMesh::XdrIO::write_serialized_connectivity(), libMesh::System::write_serialized_data(), libMesh::XdrIO::write_serialized_nodes(), libMesh::XdrIO::write_serialized_nodesets(), libMesh::XdrIO::write_serialized_subdomain_names(), libMesh::System::write_serialized_vector(), libMesh::System::write_serialized_vectors(), libMesh::ExodusII_IO_Helper::write_sideset_data(), libMesh::Nemesis_IO_Helper::write_sidesets(), libMesh::ExodusII_IO_Helper::write_sidesets(), libMesh::ExodusII_IO::write_timestep(), libMesh::ExodusII_IO_Helper::write_timestep(), and libMesh::ExodusII_IO::write_timestep_discontinuous().
|
inherited |
Projects arbitrary functions onto the current solution.
This method projects an arbitrary function onto the solution via L2 projections and nodal interpolations on each element.
The function value f
and its gradient g
are user-provided cloneable functors. A gradient g
is only required/used for projecting onto finite element spaces with continuous derivatives. If non-default Parameters
are to be used, they can be provided in the parameters
argument.
Definition at line 963 of file system_projection.C.
|
inherited |
Projects arbitrary functions onto the current solution.
This method projects an arbitrary function onto the solution via L2 projections and nodal interpolations on each element.
The function value f
and its gradient g
are user-provided cloneable functors. A gradient g
is only required/used for projecting onto finite element spaces with continuous derivatives. If non-default Parameters
are to be used, they can be provided in the parameters
argument.
Definition at line 950 of file system_projection.C.
Referenced by init_sys(), initialize(), main(), FETest< order, family, elem_type >::setUp(), SlitMeshRefinedSystemTest::setUp(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), DefaultCouplingTest::testCoupling(), PointNeighborCouplingTest::testCoupling(), MeshInputTest::testExodusCopyElementSolution(), SystemsTest::testProjectCubeWithMeshFunction(), EquationSystemsTest::testRepartitionThenReinit(), and libMesh::MeshfreeSolutionTransfer::transfer().
|
inherited |
This method projects an arbitrary function onto the solution via L2 projections and nodal interpolations on each element.
Definition at line 936 of file system_projection.C.
|
inlineinherited |
Tells the System whether or not to project the solution vector onto new grids when the system is reinitialized.
The solution will be projected unless project_solution_on_reinit() = false is called.
Definition at line 802 of file system.h.
References libMesh::System::_solution_projection.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), and libMesh::MemorySolutionHistory::store().
|
protectedinherited |
Projects the vector defined on the old mesh onto the new mesh.
This method projects the vector via L2 projections or nodal interpolations on each element.
The original vector is unchanged and the new vector is passed through the second argument.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
This method projects a solution from an old mesh to a current, refined mesh. The input vector old_v
gives the solution on the old mesh, while the new_v
gives the solution (to be computed) on the new mesh.
Definition at line 270 of file system_projection.C.
References libMesh::NumericVector< T >::clear(), libMesh::NumericVector< T >::close(), libMesh::NumericVector< T >::get(), libMesh::GHOSTED, libMesh::index_range(), libMesh::NumericVector< T >::init(), libMesh::Utility::iota(), libMesh::libmesh_assert(), libMesh::libmesh_ignore(), libMesh::NumericVector< T >::local_size(), libMesh::NumericVector< T >::localize(), n_vars, libMesh::PARALLEL, libMesh::Threads::parallel_reduce(), libMesh::SCALAR, libMesh::DofMap::SCALAR_dof_indices(), libMesh::BuildProjectionList::send_list, libMesh::SERIAL, libMesh::NumericVector< T >::set(), libMesh::NumericVector< T >::size(), libMesh::NumericVector< T >::type(), and libMesh::BuildProjectionList::unique().
|
protectedinherited |
Projects the vector defined on the old mesh onto the new mesh.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
Definition at line 252 of file system_projection.C.
References libMesh::NumericVector< T >::clone().
|
inherited |
Projects arbitrary functions onto a vector of degree of freedom values for the current system.
This method projects an arbitrary function via L2 projections and nodal interpolations on each element.
The function value f
and its gradient g
are user-provided cloneable functors. A gradient g
is only required/used for projecting onto finite element spaces with continuous derivatives. If non-default Parameters
are to be used, they can be provided in the parameters
argument.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
Definition at line 1017 of file system_projection.C.
References libMesh::NumericVector< T >::close(), libMesh::FEMFunctionBase< Output >::component(), libMesh::Utility::iota(), libMesh::libmesh_assert(), libMesh::libmesh_ignore(), n_vars, libMesh::FEMContext::pre_fe_reinit(), libMesh::SCALAR, libMesh::DofMap::SCALAR_dof_indices(), and libMesh::NumericVector< T >::set().
|
inherited |
Projects arbitrary functions onto a vector of degree of freedom values for the current system.
This method projects an arbitrary function via L2 projections and nodal interpolations on each element.
The function value f
and its gradient g
are user-provided cloneable functors. A gradient g
is only required/used for projecting onto finite element spaces with continuous derivatives. If non-default Parameters
are to be used, they can be provided in the parameters
argument.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
Definition at line 991 of file system_projection.C.
References libMesh::libmesh_assert().
Referenced by main(), libMesh::NewmarkSolver::project_initial_accel(), libMesh::SecondOrderUnsteadySolver::project_initial_rate(), and libMesh::System::restrict_vectors().
|
inherited |
Projects arbitrary functions onto a vector of degree of freedom values for the current system.
This method projects an arbitrary function via L2 projections and nodal interpolations on each element.
The function value fptr
and its gradient gptr
are represented by function pointers. A gradient gptr
is only required/used for projecting onto finite element spaces with continuous derivatives.
Constrain the new vector using the requested adjoint rather than primal constraints if is_adjoint is non-negative.
Definition at line 976 of file system_projection.C.
|
inherited |
This method creates a projection matrix which corresponds to the operation of project_vector between old and new solution spaces.
Heterogeneous Dirichlet boundary conditions are not taken into account here; if this matrix is used for prolongation (mesh refinement) on a side with a heterogeneous BC, the newly created degrees of freedom on that side will still match the coarse grid approximation of the BC, not the fine grid approximation.
Definition at line 870 of file system_projection.C.
References libMesh::Utility::iota(), n_vars, libMesh::SCALAR, libMesh::DofMap::SCALAR_dof_indices(), and libMesh::SparseMatrix< T >::set().
Referenced by libMesh::PetscDMWrapper::init_and_attach_petscdm(), SystemsTest::testProjectMatrix1D(), SystemsTest::testProjectMatrix2D(), and SystemsTest::testProjectMatrix3D().
|
virtualinherited |
Prolong vectors after the mesh has refined.
Definition at line 380 of file system.C.
References libMesh::System::restrict_vectors().
Referenced by libMesh::EquationSystems::reinit_solutions().
|
overridevirtualinherited |
For each of the system's quantities of interest q in qoi
[qoi_indices], and for a vector of parameters p, the parameter sensitivity Hessian H_ij is defined as H_ij = (d^2 q)/(d p_i d p_j) This Hessian is the output of this method, where for each q_i, H_jk is stored in hessian.second_derivative(i,j,k)
.
Note that in some cases only current_local_solution is used during assembly, and, therefore, if solution has been altered without update() being called, then the user must call update() before calling this function.
Reimplemented from libMesh::System.
Definition at line 1091 of file implicit_system.C.
References libMesh::ImplicitSystem::adjoint_solve(), libMesh::SensitivityData::allocate_hessian_data(), libMesh::ExplicitSystem::assemble_qoi(), libMesh::ExplicitSystem::assemble_qoi_derivative(), libMesh::ImplicitSystem::assembly(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::NumericVector< T >::dot(), libMesh::System::get_adjoint_rhs(), libMesh::System::get_adjoint_solution(), libMesh::System::get_sensitivity_solution(), libMesh::QoISet::has_index(), libMesh::System::is_adjoint_already_solved(), libMesh::ImplicitSystem::matrix, libMesh::System::n_qois(), libMesh::System::qoi, libMesh::Real, libMesh::ExplicitSystem::rhs, libMesh::SensitivityData::second_derivative(), libMesh::ImplicitSystem::sensitivity_solve(), libMesh::ParameterVector::size(), libMesh::System::solution, libMesh::TOLERANCE, libMesh::System::update(), and libMesh::SparseMatrix< T >::vector_mult().
|
overridevirtualinherited |
For each of the system's quantities of interest q in qoi
[qoi_indices], and for a vector of parameters p, the parameter sensitivity Hessian H_ij is defined as H_ij = (d^2 q)/(d p_i d p_j) The Hessian-vector product, for a vector v_k in parameter space, is S_j = H_jk v_k This product is the output of this method, where for each q_i, S_j is stored in sensitivities
[i][j].
Reimplemented from libMesh::System.
Definition at line 886 of file implicit_system.C.
References libMesh::ImplicitSystem::adjoint_solve(), libMesh::SensitivityData::allocate_data(), libMesh::ExplicitSystem::assemble_qoi(), libMesh::ExplicitSystem::assemble_qoi_derivative(), libMesh::ImplicitSystem::assembly(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::ParameterVector::deep_copy(), libMesh::NumericVector< T >::dot(), libMesh::System::get_adjoint_rhs(), libMesh::System::get_adjoint_solution(), libMesh::System::get_weighted_sensitivity_adjoint_solution(), libMesh::System::get_weighted_sensitivity_solution(), libMesh::QoISet::has_index(), libMesh::System::is_adjoint_already_solved(), libMesh::ImplicitSystem::matrix, libMesh::System::n_qois(), libMesh::System::qoi, libMesh::Real, libMesh::ExplicitSystem::rhs, libMesh::ParameterVector::size(), libMesh::System::solution, libMesh::TOLERANCE, libMesh::ParameterVector::value_copy(), libMesh::SparseMatrix< T >::vector_mult(), libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve(), and libMesh::ImplicitSystem::weighted_sensitivity_solve().
|
virtualinherited |
Solves for the derivative of each of the system's quantities of interest q in qoi
[qoi_indices] with respect to each parameter in parameters
, placing the result for qoi i
and parameter j
into sensitivities
[i][j].
parameters
is a const vector, not a vector-of-const; parameter values in this vector need to be mutable for finite differencing to work.Automatically chooses the forward method for problems with more quantities of interest than parameters, or the adjoint method otherwise.
This method is only usable in derived classes which override an implementation.
Definition at line 498 of file system.C.
References libMesh::System::adjoint_qoi_parameter_sensitivity(), libMesh::System::forward_qoi_parameter_sensitivity(), libMesh::ParameterVector::size(), and libMesh::QoISet::size().
|
virtualinherited |
Re-update the local values when the mesh has changed.
This method takes the data updated by update()
and makes it up-to-date on the current mesh.
Reimplemented in libMesh::TransientSystem< RBConstruction >.
Definition at line 429 of file system.C.
References libMesh::System::current_local_solution, libMesh::System::get_dof_map(), libMesh::DofMap::get_send_list(), libMesh::System::n_vars(), and libMesh::System::solution.
|
privateinherited |
Read in the discrete parameter values from file, if we have any.
Definition at line 340 of file rb_parametrized.C.
References libMesh::DECODE, and libMesh::READ.
Referenced by libMesh::RBParametrized::read_parameter_data_from_files().
|
inherited |
Reads the basic data header for this System.
Definition at line 114 of file system_io.C.
References libMesh::System::_additional_data_written, libMesh::System::_written_var_indices, libMesh::System::add_variable(), libMesh::System::add_vector(), libMesh::System::clear(), libMesh::ParallelObject::comm(), libMesh::Xdr::data(), libMesh::FEType::family, libMesh::System::get_mesh(), libMesh::OrderWrapper::get_order(), libMesh::FEType::inf_map, libMesh::libmesh_assert(), libMesh::MeshBase::mesh_dimension(), libMesh::MONOMIAL, libMesh::on_command_line(), libMesh::FEType::order, libMesh::out, libMesh::ParallelObject::processor_id(), libMesh::FEType::radial_family, libMesh::FEType::radial_order, libMesh::Xdr::reading(), libMesh::System::variable_number(), libMesh::Xdr::version(), and libMesh::XYZ.
Referenced by libMesh::EquationSystems::_read_impl(), and libMesh::RBEvaluation::read_in_vectors_from_multiple_files().
|
inherited |
Reads additional data, namely vectors, for this System.
Definition at line 309 of file system_io.C.
References libMesh::System::_additional_data_written, libMesh::System::_vectors, libMesh::System::_written_var_indices, libMesh::ParallelObject::comm(), libMesh::Xdr::data(), libMesh::System::get_mesh(), libMesh::DofObject::invalid_id, libMesh::libmesh_assert(), libMesh::System::n_dofs(), libMesh::System::n_vars(), libMesh::System::number(), libMesh::ParallelObject::processor_id(), libMesh::Xdr::reading(), libMesh::System::solution, and libMesh::zero.
|
inherited |
Reads additional data, namely vectors, for this System.
This method may safely be called on a distributed-memory mesh. This method will read an individual file for each processor in the simulation where the local solution components for that processor are stored.
This method implements the output of the vectors contained in this System object, embedded in the output of an EquationSystems<T_sys>.
9.) The global solution vector, re-ordered to be node-major (More on this later.)
for each additional vector in the object
10.) The global additional vector, re-ordered to be node-major (More on this later.)
Note that the actual IO is handled through the Xdr class (to be renamed later?) which provides a uniform interface to both the XDR (eXternal Data Representation) interface and standard ASCII output. Thus this one section of code will read XDR or ASCII files with no changes.
Definition at line 492 of file system_io.C.
References libMesh::System::_additional_data_written, libMesh::System::_vectors, libMesh::System::_written_var_indices, libMesh::Xdr::data(), libMesh::FEType::family, libMesh::System::get_dof_map(), libMesh::System::get_mesh(), libMesh::DofObject::invalid_id, libMesh::Xdr::is_open(), libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::System::n_vars(), libMesh::System::number(), libMesh::ParallelObject::processor_id(), libMesh::Xdr::reading(), libMesh::SCALAR, libMesh::DofMap::SCALAR_dof_indices(), libMesh::System::solution, libMesh::Variable::type(), and libMesh::System::variable().
|
inlineinherited |
Non-templated version for backward compatibility.
Reads additional data, namely vectors, for this System. This method may safely be called on a distributed-memory mesh. This method will read an individual file for each processor in the simulation where the local solution components for that processor are stored.
|
inherited |
Read in the parameter ranges from files.
Definition at line 284 of file rb_parametrized.C.
References libMesh::RBParametrized::initialize_parameters(), libMesh::RBParametrized::read_discrete_parameter_values_from_file(), and libMesh::RBParametrized::read_parameter_ranges_from_file().
Referenced by libMesh::RBEvaluation::legacy_read_offline_data_from_files(), and libMesh::RBSCMEvaluation::legacy_read_offline_data_from_files().
|
privateinherited |
Read in the parameter ranges from file.
Initialize parameters to the "minimum" parameter values.
Definition at line 303 of file rb_parametrized.C.
References libMesh::Xdr::close(), libMesh::DECODE, libMesh::READ, libMesh::Real, and libMesh::RBParameters::set_value().
Referenced by libMesh::RBParametrized::read_parameter_data_from_files().
|
virtualinherited |
Read in all the Riesz representor data from files.
directory_name
specifies which directory to read from. io_flag
specifies whether we read in all data, or only a basis (in)dependent subset.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 2140 of file rb_construction.C.
References libMesh::RBEvaluation::Aq_representor, libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::DECODE, libMesh::RBConstruction::Fq_representor, libMesh::RBConstruction::Fq_representor_innerprods_computed, libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::index_range(), libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::out, libMesh::PARALLEL, libMesh::ParallelObject::processor_id(), libMesh::READ, libMesh::System::read_serialized_data(), and libMesh::System::solution.
|
privateinherited |
Reads the SCALAR dofs from the stream io
and assigns the values to the appropriate entries of vec
.
Reads data and discards it if vec
is a null pointer.
Definition at line 1120 of file system_io.C.
References libMesh::ParallelObject::comm(), libMesh::Xdr::data_stream(), libMesh::System::get_dof_map(), libMesh::OrderWrapper::get_order(), libMesh::index_range(), libMesh::ParallelObject::n_processors(), libMesh::FEType::order, libMesh::ParallelObject::processor_id(), libMesh::DofMap::SCALAR_dof_indices(), libMesh::NumericVector< T >::set(), libMesh::Variable::type(), and libMesh::System::variable().
Referenced by libMesh::System::read_serialized_vector(), and libMesh::System::read_serialized_vectors().
|
privateinherited |
Reads an input vector from the stream io
and assigns the values to a set of DofObjects
.
This method uses blocked input and is safe to call on a distributed memory-mesh. Unless otherwise specified, all variables are read.
If an entry in vecs
is a null pointer, the corresponding data is read (incrementing the file read location) but discarded.
Definition at line 810 of file system_io.C.
References libMesh::System::_written_var_indices, libMesh::ParallelObject::comm(), end, libMesh::MeshTools::Generation::Private::idx(), libMesh::index_range(), libMesh::invalid_uint, libMesh::Threads::NonConcurrentThread::join(), libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::System::n_vars(), libMesh::System::number(), and libMesh::ParallelObject::processor_id().
Referenced by libMesh::System::read_serialized_vector(), and libMesh::System::read_serialized_vectors().
|
inherited |
Reads additional data, namely vectors, for this System.
This method may safely be called on a distributed-memory mesh.
Definition at line 724 of file system_io.C.
References libMesh::System::_additional_data_written, libMesh::System::_vectors, libMesh::Xdr::comment(), libMesh::ParallelObject::processor_id(), and libMesh::System::solution.
Referenced by libMesh::TransientRBConstruction::initialize_truth(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), and libMesh::RBConstruction::read_riesz_representors_from_files().
|
inlineinherited |
|
inlineprivateinherited |
|
privateinherited |
Reads a vector for this System.
This method may safely be called on a distributed-memory mesh.
Reads data and discards it if vec
is a null pointer.
Definition at line 1167 of file system_io.C.
References libMesh::System::_written_var_indices, libMesh::NumericVector< T >::close(), libMesh::ParallelObject::comm(), libMesh::Xdr::data(), libMesh::System::get_mesh(), libMesh::GHOSTED, libMesh::libmesh_assert(), libMesh::MeshBase::n_elem(), libMesh::MeshTools::n_elem(), n_nodes, libMesh::MeshBase::n_nodes(), libMesh::ParallelObject::n_processors(), libMesh::System::n_vars(), libMesh::PARALLEL, libMesh::ParallelObject::processor_id(), libMesh::System::read_SCALAR_dofs(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::Xdr::reading(), libMesh::SCALAR, libMesh::NumericVector< T >::type(), libMesh::System::variable(), and libMesh::Xdr::version().
|
inherited |
Read a number of identically distributed vectors.
This method allows for optimization for the multiple vector case by only communicating the metadata once.
Definition at line 2199 of file system_io.C.
References libMesh::Xdr::data(), libMesh::System::get_mesh(), libMesh::libmesh_assert(), libMesh::MeshBase::n_elem(), libMesh::MeshTools::n_elem(), n_nodes, libMesh::MeshBase::n_nodes(), libMesh::System::n_vars(), libMesh::ParallelObject::processor_id(), libMesh::System::read_SCALAR_dofs(), libMesh::System::read_serialized_blocked_dof_objects(), libMesh::Xdr::reading(), libMesh::SCALAR, and libMesh::System::variable().
Referenced by libMesh::RBEvaluation::read_in_vectors_from_multiple_files().
|
inlineinherited |
Non-templated version for backward compatibility.
Read a number of identically distributed vectors. This method allows for optimization for the multiple vector case by only communicating the metadata once.
|
virtualinherited |
This function computes all of the residual representors, can be useful when restarting a basis training computation.
If compute_inner_products
is false, we just compute the residual Riesz representors, whereas if true, we also compute all the corresponding inner product terms.
Definition at line 1380 of file rb_construction.C.
References libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::delta_N, libMesh::RBConstruction::Fq_representor_innerprods_computed, libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_rb_evaluation(), and libMesh::RBConstruction::update_residual_terms().
|
overridevirtualinherited |
Reinitializes the member data fields associated with the system, so that, e.g., assemble()
may be used.
Reimplemented from libMesh::ImplicitSystem.
Reimplemented in libMesh::NewmarkSystem.
Definition at line 85 of file linear_implicit_system.C.
References libMesh::LinearImplicitSystem::linear_solver, and libMesh::ImplicitSystem::reinit().
|
virtualinherited |
Reinitializes the constraints for this system.
Definition at line 397 of file system.C.
References libMesh::System::_mesh, libMesh::DofMap::create_dof_constraints(), libMesh::System::get_dof_map(), libMesh::DofMap::prepare_send_list(), libMesh::DofMap::process_constraints(), libMesh::System::time, and libMesh::System::user_constrain().
Referenced by libMesh::EquationSystems::allgather(), libMesh::PetscDMWrapper::init_and_attach_petscdm(), libMesh::System::init_data(), and libMesh::EquationSystems::reinit_solutions().
|
overridevirtualinherited |
Releases a pointer to a linear solver acquired by this->get_linear_solver()
Reimplemented from libMesh::ImplicitSystem.
Definition at line 360 of file linear_implicit_system.C.
|
inherited |
Removes the additional matrix mat_name
from this system.
Definition at line 221 of file implicit_system.C.
References libMesh::ImplicitSystem::_matrices.
Referenced by libMesh::ImplicitSystem::~ImplicitSystem().
|
inherited |
Removes the additional vector vec_name
from this system.
Definition at line 699 of file system.C.
References libMesh::System::_vector_is_adjoint, libMesh::System::_vector_projections, libMesh::System::_vector_types, and libMesh::System::_vectors.
|
inherited |
mat_name
, or nullptr
if no matrix by that name exists. Definition at line 249 of file implicit_system.C.
References libMesh::ImplicitSystem::_matrices.
|
inherited |
mat_name
, or nullptr
if no matrix by that name exists. Definition at line 236 of file implicit_system.C.
References libMesh::ImplicitSystem::_matrices.
Referenced by libMesh::ImplicitSystem::sensitivity_solve(), libMesh::NewtonSolver::solve(), and libMesh::LinearImplicitSystem::solve().
|
inherited |
System
has a vector associated with the given name, nullptr
otherwise. Definition at line 728 of file system.C.
References libMesh::System::_vectors.
|
inherited |
System
has a vector associated with the given name, nullptr
otherwise. Definition at line 716 of file system.C.
References libMesh::System::_vectors.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error().
|
inherited |
vec_num
(where the vectors are counted starting with 0), or nullptr
if the system has no such vector. Definition at line 757 of file system.C.
References libMesh::System::vectors_begin(), and libMesh::System::vectors_end().
|
inherited |
vec_num
(where the vectors are counted starting with 0), or nullptr
if the system has no such vector. Definition at line 740 of file system.C.
References libMesh::System::vectors_begin(), and libMesh::System::vectors_end().
|
overridevirtualinherited |
After calling this method, any solve will be limited to the given subset.
To disable this mode, call this method with subset
being a nullptr
.
Reimplemented from libMesh::System.
Definition at line 96 of file linear_implicit_system.C.
References libMesh::LinearImplicitSystem::_subset, libMesh::LinearImplicitSystem::_subset_solve_mode, and libMesh::SystemSubset::get_system().
Referenced by libMesh::LinearImplicitSystem::clear(), and main().
|
virtualinherited |
Restrict vectors after the mesh has coarsened.
Definition at line 324 of file system.C.
References libMesh::System::_dof_map, libMesh::System::_solution_projection, libMesh::System::_vector_projections, libMesh::System::_vector_types, libMesh::System::_vectors, libMesh::System::current_local_solution, libMesh::GHOSTED, libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::PARALLEL, libMesh::System::project_vector(), libMesh::System::solution, and libMesh::System::vector_is_adjoint().
Referenced by libMesh::System::prolong_vectors(), and libMesh::EquationSystems::reinit_solutions().
|
overridevirtualinherited |
Assembles & solves the linear system(s) (dR/du)*u_p = -dR/dp, for those parameters contained within parameters
.
Reimplemented from libMesh::System.
Definition at line 301 of file implicit_system.C.
References libMesh::System::add_sensitivity_solution(), libMesh::System::assemble_before_solve, libMesh::ImplicitSystem::assemble_residual_derivatives(), libMesh::ImplicitSystem::assembly(), libMesh::SparseMatrix< T >::close(), libMesh::DofMap::enforce_constraints_exactly(), libMesh::System::get_dof_map(), libMesh::ImplicitSystem::get_linear_solve_parameters(), libMesh::ImplicitSystem::get_linear_solver(), libMesh::System::get_sensitivity_rhs(), libMesh::System::get_sensitivity_solution(), libMesh::ImplicitSystem::matrix, libMesh::ImplicitSystem::release_linear_solver(), libMesh::ImplicitSystem::request_matrix(), libMesh::ParameterVector::size(), and libMesh::LinearSolver< T >::solve().
Referenced by libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), and libMesh::ImplicitSystem::qoi_parameter_hessian().
|
inlineinherited |
Get/set the absolute tolerance for the basis training.
Definition at line 191 of file rb_construction.h.
References libMesh::RBConstruction::abs_training_tolerance.
Referenced by libMesh::RBConstruction::set_rb_construction_parameters().
|
inlineinherited |
Setter for the adjoint_already_solved boolean.
Definition at line 402 of file system.h.
References libMesh::System::adjoint_already_solved.
Referenced by main().
|
inlineinherited |
Sets the system to be "basic only": i.e.
advanced system components such as ImplicitSystem matrices may not be initialized. This is useful for efficiency in certain utility programs that never use System::solve(). This method must be called after the System or derived class is created but before it is initialized; e.g. from within EquationSystems::read()
Definition at line 2147 of file system.h.
References libMesh::System::_basic_system_only.
Referenced by libMesh::EquationSystems::_read_impl().
|
protectedvirtualinherited |
Set current_local_solution = vec so that we can access vec from FEMContext during assembly.
Override in subclasses if different behavior is required.
Definition at line 797 of file rb_construction.C.
References libMesh::System::current_local_solution, libMesh::System::get_dof_map(), and libMesh::NumericVector< T >::localize().
|
inherited |
Setter for the flag determining if convergence should be checked after each solve.
Definition at line 2250 of file rb_construction.C.
References libMesh::RBConstruction::assert_convergence.
|
inherited |
In some cases we only want to allow discrete parameter values, instead of parameters that may take any value in a specified interval.
Here we provide a method to set the d Set the discrete values for parameter mu
that are allowed in the training set. This must be called before the training set is generated. Set the name of the parameter that we will generate deterministic training parameters for. Defaults to "NONE".
|
inherited |
Set the number of times each sample of the deterministic training parameter is repeated.
|
inherited |
Specify the coefficients of the A_q operators to be used in the energy inner-product.
Definition at line 396 of file rb_construction.C.
References libMesh::RBConstruction::energy_inner_product_coeffs, and libMesh::RBConstruction::use_energy_inner_product.
|
inherited |
Set the rb_assembly_expansion object.
Definition at line 379 of file rb_construction.C.
References libMesh::RBConstruction::inner_product_assembly, and libMesh::RBConstruction::use_energy_inner_product.
Referenced by init_data().
|
virtualinherited |
Definition at line 1300 of file rb_construction.C.
References libMesh::RBConstruction::Nmax.
Referenced by libMesh::RBConstruction::set_rb_construction_parameters().
|
inlineinherited |
Get/set the boolean to indicate if we normalize the RB error in the greedy.
Definition at line 198 of file rb_construction.h.
References libMesh::RBConstruction::normalize_rb_bound_in_greedy.
Referenced by libMesh::RBConstruction::set_rb_construction_parameters().
|
inherited |
Set the current parameters to params
.
Definition at line 155 of file rb_parametrized.C.
References libMesh::RBParametrized::parameters, libMesh::RBParametrized::parameters_initialized, and libMesh::RBParametrized::valid_params().
Referenced by libMesh::RBEIMConstruction::compute_best_fit_error(), libMesh::RBSCMConstruction::compute_SCM_bounds_on_training_set(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::RBEIMTheta::evaluate(), libMesh::RBConstruction::get_RB_error_bound(), SimpleRBEvaluation::get_stability_lower_bound(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBSCMEvaluation::reload_current_parameters(), libMesh::RBSCMEvaluation::set_current_parameters_from_C_J(), and libMesh::RBEIMConstruction::truth_solve().
|
protectedinherited |
Set parameters to the RBParameters stored in index index
of the training set.
Definition at line 130 of file rb_construction_base.C.
|
protectedvirtualinherited |
Load the specified training parameter and then broadcast to all processors.
Definition at line 160 of file rb_construction_base.C.
|
inlineinherited |
Set the quiet_mode flag.
If quiet == false then we print out a lot of extra information during the Offline stage.
Definition at line 92 of file rb_construction_base.h.
|
inherited |
Set the rb_assembly_expansion object.
Definition at line 366 of file rb_construction.C.
References libMesh::RBConstruction::rb_assembly_expansion.
Referenced by init_data(), and libMesh::RBEIMConstruction::RBEIMConstruction().
|
inherited |
Set the state of this RBConstruction object based on the arguments to this function.
Definition at line 272 of file rb_construction.C.
References libMesh::RBParametrized::get_parameters_max(), libMesh::RBParametrized::get_parameters_min(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBConstructionBase< LinearImplicitSystem >::initialize_training_parameters(), libMesh::RBConstruction::set_abs_training_tolerance(), libMesh::RBConstruction::set_Nmax(), libMesh::RBConstruction::set_normalize_rb_bound_in_greedy(), libMesh::RBConstructionBase< LinearImplicitSystem >::set_quiet_mode(), libMesh::RBConstruction::set_rel_training_tolerance(), and libMesh::RBConstructionBase< LinearImplicitSystem >::set_training_random_seed().
Referenced by libMesh::RBConstruction::process_parameters_file().
|
inherited |
Set the RBEvaluation object.
Definition at line 170 of file rb_construction.C.
References libMesh::RBConstruction::rb_eval.
Referenced by main().
|
inlineinherited |
Get/set the relative tolerance for the basis training.
Definition at line 184 of file rb_construction.h.
References libMesh::RBConstruction::rel_training_tolerance.
Referenced by libMesh::RBConstruction::set_rb_construction_parameters().
|
inherited |
Set the seed that is used to randomly generate training parameters.
Definition at line 630 of file rb_construction_base.C.
|
inherited |
Allows one to set the QoI index controlling whether the vector identified by vec_name represents a solution from the adjoint (qoi_num >= 0) or primal (qoi_num == -1) space.
This becomes significant if those spaces have differing heterogeneous Dirichlet constraints.
qoi_num == -2 can be used to indicate a vector which should not be affected by constraints during projection operations.
Definition at line 873 of file system.C.
References libMesh::System::_vector_is_adjoint.
Referenced by libMesh::System::add_adjoint_solution(), and libMesh::System::add_weighted_sensitivity_adjoint_solution().
|
inherited |
Allows one to set the boolean controlling whether the vector identified by vec_name should be "preserved": projected to new meshes, saved, etc.
Definition at line 855 of file system.C.
References libMesh::System::_vector_projections.
Referenced by main().
|
overridevirtualinherited |
Assembles & solves the linear system A*x=b.
Reimplemented from libMesh::ImplicitSystem.
Reimplemented in libMesh::FrequencySystem.
Definition at line 108 of file linear_implicit_system.C.
References libMesh::LinearImplicitSystem::_final_linear_residual, libMesh::LinearImplicitSystem::_n_linear_iterations, libMesh::LinearImplicitSystem::_shell_matrix, libMesh::LinearImplicitSystem::_subset, libMesh::LinearImplicitSystem::_subset_solve_mode, libMesh::LinearImplicitSystem::assemble(), libMesh::System::assemble_before_solve, libMesh::SystemSubset::dof_ids(), libMesh::Parameters::get(), libMesh::System::get_equation_systems(), libMesh::LinearImplicitSystem::linear_solver, libMesh::ImplicitSystem::matrix, libMesh::System::name(), libMesh::on_command_line(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::ImplicitSystem::request_matrix(), libMesh::ExplicitSystem::rhs, libMesh::System::solution, and libMesh::System::update().
Referenced by assemble_and_solve(), main(), and SystemsTest::testDofCouplingWithVarGroups().
|
virtualinherited |
Assembles & solves the linear system A*x=b for the specified matrix input_matrix
and right-hand side rhs
.
Definition at line 130 of file rb_construction.C.
References libMesh::LinearImplicitSystem::_final_linear_residual, libMesh::LinearImplicitSystem::_n_linear_iterations, libMesh::DofMap::enforce_constraints_exactly(), libMesh::Parameters::get(), libMesh::System::get_dof_map(), libMesh::System::get_equation_systems(), libMesh::LinearSolver< T >::init(), libMesh::EquationSystems::parameters, libMesh::Real, libMesh::System::solution, libMesh::LinearSolver< T >::solve(), and libMesh::System::update().
Referenced by libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inlineinherited |
Definition at line 117 of file rb_construction.h.
|
overridevirtualinherited |
Reimplemented from libMesh::LinearImplicitSystem.
Reimplemented in libMesh::TransientSystem< RBConstruction >.
Definition at line 125 of file rb_construction.C.
|
virtualinherited |
Train the reduced basis.
This is the crucial function in the Offline stage: it generates the reduced basis using the "Greedy algorithm." Each stage of the Greedy algorithm involves solving the reduced basis over a large training set and selecting the parameter at which the reduced basis error bound is largest, then performing a truth_solve at that parameter and enriching the reduced basis with the corresponding snapshot.
resize_rb_eval_data
is a boolean flag to indicate whether or not we call rb_eval->resize_data_structures(Nmax). True by default, but we may set it to false if, for example, we are continuing from a previous training run and don't want to clobber the existing rb_eval data.
Reimplemented in libMesh::RBEIMConstruction, and libMesh::TransientRBConstruction.
Definition at line 1024 of file rb_construction.C.
References libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_max_error_bound(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::enrich_RB_space(), libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_Nmax(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBEvaluation::greedy_param_list, libMesh::RBConstruction::greedy_termination_test(), libMesh::RBParametrized::initialize_parameters(), libMesh::out, libMesh::RBParametrized::print_parameters(), libMesh::Real, libMesh::RBEvaluation::resize_data_structures(), libMesh::RBConstruction::skip_residual_in_train_reduced_basis, libMesh::RBConstruction::truth_solve(), libMesh::RBConstruction::update_greedy_param_list(), libMesh::RBConstruction::update_residual_terms(), libMesh::RBConstruction::update_system(), and libMesh::RBConstruction::use_empty_rb_solve_in_greedy.
Referenced by main(), libMesh::TransientRBConstruction::train_reduced_basis(), and libMesh::RBEIMConstruction::train_reduced_basis().
|
protectedvirtualinherited |
Assemble the truth matrix and right-hand side for current_parameters.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 805 of file rb_construction.C.
References libMesh::SparseMatrix< T >::add(), libMesh::NumericVector< T >::add(), libMesh::NumericVector< T >::build(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::ParallelObject::comm(), libMesh::RBConstruction::get_Aq(), libMesh::RBConstruction::get_Fq(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBParametrized::get_parameters(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::ImplicitSystem::matrix, libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::PARALLEL, libMesh::ExplicitSystem::rhs, libMesh::SparseMatrix< T >::zero(), and libMesh::NumericVector< T >::zero().
Referenced by libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), and libMesh::RBConstruction::truth_solve().
|
virtualinherited |
Perform a "truth" solve, i.e.
solve the finite element system at at the parameters currently set in the system. This is used extensively in training the reduced basis, since "truth snapshots" are employed as basis functions.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 1242 of file rb_construction.C.
References libMesh::RBConstruction::assert_convergence, libMesh::RBConstruction::check_convergence(), libMesh::NumericVector< T >::dot(), libMesh::RBThetaExpansion::eval_output_theta(), libMesh::RBConstruction::extra_linear_solver, libMesh::System::get_equation_systems(), libMesh::LinearImplicitSystem::get_linear_solver(), libMesh::System::get_mesh(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_output_vector(), libMesh::RBParametrized::get_parameters(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::RBConstructionBase< LinearImplicitSystem >::inner_product_storage_vector, libMesh::libmesh_real(), libMesh::ImplicitSystem::matrix, libMesh::RBConstruction::post_process_truth_solution(), libMesh::ExplicitSystem::rhs, libMesh::System::solution, libMesh::RBConstruction::solve_for_matrix_and_rhs(), std::sqrt(), libMesh::RBConstruction::truth_assembly(), libMesh::RBConstruction::truth_outputs, libMesh::SparseMatrix< T >::vector_mult(), and libMesh::MeshOutput< MT >::write_equation_systems().
Referenced by libMesh::RBConstruction::train_reduced_basis().
|
virtualinherited |
Update the local values to reflect the solution on neighboring processors.
Reimplemented in SolidSystem.
Definition at line 408 of file system.C.
References libMesh::System::_dof_map, libMesh::System::current_local_solution, libMesh::libmesh_assert(), and libMesh::System::solution.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), libMesh::__libmesh_petsc_diff_solver_residual(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::FEMSystem::assemble_qoi(), libMesh::FEMSystem::assemble_qoi_derivative(), libMesh::NonlinearImplicitSystem::assembly(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::NewmarkSolver::compute_initial_accel(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::Problem_Interface::computeF(), libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::ExodusII_IO::copy_nodal_solution(), libMesh::GMVIO::copy_nodal_solution(), libMesh::ExodusII_IO::copy_scalar_solution(), DMlibMeshFunction(), DMlibMeshJacobian(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::CondensedEigenSystem::get_eigenpair(), libMesh::TransientRBConstruction::initialize_truth(), libMesh::libmesh_petsc_snes_jacobian(), libMesh::libmesh_petsc_snes_residual_helper(), libMesh::NewtonSolver::line_search(), libMesh::RBEIMConstruction::load_basis_function(), libMesh::RBConstruction::load_basis_function(), libMesh::RBEIMConstruction::load_rb_solution(), libMesh::RBConstruction::load_rb_solution(), libMesh::TransientRBConstruction::load_rb_solution(), libMesh::FEMSystem::mesh_position_get(), HeatSystem::perturb_accumulate_residuals(), libMesh::FEMSystem::postprocess(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::NewtonSolver::solve(), libMesh::ExplicitSystem::solve(), libMesh::LinearImplicitSystem::solve(), libMesh::NonlinearImplicitSystem::solve(), libMesh::OptimizationSystem::solve(), libMesh::RBConstruction::solve_for_matrix_and_rhs(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::DirectSolutionTransfer::transfer(), and libMesh::RBEIMConstruction::truth_solve().
|
inherited |
Fill the input vector global_soln
so that it contains the global solution on all processors.
Requires communication with all other processors.
Definition at line 642 of file system.C.
References libMesh::System::solution.
Referenced by libMesh::ExactSolution::_compute_error(), libMesh::EquationSystems::build_discontinuous_solution_vector(), libMesh::ExactErrorEstimator::estimate_error(), and main().
|
inherited |
Fill the input vector global_soln
so that it contains the global solution on processor dest_proc
.
Requires communication with all other processors.
Definition at line 651 of file system.C.
References libMesh::System::solution.
|
protectedinherited |
Update the list of Greedily chosen parameters with current_parameters.
Definition at line 1229 of file rb_construction.C.
References libMesh::RBParametrized::get_parameters(), libMesh::RBConstruction::get_rb_evaluation(), and libMesh::RBEvaluation::greedy_param_list.
Referenced by libMesh::RBConstruction::train_reduced_basis().
|
protectedvirtualinherited |
Compute the reduced basis matrices for the current basis.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 1466 of file rb_construction.C.
References libMesh::NumericVector< T >::build(), libMesh::ParallelObject::comm(), libMesh::RBConstruction::compute_RB_inner_product, libMesh::RBConstruction::delta_N, libMesh::NumericVector< T >::dot(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), libMesh::RBConstruction::get_non_dirichlet_Aq_if_avail(), libMesh::RBConstruction::get_non_dirichlet_Fq_if_avail(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_output_vector(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::libmesh_conj(), libMesh::System::n_dofs(), libMesh::System::n_local_dofs(), libMesh::PARALLEL, libMesh::RBEvaluation::RB_Aq_vector, libMesh::RBEvaluation::RB_Fq_vector, libMesh::RBEvaluation::RB_inner_product_matrix, libMesh::RBEvaluation::RB_output_vectors, value, and libMesh::SparseMatrix< T >::vector_mult().
Referenced by libMesh::TransientRBConstruction::update_RB_system_matrices(), and libMesh::RBConstruction::update_system().
|
protectedvirtualinherited |
Compute the terms that are combined ‘online’ to determine the dual norm of the residual.
By default, inner product terms are also computed, but you can turn this feature off e.g. if you are already reading in that data from files.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 1535 of file rb_construction.C.
References libMesh::RBEvaluation::Aq_Aq_representor_innerprods, libMesh::RBEvaluation::Aq_representor, libMesh::RBConstruction::assert_convergence, libMesh::NumericVector< T >::build(), libMesh::RBConstruction::check_convergence(), libMesh::ParallelObject::comm(), libMesh::RBConstruction::delta_N, libMesh::LinearImplicitSystem::final_linear_residual(), libMesh::RBEvaluation::Fq_Aq_representor_innerprods, libMesh::RBConstruction::Fq_representor, libMesh::RBConstruction::get_Aq(), libMesh::RBThetaExpansion::get_n_A_terms(), libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBThetaExpansion::get_n_F_terms(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::get_rb_theta_expansion(), libMesh::Utility::get_timestamp(), libMesh::RBConstruction::inner_product_matrix, libMesh::RBConstruction::inner_product_solver, libMesh::RBConstructionBase< LinearImplicitSystem >::inner_product_storage_vector, libMesh::RBConstructionBase< LinearImplicitSystem >::is_quiet(), libMesh::libmesh_assert(), libMesh::System::n_dofs(), libMesh::LinearImplicitSystem::n_linear_iterations(), libMesh::System::n_local_dofs(), libMesh::out, libMesh::PARALLEL, libMesh::ExplicitSystem::rhs, libMesh::NumericVector< T >::scale(), libMesh::System::solution, libMesh::RBConstruction::solve_for_matrix_and_rhs(), libMesh::SparseMatrix< T >::vector_mult(), and libMesh::NumericVector< T >::zero().
Referenced by libMesh::RBConstruction::recompute_all_residual_terms(), libMesh::RBConstruction::train_reduced_basis(), and libMesh::TransientRBConstruction::update_residual_terms().
|
protectedvirtualinherited |
Update the system after enriching the RB space; this calls a series of functions to update the system properly.
Reimplemented in libMesh::TransientRBConstruction, and libMesh::RBEIMConstruction.
Definition at line 1350 of file rb_construction.C.
References libMesh::out, and libMesh::RBConstruction::update_RB_system_matrices().
Referenced by libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBConstruction::train_reduced_basis(), and libMesh::TransientRBConstruction::update_system().
|
virtualinherited |
Calls user's attached assembly function, or is overridden by the user in derived classes.
Definition at line 1910 of file system.C.
References libMesh::System::_assemble_system_function, libMesh::System::_assemble_system_object, libMesh::System::_equation_systems, libMesh::System::Assembly::assemble(), and libMesh::System::name().
Referenced by libMesh::System::assemble().
|
virtualinherited |
Calls user's attached constraint function, or is overridden by the user in derived classes.
Definition at line 1924 of file system.C.
References libMesh::System::_constrain_system_function, libMesh::System::_constrain_system_object, libMesh::System::_equation_systems, libMesh::System::Constraint::constrain(), and libMesh::System::name().
Referenced by libMesh::System::reinit_constraints().
|
virtualinherited |
Calls user's attached initialization function, or is overridden by the user in derived classes.
Definition at line 1896 of file system.C.
References libMesh::System::_equation_systems, libMesh::System::_init_system_function, libMesh::System::_init_system_object, libMesh::System::Initialization::initialize(), and libMesh::System::name().
Referenced by libMesh::System::init(), and libMesh::NewmarkSystem::initial_conditions().
|
virtualinherited |
Calls user's attached quantity of interest function, or is overridden by the user in derived classes.
Definition at line 1938 of file system.C.
References libMesh::System::_equation_systems, libMesh::System::_qoi_evaluate_function, libMesh::System::_qoi_evaluate_object, libMesh::System::name(), and libMesh::System::QOI::qoi().
Referenced by libMesh::System::assemble_qoi().
|
virtualinherited |
Calls user's attached quantity of interest derivative function, or is overridden by the user in derived classes.
Definition at line 1952 of file system.C.
References libMesh::System::_equation_systems, libMesh::System::_qoi_evaluate_derivative_function, libMesh::System::_qoi_evaluate_derivative_object, libMesh::System::name(), and libMesh::System::QOIDerivative::qoi_derivative().
Referenced by libMesh::System::assemble_qoi_derivative().
|
privateinherited |
Helper function to check that params
is valid.
Definition at line 402 of file rb_parametrized.C.
References libMesh::RBParametrized::get_discrete_parameter_values(), libMesh::RBParametrized::get_n_params(), libMesh::RBParametrized::get_parameter_max(), libMesh::RBParametrized::get_parameter_min(), libMesh::RBParametrized::is_discrete_parameter(), libMesh::RBParametrized::is_value_in_list(), libMesh::RBParameters::n_parameters(), libMesh::out, libMesh::TOLERANCE, libMesh::Quality::valid(), and libMesh::RBParametrized::verbose_mode.
Referenced by libMesh::RBParametrized::set_parameters().
|
inlineinherited |
Return a constant reference to Variable
var
.
Definition at line 2183 of file system.h.
References libMesh::System::_variables.
Referenced by libMesh::ExactSolution::_compute_error(), libMesh::PetscDMWrapper::add_dofs_to_section(), libMesh::DifferentiableSystem::add_second_order_dot_vars(), libMesh::EquationSystems::build_discontinuous_solution_vector(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::FirstOrderUnsteadySolver::compute_second_order_eqns(), libMesh::DifferentiableSystem::have_first_order_scalar_vars(), libMesh::DifferentiableSystem::have_second_order_scalar_vars(), main(), libMesh::DifferentiablePhysics::nonlocal_mass_residual(), libMesh::GenericProjector< FFunctor, GFunctor, FValue, ProjectionAction >::SortAndCopy::operator()(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::System::read_parallel_data(), libMesh::System::read_SCALAR_dofs(), libMesh::System::read_serialized_vector(), libMesh::System::read_serialized_vectors(), libMesh::PetscDMWrapper::set_point_range_in_section(), libMesh::System::write_header(), libMesh::System::write_parallel_data(), libMesh::System::write_serialized_vector(), and libMesh::System::write_serialized_vectors().
|
inlineinherited |
Return a constant reference to VariableGroup
vg
.
Definition at line 2193 of file system.h.
References libMesh::System::_variable_groups.
Referenced by libMesh::FEMSystem::assembly(), libMesh::System::get_info(), and libMesh::System::init_data().
|
inlineinherited |
i
. Definition at line 2203 of file system.h.
References libMesh::System::_variables.
Referenced by libMesh::System::add_variable(), libMesh::System::add_variables(), libMesh::EquationSystems::build_discontinuous_solution_vector(), libMesh::PetscDMWrapper::build_section(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::ExactSolution::ExactSolution(), libMesh::EquationSystems::find_variable_numbers(), main(), output_norms(), libMesh::petsc_auto_fieldsplit(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), libMesh::System::write_header(), and libMesh::Nemesis_IO_Helper::write_nodal_solution().
|
inherited |
var
. Definition at line 1232 of file system.C.
References libMesh::System::_variable_numbers, libMesh::System::_variables, and libMesh::System::name().
Referenced by libMesh::ExactSolution::_compute_error(), LinearElasticity::assemble(), AssembleOptimization::assemble_A_and_F(), assemble_elasticity(), assemble_matrix_and_rhs(), assemble_shell(), assemble_stokes(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::ExodusII_IO::copy_nodal_solution(), libMesh::GMVIO::copy_nodal_solution(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::ExactErrorEstimator::find_squared_element_error(), LargeDeformationElasticity::jacobian(), line_print(), main(), LinearElasticityWithContact::move_mesh(), libMesh::System::read_header(), LargeDeformationElasticity::residual(), LinearElasticityWithContact::residual_and_jacobian(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), OverlappingTestBase::setup_coupling_matrix(), libMesh::DTKAdapter::update_variable_values(), libMesh::System::variable_scalar_number(), libMesh::System::variable_type(), libMesh::EnsightIO::write_scalar_ascii(), and libMesh::EnsightIO::write_vector_ascii().
|
inlineinherited |
variable_number(var)
Irony: currently our only non-scalar-valued variable type is SCALAR.
Definition at line 2214 of file system.h.
References libMesh::System::variable_number().
Referenced by libMesh::ExactSolution::_compute_error(), libMesh::ExodusII_IO::copy_scalar_solution(), and libMesh::ExactErrorEstimator::find_squared_element_error().
|
inlineinherited |
var_num
Irony: currently our only non-scalar-valued variable type is SCALAR.
Definition at line 2224 of file system.h.
References libMesh::System::_variables.
|
inlineinherited |
var
. Definition at line 2243 of file system.h.
References libMesh::System::_variables, and libMesh::System::variable_number().
|
inlineinherited |
i
. Definition at line 2233 of file system.h.
References libMesh::System::_variables.
Referenced by libMesh::System::add_variable(), libMesh::System::add_variables(), assemble(), assemble_ellipticdg(), assemble_shell(), assemble_stokes(), libMesh::FEMContext::attach_quadrature_rules(), libMesh::EquationSystems::build_discontinuous_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::GMVIO::copy_nodal_solution(), libMesh::DGFEMContext::DGFEMContext(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::FEMContext::find_hardest_fe_type(), libMesh::EquationSystems::find_variable_numbers(), libMesh::FEMSystem::init_context(), libMesh::FEMContext::init_internal_data(), RationalMapTest< elem_type >::setUp(), FETest< order, family, elem_type >::setUp(), libMesh::System::write_header(), libMesh::Nemesis_IO_Helper::write_nodal_solution(), libMesh::EnsightIO::write_scalar_ascii(), and libMesh::EnsightIO::write_vector_ascii().
|
inherited |
Definition at line 884 of file system.C.
References libMesh::System::_vector_is_adjoint, and libMesh::libmesh_assert().
Referenced by libMesh::System::restrict_vectors().
|
inherited |
Definition at line 834 of file system.C.
References libMesh::libmesh_assert(), libMesh::System::vectors_begin(), and libMesh::System::vectors_end().
|
inherited |
vec_num
(where the vectors are counted starting with 0). Definition at line 820 of file system.C.
References libMesh::libmesh_assert(), libMesh::System::vectors_begin(), and libMesh::System::vectors_end().
Referenced by main().
|
inherited |
Definition at line 863 of file system.C.
References libMesh::System::_vector_projections.
Referenced by libMesh::MemorySolutionHistory::store().
|
inlineinherited |
Beginning of vectors container.
Definition at line 2295 of file system.h.
References libMesh::System::_vectors.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::System::get_vector(), libMesh::System::request_vector(), libMesh::MemorySolutionHistory::store(), and libMesh::System::vector_name().
|
inlineinherited |
Beginning of vectors container.
Definition at line 2301 of file system.h.
References libMesh::System::_vectors.
|
inlineinherited |
End of vectors container.
Definition at line 2307 of file system.h.
References libMesh::System::_vectors.
Referenced by libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::System::get_vector(), libMesh::System::request_vector(), libMesh::MemorySolutionHistory::store(), and libMesh::System::vector_name().
|
inlineinherited |
End of vectors container.
Definition at line 2313 of file system.h.
References libMesh::System::_vectors.
|
overridevirtualinherited |
Assembles & solves the linear system(s) (dR/du)^T*z_w = sum(w_p*(d^2q/dudp - d^2R/dudp*z)), for those parameters p contained within parameters
, weighted by the values w_p found within weights
.
Assumes that adjoint_solve has already calculated z for each qoi in qoi_indices
.
Reimplemented from libMesh::System.
Definition at line 412 of file implicit_system.C.
References libMesh::System::add_weighted_sensitivity_adjoint_solution(), libMesh::ExplicitSystem::assemble_qoi_derivative(), libMesh::ImplicitSystem::assembly(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::ParameterVector::deep_copy(), libMesh::DofMap::enforce_constraints_exactly(), libMesh::System::get_adjoint_rhs(), libMesh::System::get_adjoint_solution(), libMesh::System::get_dof_map(), libMesh::ImplicitSystem::get_linear_solve_parameters(), libMesh::ImplicitSystem::get_linear_solver(), libMesh::SparseMatrix< T >::get_transpose(), libMesh::System::get_weighted_sensitivity_adjoint_solution(), libMesh::DofMap::has_adjoint_dirichlet_boundaries(), libMesh::QoISet::has_index(), libMesh::libmesh_assert(), libMesh::ImplicitSystem::matrix, libMesh::System::n_qois(), libMesh::Real, libMesh::ImplicitSystem::release_linear_solver(), libMesh::ExplicitSystem::rhs, libMesh::LinearSolver< T >::solve(), libMesh::TOLERANCE, libMesh::ParameterVector::value_copy(), libMesh::SparseMatrix< T >::vector_mult_add(), and libMesh::NumericVector< T >::zero_clone().
Referenced by libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product().
|
overridevirtualinherited |
Assembles & solves the linear system(s) (dR/du)*u_w = sum(w_p*-dR/dp), for those parameters p contained within parameters
weighted by the values w_p found within weights
.
Reimplemented from libMesh::System.
Definition at line 560 of file implicit_system.C.
References libMesh::System::add_weighted_sensitivity_solution(), libMesh::ImplicitSystem::assembly(), libMesh::NumericVector< T >::clone(), libMesh::SparseMatrix< T >::close(), libMesh::NumericVector< T >::close(), libMesh::ParameterVector::deep_copy(), libMesh::DofMap::enforce_constraints_exactly(), libMesh::System::get_dof_map(), libMesh::ImplicitSystem::get_linear_solve_parameters(), libMesh::ImplicitSystem::get_linear_solver(), libMesh::System::get_weighted_sensitivity_solution(), libMesh::ImplicitSystem::matrix, libMesh::Real, libMesh::ImplicitSystem::release_linear_solver(), libMesh::ExplicitSystem::rhs, libMesh::LinearSolver< T >::solve(), libMesh::TOLERANCE, and libMesh::ParameterVector::value_copy().
Referenced by libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product().
|
privateinherited |
Write out the discrete parameter values to file.
Definition at line 255 of file rb_parametrized.C.
References libMesh::ENCODE, libMesh::RBParametrized::get_discrete_parameter_values(), libMesh::RBParametrized::get_n_discrete_params(), libMesh::Real, and libMesh::WRITE.
Referenced by libMesh::RBParametrized::write_parameter_data_to_files().
|
inherited |
Writes the basic data header for this System.
This method implements the output of a System object, embedded in the output of an EquationSystems<T_sys>. This warrants some documentation. The output of this part consists of 5 sections:
for this system
5.) The number of variables in the system (unsigned int)
for each variable in the system
6.) The name of the variable (string)
6.1.) subdomain where the variable lives
7.) Combined in an FEType:
end variable loop
8.) The number of additional vectors (unsigned int),
for each additional vector in the system object
9.) the name of the additional vector (string)
end system
Definition at line 1298 of file system_io.C.
References libMesh::System::_vectors, libMesh::Variable::active_subdomains(), libMesh::Xdr::data(), libMesh::FEType::family, libMesh::System::get_mesh(), libMesh::FEType::inf_map, libMesh::libmesh_assert(), libMesh::System::n_vars(), libMesh::System::n_vectors(), libMesh::System::name(), libMesh::ParallelObject::processor_id(), libMesh::FEType::radial_family, libMesh::System::variable(), libMesh::System::variable_name(), libMesh::System::variable_type(), and libMesh::Xdr::writing().
Referenced by libMesh::RBEvaluation::write_out_vectors().
|
inherited |
Writes additional data, namely vectors, for this System.
This method may safely be called on a distributed-memory mesh. This method will create an individual file for each processor in the simulation where the local solution components for that processor will be stored.
This method implements the output of the vectors contained in this System object, embedded in the output of an EquationSystems<T_sys>.
9.) The global solution vector, re-ordered to be node-major (More on this later.)
for each additional vector in the object
10.) The global additional vector, re-ordered to be node-major (More on this later.)
Note that the actual IO is handled through the Xdr class (to be renamed later?) which provides a uniform interface to both the XDR (eXternal Data Representation) interface and standard ASCII output. Thus this one section of code will read XDR or ASCII files with no changes.
Definition at line 1503 of file system_io.C.
References libMesh::System::_vectors, libMesh::Xdr::data(), libMesh::FEType::family, libMesh::System::get_dof_map(), libMesh::System::get_mesh(), libMesh::DofObject::invalid_id, libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::System::n_vars(), libMesh::System::name(), libMesh::System::number(), libMesh::ParallelObject::processor_id(), libMesh::SCALAR, libMesh::DofMap::SCALAR_dof_indices(), libMesh::System::solution, libMesh::Variable::type(), libMesh::System::variable(), and libMesh::Xdr::writing().
|
inherited |
Write out the parameter ranges to files.
Definition at line 214 of file rb_parametrized.C.
References libMesh::RBParametrized::write_discrete_parameter_values_to_file(), and libMesh::RBParametrized::write_parameter_ranges_to_file().
Referenced by libMesh::RBEvaluation::legacy_write_offline_data_to_files(), and libMesh::RBSCMEvaluation::legacy_write_offline_data_to_files().
|
privateinherited |
Write out the parameter ranges to file.
Definition at line 222 of file rb_parametrized.C.
References libMesh::Xdr::close(), libMesh::ENCODE, libMesh::RBParametrized::get_n_continuous_params(), libMesh::RBParametrized::get_parameters_max(), libMesh::RBParametrized::get_parameters_min(), libMesh::RBParametrized::is_discrete_parameter(), libMesh::Real, and libMesh::WRITE.
Referenced by libMesh::RBParametrized::write_parameter_data_to_files().
|
virtualinherited |
Write out all the Riesz representor data to files.
residual_representors_dir
specifies which directory to write to. write_binary_residual_representors
specifies whether we write binary or ASCII data.
Reimplemented in libMesh::TransientRBConstruction.
Definition at line 2031 of file rb_construction.C.
References libMesh::RBEvaluation::Aq_representor, libMesh::ParallelObject::comm(), libMesh::ENCODE, libMesh::RBConstruction::Fq_representor, libMesh::RBConstruction::get_delta_N(), libMesh::RBEvaluation::get_n_basis_functions(), libMesh::RBConstruction::get_rb_evaluation(), libMesh::index_range(), libMesh::libmesh_assert(), libMesh::Utility::mkdir(), libMesh::out, libMesh::ParallelObject::processor_id(), libMesh::System::solution, libMesh::WRITE, and libMesh::System::write_serialized_data().
|
privateinherited |
Writes the SCALAR dofs associated with var to the stream io
.
Definition at line 2097 of file system_io.C.
References libMesh::ParallelObject::comm(), libMesh::Xdr::data_stream(), libMesh::System::get_dof_map(), libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::processor_id(), and libMesh::DofMap::SCALAR_dof_indices().
Referenced by libMesh::System::write_serialized_vector(), and libMesh::System::write_serialized_vectors().
|
privateinherited |
Writes an output vector to the stream io
for a set of DofObjects
.
This method uses blocked output and is safe to call on a distributed memory-mesh.
Definition at line 1811 of file system_io.C.
References libMesh::ParallelObject::comm(), end, libMesh::MeshTools::Generation::Private::idx(), libMesh::invalid_uint, libMesh::libmesh_assert(), libMesh::ParallelObject::n_processors(), libMesh::System::n_vars(), libMesh::System::number(), and libMesh::ParallelObject::processor_id().
Referenced by libMesh::System::write_serialized_vector(), and libMesh::System::write_serialized_vectors().
|
inherited |
Writes additional data, namely vectors, for this System.
This method may safely be called on a distributed-memory mesh.
This method implements the output of the vectors contained in this System object, embedded in the output of an EquationSystems<T_sys>.
9.) The global solution vector, re-ordered to be node-major (More on this later.)
for each additional vector in the object
10.) The global additional vector, re-ordered to be node-major (More on this later.)
Definition at line 1703 of file system_io.C.
References libMesh::System::_vectors, libMesh::Xdr::comment(), libMesh::System::name(), libMesh::ParallelObject::processor_id(), libMesh::System::solution, and libMesh::System::write_serialized_vector().
Referenced by libMesh::TransientRBConstruction::write_riesz_representors_to_files(), and libMesh::RBConstruction::write_riesz_representors_to_files().
|
privateinherited |
Writes a vector for this System.
This method may safely be called on a distributed-memory mesh.
Definition at line 2152 of file system_io.C.
References libMesh::Xdr::data(), libMesh::System::get_mesh(), libMesh::libmesh_assert(), libMesh::MeshTools::n_elem(), n_nodes, libMesh::System::n_vars(), libMesh::ParallelObject::processor_id(), libMesh::SCALAR, libMesh::NumericVector< T >::size(), libMesh::System::variable(), libMesh::System::write_SCALAR_dofs(), libMesh::System::write_serialized_blocked_dof_objects(), and libMesh::Xdr::writing().
Referenced by libMesh::System::write_serialized_data().
|
inherited |
Serialize & write a number of identically distributed vectors.
This method allows for optimization for the multiple vector case by only communicating the metadata once.
Definition at line 2293 of file system_io.C.
References libMesh::Xdr::data(), libMesh::System::get_mesh(), libMesh::libmesh_assert(), libMesh::MeshBase::n_elem(), libMesh::MeshTools::n_elem(), n_nodes, libMesh::MeshBase::n_nodes(), libMesh::System::n_vars(), libMesh::ParallelObject::processor_id(), libMesh::SCALAR, libMesh::System::variable(), libMesh::System::write_SCALAR_dofs(), libMesh::System::write_serialized_blocked_dof_objects(), and libMesh::Xdr::writing().
Referenced by libMesh::RBEvaluation::write_out_vectors().
|
inherited |
It is sometimes useful to be able to zero vector entries that correspond to constrained dofs.
Definition at line 402 of file rb_construction.C.
References libMesh::NumericVector< T >::close(), libMesh::DofMap::end_dof(), libMesh::DofMap::first_dof(), libMesh::System::get_dof_map(), libMesh::DofMap::is_constrained_dof(), and libMesh::NumericVector< T >::set().
|
inherited |
Zeroes all dofs in v
that correspond to variable number var_num
.
Definition at line 1300 of file system.C.
References libMesh::System::get_mesh(), mesh, libMesh::System::n_vars(), libMesh::System::number(), and libMesh::NumericVector< T >::set().
|
privateinherited |
Flag stating if the system is active or not.
Definition at line 1977 of file system.h.
Referenced by libMesh::System::activate(), libMesh::System::active(), and libMesh::System::deactivate().
|
privateinherited |
This flag is used only when reading in a system from file.
Based on the system header, it keeps track of how many additional vectors were actually written for this file.
Definition at line 2034 of file system.h.
Referenced by libMesh::System::read_header(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), and libMesh::System::read_serialized_data().
|
privateinherited |
Function that assembles the system.
Definition at line 1885 of file system.h.
Referenced by libMesh::System::attach_assemble_function(), libMesh::System::attach_assemble_object(), libMesh::System::user_assembly(), and libMesh::System::~System().
|
privateinherited |
Object that assembles the system.
Definition at line 1891 of file system.h.
Referenced by libMesh::System::attach_assemble_function(), libMesh::System::attach_assemble_object(), libMesh::System::user_assembly(), and libMesh::System::~System().
|
privateinherited |
Holds true if the components of more advanced system types (e.g.
system matrices) should not be initialized.
Definition at line 2015 of file system.h.
Referenced by libMesh::System::init(), and libMesh::System::set_basic_system_only().
|
privateinherited |
true
when additional matrices may still be added, false
otherwise.
Definition at line 431 of file implicit_system.h.
Referenced by libMesh::ImplicitSystem::add_matrix(), libMesh::ImplicitSystem::clear(), and libMesh::ImplicitSystem::init_matrices().
|
protectedinherited |
Definition at line 112 of file parallel_object.h.
Referenced by libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::ParallelObject::comm(), libMesh::ParallelObject::n_processors(), libMesh::ParallelObject::operator=(), and libMesh::ParallelObject::processor_id().
|
privateinherited |
Function to impose constraints.
Definition at line 1896 of file system.h.
Referenced by libMesh::System::attach_constraint_function(), libMesh::System::attach_constraint_object(), libMesh::System::user_constrain(), and libMesh::System::~System().
|
privateinherited |
Object that constrains the system.
Definition at line 1902 of file system.h.
Referenced by libMesh::System::attach_constraint_function(), libMesh::System::attach_constraint_object(), libMesh::System::user_constrain(), and libMesh::System::~System().
|
staticprotectedinherited |
Actually holds the data.
Definition at line 122 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::get_info(), libMesh::ReferenceCounter::increment_constructor_count(), and libMesh::ReferenceCounter::increment_destructor_count().
|
staticprotectedinherited |
Actually holds the data.
Definition at line 122 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::get_info(), libMesh::ReferenceCounter::increment_constructor_count(), and libMesh::ReferenceCounter::increment_destructor_count().
|
privateinherited |
Map that defines the allowable values of any discrete parameters.
Definition at line 235 of file rb_parametrized.h.
Referenced by libMesh::RBParametrized::get_discrete_parameter_values(), libMesh::RBParametrized::initialize_parameters(), and libMesh::RBParametrized::is_discrete_parameter().
|
privateinherited |
Data structure describing the relationship between nodes, variables, etc...
and degrees of freedom.
Definition at line 1934 of file system.h.
Referenced by libMesh::System::add_vector(), libMesh::System::calculate_norm(), libMesh::System::clear(), libMesh::System::current_solution(), libMesh::System::get_dof_map(), libMesh::System::init_data(), libMesh::System::n_constrained_dofs(), libMesh::System::n_dofs(), libMesh::System::n_local_constrained_dofs(), libMesh::System::n_local_dofs(), libMesh::System::restrict_vectors(), and libMesh::System::update().
|
staticprotectedinherited |
Flag to control whether reference count information is printed when print_info is called.
Definition at line 141 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::disable_print_counter_info(), libMesh::ReferenceCounter::enable_print_counter_info(), and libMesh::ReferenceCounter::print_info().
|
staticprotectedinherited |
Flag to control whether reference count information is printed when print_info is called.
Definition at line 141 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::disable_print_counter_info(), libMesh::ReferenceCounter::enable_print_counter_info(), and libMesh::ReferenceCounter::print_info().
|
privateinherited |
Constant reference to the EquationSystems
object used for the simulation.
Definition at line 1940 of file system.h.
Referenced by libMesh::System::get_equation_systems(), libMesh::System::user_assembly(), libMesh::System::user_constrain(), libMesh::System::user_initialization(), libMesh::System::user_QOI(), and libMesh::System::user_QOI_derivative().
|
protectedinherited |
The final residual for the linear system Ax=b.
Definition at line 204 of file linear_implicit_system.h.
Referenced by libMesh::LinearImplicitSystem::final_linear_residual(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), and libMesh::RBConstruction::solve_for_matrix_and_rhs().
|
privateinherited |
Are we allowed to write this system to file? If _hide_output
is true
, then EquationSystems::write
will ignore this system.
Definition at line 2059 of file system.h.
Referenced by libMesh::System::hide_output().
|
privateinherited |
true
when VariableGroup
structures should be automatically identified, false
otherwise.
Defaults to true
.
Definition at line 2027 of file system.h.
Referenced by libMesh::System::identify_variable_groups().
|
privateinherited |
Function that initializes the system.
Definition at line 1874 of file system.h.
Referenced by libMesh::System::attach_init_function(), libMesh::System::attach_init_object(), libMesh::System::user_initialization(), and libMesh::System::~System().
|
privateinherited |
Object that initializes the system.
Definition at line 1880 of file system.h.
Referenced by libMesh::System::attach_init_function(), libMesh::System::attach_init_object(), libMesh::System::user_initialization(), and libMesh::System::~System().
|
privateinherited |
true
when additional vectors and variables do not require immediate initialization, false
otherwise.
Definition at line 2021 of file system.h.
Referenced by libMesh::System::add_vector(), libMesh::System::clear(), libMesh::System::compare(), libMesh::System::init_data(), and libMesh::System::is_initialized().
|
privateinherited |
Some systems need an arbitrary number of matrices.
Definition at line 426 of file implicit_system.h.
Referenced by libMesh::ImplicitSystem::add_matrix(), libMesh::ImplicitSystem::add_system_matrix(), libMesh::ImplicitSystem::clear(), libMesh::ImplicitSystem::get_matrix(), libMesh::ImplicitSystem::have_matrix(), libMesh::ImplicitSystem::init_data(), libMesh::ImplicitSystem::init_matrices(), libMesh::ImplicitSystem::n_matrices(), libMesh::ImplicitSystem::reinit(), libMesh::ImplicitSystem::remove_matrix(), and libMesh::ImplicitSystem::request_matrix().
|
privateinherited |
Constant reference to the mesh
data structure used for the simulation.
Definition at line 1946 of file system.h.
Referenced by libMesh::System::calculate_norm(), libMesh::System::get_mesh(), and libMesh::System::reinit_constraints().
|
staticprotectedinherited |
Mutual exclusion object to enable thread-safe reference counting.
Definition at line 135 of file reference_counter.h.
|
staticprotectedinherited |
Mutual exclusion object to enable thread-safe reference counting.
Definition at line 135 of file reference_counter.h.
|
protectedinherited |
The number of linear iterations required to solve the linear system Ax=b.
Definition at line 199 of file linear_implicit_system.h.
Referenced by libMesh::LinearImplicitSystem::n_linear_iterations(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), and libMesh::RBConstruction::solve_for_matrix_and_rhs().
|
staticprotectedinherited |
The number of objects.
Print the reference count information when the number returns to 0.
Definition at line 130 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::n_objects(), libMesh::ReferenceCounter::ReferenceCounter(), and libMesh::ReferenceCounter::~ReferenceCounter().
|
staticprotectedinherited |
The number of objects.
Print the reference count information when the number returns to 0.
Definition at line 130 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::n_objects(), libMesh::ReferenceCounter::ReferenceCounter(), and libMesh::ReferenceCounter::~ReferenceCounter().
|
privateinherited |
Function to evaluate quantity of interest derivative.
Definition at line 1919 of file system.h.
Referenced by libMesh::System::attach_QOI_derivative(), libMesh::System::attach_QOI_derivative_object(), libMesh::System::user_QOI_derivative(), and libMesh::System::~System().
|
privateinherited |
Object to compute derivatives of quantities of interest.
Definition at line 1928 of file system.h.
Referenced by libMesh::System::attach_QOI_derivative(), libMesh::System::attach_QOI_derivative_object(), libMesh::System::user_QOI_derivative(), and libMesh::System::~System().
|
privateinherited |
Function to evaluate quantity of interest.
Definition at line 1907 of file system.h.
Referenced by libMesh::System::attach_QOI_function(), libMesh::System::attach_QOI_object(), libMesh::System::user_QOI(), and libMesh::System::~System().
|
privateinherited |
Object to compute quantities of interest.
Definition at line 1914 of file system.h.
Referenced by libMesh::System::attach_QOI_function(), libMesh::System::attach_QOI_object(), libMesh::System::user_QOI(), and libMesh::System::~System().
|
protectedinherited |
User supplies shell matrix or nullptr
if no shell matrix is used.
Definition at line 209 of file linear_implicit_system.h.
Referenced by libMesh::LinearImplicitSystem::attach_shell_matrix(), libMesh::LinearImplicitSystem::get_shell_matrix(), and libMesh::LinearImplicitSystem::solve().
|
privateinherited |
Holds true if the solution vector should be projected onto a changed grid, false if it should be zeroed.
This is true by default.
Definition at line 2009 of file system.h.
Referenced by libMesh::System::project_solution_on_reinit(), and libMesh::System::restrict_vectors().
|
protectedinherited |
The current subset on which to solve (or nullptr
if none).
Definition at line 214 of file linear_implicit_system.h.
Referenced by libMesh::LinearImplicitSystem::restrict_solve_to(), and libMesh::LinearImplicitSystem::solve().
|
protectedinherited |
If restrict-solve-to-subset mode is active, this member decides what happens with the dofs outside the subset.
Definition at line 220 of file linear_implicit_system.h.
Referenced by libMesh::LinearImplicitSystem::restrict_solve_to(), and libMesh::LinearImplicitSystem::solve().
|
privateinherited |
A name associated with this system.
Definition at line 1951 of file system.h.
Referenced by libMesh::System::compare(), and libMesh::System::name().
|
privateinherited |
The number associated with this system.
Definition at line 1956 of file system.h.
Referenced by libMesh::System::number().
|
privateinherited |
The VariableGroup
in this System
.
Definition at line 1966 of file system.h.
Referenced by libMesh::System::add_variable(), libMesh::System::add_variables(), libMesh::System::n_variable_groups(), and libMesh::System::variable_group().
|
privateinherited |
The variable numbers corresponding to user-specified names, useful for name-based lookups.
Definition at line 1972 of file system.h.
Referenced by libMesh::System::add_variable(), libMesh::System::add_variables(), libMesh::System::clear(), libMesh::System::get_all_variable_numbers(), libMesh::System::has_variable(), and libMesh::System::variable_number().
|
privateinherited |
The Variable
in this System
.
Definition at line 1961 of file system.h.
Referenced by libMesh::System::add_variable(), libMesh::System::add_variables(), libMesh::System::clear(), libMesh::System::n_components(), libMesh::System::n_vars(), libMesh::System::variable(), libMesh::System::variable_name(), libMesh::System::variable_number(), libMesh::System::variable_scalar_number(), and libMesh::System::variable_type().
|
privateinherited |
Holds non-negative if a vector by that name should be projected using adjoint constraints/BCs, -1 if primal.
Definition at line 1997 of file system.h.
Referenced by libMesh::System::add_vector(), libMesh::System::clear(), libMesh::System::remove_vector(), libMesh::System::set_vector_as_adjoint(), and libMesh::System::vector_is_adjoint().
|
privateinherited |
Holds true if a vector by that name should be projected onto a changed grid, false if it should be zeroed.
Definition at line 1991 of file system.h.
Referenced by libMesh::System::add_vector(), libMesh::System::clear(), libMesh::System::remove_vector(), libMesh::System::restrict_vectors(), libMesh::System::set_vector_preservation(), and libMesh::System::vector_preservation().
|
privateinherited |
Holds the type of a vector.
Definition at line 2002 of file system.h.
Referenced by libMesh::System::add_vector(), libMesh::System::clear(), libMesh::System::init_data(), libMesh::System::remove_vector(), and libMesh::System::restrict_vectors().
|
privateinherited |
Some systems need an arbitrary number of vectors.
This map allows names to be associated with arbitrary vectors. All the vectors in this map will be distributed in the same way as the solution vector.
Definition at line 1985 of file system.h.
Referenced by libMesh::System::add_vector(), libMesh::System::clear(), libMesh::System::compare(), libMesh::System::get_vector(), libMesh::System::have_vector(), libMesh::System::init_data(), libMesh::System::n_vectors(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), libMesh::System::read_serialized_data(), libMesh::System::remove_vector(), libMesh::System::request_vector(), libMesh::System::restrict_vectors(), libMesh::System::vectors_begin(), libMesh::System::vectors_end(), libMesh::System::write_header(), libMesh::System::write_parallel_data(), and libMesh::System::write_serialized_data().
|
privateinherited |
This vector is used only when reading in a system from file.
Based on the system header, it keeps track of any index remapping between variable names in the data file and variable names in the already-constructed system. I.e. if we have a system with variables "A1", "A2", "B1", and "B2", but we read in a data file with only "A1" and "B1" defined, then we don't want to try and read in A2 or B2, and we don't want to assign A1 and B1 values to different dof indices.
Definition at line 2046 of file system.h.
Referenced by libMesh::System::read_header(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), libMesh::System::read_serialized_blocked_dof_objects(), and libMesh::System::read_serialized_vector().
|
privateinherited |
Definition at line 855 of file rb_construction.h.
Referenced by libMesh::RBConstruction::get_abs_training_tolerance(), libMesh::RBConstruction::get_RB_error_bound(), libMesh::RBConstruction::greedy_termination_test(), libMesh::RBConstruction::process_parameters_file(), and libMesh::RBConstruction::set_abs_training_tolerance().
std::unique_ptr<AcousticsRBAssemblyExpansion> SimpleRBConstruction::acoustics_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e.
the objects that define how to assemble the set of parameter-independent operators in the affine expansion of the PDE.
Definition at line 153 of file rb_classes.h.
Referenced by init_data().
|
privateinherited |
Has the adjoint problem already been solved? If the user sets adjoint_already_solved
to true
, we won't waste time solving it again.
Definition at line 2053 of file system.h.
Referenced by libMesh::System::is_adjoint_already_solved(), and libMesh::System::set_adjoint_already_solved().
|
privateinherited |
Vector storing the Q_a matrices from the affine expansion.
Definition at line 826 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), and libMesh::RBConstruction::get_Aq().
|
inherited |
Flag which tells the system to whether or not to call the user assembly function during each call to solve().
By default, every call to solve() begins with a call to the user assemble, so this flag is true. (For explicit systems, "solving" the system occurs during the assembly step, so this flag is always true for explicit systems.)
You will only want to set this to false if you need direct control over when the system is assembled, and are willing to track the state of its assembly yourself. An example of such a case is an implicit system with multiple right hand sides. In this instance, a single assembly would likely be followed with multiple calls to solve.
The frequency system and Newmark system have their own versions of this flag, called _finished_assemble, which might be able to be replaced with this more general concept.
Definition at line 1493 of file system.h.
Referenced by libMesh::ImplicitSystem::adjoint_solve(), libMesh::ImplicitSystem::disable_cache(), libMesh::System::disable_cache(), main(), libMesh::RBConstruction::RBConstruction(), libMesh::RBSCMConstruction::RBSCMConstruction(), libMesh::ImplicitSystem::sensitivity_solve(), libMesh::CondensedEigenSystem::solve(), libMesh::EigenSystem::solve(), and libMesh::LinearImplicitSystem::solve().
|
protectedinherited |
A boolean flag to indicate whether to check for proper convergence after each solve.
Definition at line 781 of file rb_construction.h.
Referenced by libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBConstruction::get_convergence_assertion_flag(), libMesh::RBConstruction::set_convergence_assertion_flag(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
CDRBAssemblyExpansion SimpleRBConstruction::cd_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e.
the objects that define how to assemble the set of parameter-independent operators in the affine expansion of the PDE.
Definition at line 156 of file rb_classes.h.
Referenced by init_data().
|
inherited |
Boolean flag to indicate whether we compute the RB_inner_product_matrix.
This is false by default in RBConstruction since (in the default implementation) the RB inner-product matrix will just be the identity. But we may need the inner-product matrix subclasses.
Definition at line 553 of file rb_construction.h.
Referenced by libMesh::RBEIMConstruction::RBEIMConstruction(), libMesh::TransientRBConstruction::TransientRBConstruction(), and libMesh::RBConstruction::update_RB_system_matrices().
|
inherited |
All the values I need to compute my contribution to the simulation at hand.
Think of this as the current solution with any ghost values needed from other processors. This vector is necessarily larger than the solution
vector in the case of a parallel simulation. The update()
member is used to synchronize the contents of the solution
and current_local_solution
vectors.
Definition at line 1551 of file system.h.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), libMesh::__libmesh_petsc_diff_solver_residual(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::NonlinearImplicitSystem::assembly(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::System::clear(), libMesh::Problem_Interface::computeF(), libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), libMesh::System::current_solution(), DMlibMeshFunction(), DMlibMeshJacobian(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::System::init_data(), libMesh::libmesh_petsc_snes_fd_residual(), libMesh::libmesh_petsc_snes_jacobian(), libMesh::libmesh_petsc_snes_mffd_residual(), libMesh::libmesh_petsc_snes_residual(), libMesh::libmesh_petsc_snes_residual_helper(), libMesh::System::point_gradient(), libMesh::System::point_hessian(), libMesh::System::point_value(), libMesh::FEMContext::pre_fe_reinit(), libMesh::System::re_update(), libMesh::System::reinit(), libMesh::System::restrict_vectors(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), SolidSystem::save_initial_mesh(), libMesh::RBConstruction::set_context_solution_vec(), setup(), FETest< order, family, elem_type >::testGradU(), FETest< order, family, elem_type >::testGradUComp(), FETest< order, family, elem_type >::testU(), libMesh::BoundaryVolumeSolutionTransfer::transfer_boundary_volume(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::TransientRBConstruction::truth_solve(), libMesh::System::update(), and libMesh::Nemesis_IO_Helper::write_nodal_solution().
|
protectedinherited |
The number of basis functions that we add at each greedy step.
This defaults to 1 in the steady case.
Definition at line 768 of file rb_construction.h.
Referenced by libMesh::RBConstruction::get_delta_N(), libMesh::TransientRBConstruction::process_parameters_file(), libMesh::RBConstruction::recompute_all_residual_terms(), libMesh::TransientRBConstruction::set_delta_N(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::TransientRBConstruction::update_RB_system_matrices(), libMesh::RBConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
std::unique_ptr< DirichletBoundary > SimpleRBConstruction::dirichlet_bc |
The object that defines which degrees of freedom are on a Dirichlet boundary.
Definition at line 161 of file rb_classes.h.
Referenced by init_data().
EimTestRBAssemblyExpansion SimpleRBConstruction::eim_test_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e.
the objects that define how to assemble the set of parameter-independent operators in the affine expansion of the PDE.
Definition at line 143 of file rb_classes.h.
Referenced by init_data().
EimTestRBThetaExpansion SimpleRBConstruction::eim_test_rb_theta_expansion |
The object that stores the "theta" expansion of the parameter dependent PDE, i.e.
the set of parameter-dependent functions in the affine expansion of the PDE.
Definition at line 136 of file rb_classes.h.
|
privateinherited |
We may optionally want to use the "energy inner-product" rather than the inner-product assembly specified in inner_product_assembly.
In this case the inner-product will be defined by sum_q^Q k_q * A_q. Here we provide the k_q values that will be used. (Note that a true "energy-inner product" would obtain the k_q from the theta_q's, but this is different for each parameter choice so we just provide a fixed set of k_q's here to ensure that the inner-product is parameter independent)
Definition at line 821 of file rb_construction.h.
Referenced by libMesh::RBConstruction::assemble_inner_product_matrix(), and libMesh::RBConstruction::set_energy_inner_product().
Ex02RBAssemblyExpansion SimpleRBConstruction::ex02_rb_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e.
the objects that define how to assemble the set of parameter-independent operators in the affine expansion of the PDE.
Definition at line 171 of file rb_classes.h.
Referenced by init_data().
Ex6AssemblyExpansion SimpleRBConstruction::ex6_assembly_expansion |
The object that stores the "assembly" expansion of the parameter dependent PDE, i.e.
the objects that define how to assemble the set of parameter-independent operators in the affine expansion of the PDE.
Definition at line 157 of file rb_classes.h.
Referenced by init_data().
Ex6InnerProduct SimpleRBConstruction::ex6_ip |
The inner product assembly object.
Definition at line 162 of file rb_classes.h.
Referenced by init_data().
|
inherited |
Boolean flag to indicate whether we exit the greedy if we select the same parameters twice in a row.
In some problems this indicates that the greedy has "saturated" typically due to numerical rounding effects.
Definition at line 530 of file rb_construction.h.
Referenced by libMesh::RBConstruction::greedy_termination_test(), and libMesh::TransientRBConstruction::TransientRBConstruction().
|
inherited |
Also, we store a pointer to an extra linear solver.
This can be useful if we want to pass in the linear solver from somewhere else. For example, if a solver is already primed elsewhere then it can be more efficient to use that solver.
Definition at line 479 of file rb_construction.h.
Referenced by libMesh::RBConstruction::enrich_basis_from_rhs_terms(), and libMesh::RBConstruction::truth_solve().
|
inherited |
A member int that can be employed to indicate increased or reduced quadrature order.
Definition at line 1524 of file system.h.
Referenced by libMesh::JumpErrorEstimator::estimate_error(), CurlCurlSystem::init_data(), and set_system_parameters().
|
inherited |
Vector storing the residual representors associated with the right-hand side.
These are basis independent and hence stored here, whereas the Aq_representors are stored in RBEvaluation
Definition at line 504 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::TransientRBConstruction::update_residual_terms(), libMesh::RBConstruction::update_residual_terms(), and libMesh::RBConstruction::write_riesz_representors_to_files().
|
inherited |
Vectors storing the residual representor inner products to be used in computing the residuals online.
We store the Fq representor norms here because they are independent of a reduced basis space. The basis dependent representors are stored in RBEvaluation.
Definition at line 513 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), and libMesh::RBConstruction::compute_Fq_representor_innerprods().
|
inherited |
A boolean flag to indicate whether or not the Fq representor norms have already been computed — used to make sure that we don't recompute them unnecessarily.
Definition at line 574 of file rb_construction.h.
Referenced by libMesh::RBConstruction::clear(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::read_riesz_representors_from_files(), and libMesh::RBConstruction::recompute_all_residual_terms().
|
privateinherited |
Vector storing the Q_f vectors in the affine decomposition of the right-hand side.
Definition at line 832 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), and libMesh::RBConstruction::get_Fq().
|
inherited |
Boolean flag to indicate whether we impose "fluxes" (i.e.
element boundary contributions to the weak form) on internal element boundaries in the assembly routines.
Definition at line 537 of file rb_construction.h.
Referenced by libMesh::RBConstruction::add_scaled_matrix_and_vector().
|
privateinherited |
Pointer to inner product assembly.
Definition at line 803 of file rb_construction.h.
Referenced by libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::RBConstruction::get_inner_product_assembly(), and libMesh::RBConstruction::set_inner_product_assembly().
|
inherited |
The inner product matrix.
Definition at line 484 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_misc_matrices(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::RBConstruction::get_inner_product_matrix(), libMesh::RBConstruction::get_matrix_for_output_dual_solves(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
inherited |
We store an extra linear solver object which we can optionally use for solving all systems in which the system matrix is set to inner_product_matrix.
Definition at line 471 of file rb_construction.h.
Referenced by libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::RBEIMConstruction::initialize_rb_construction(), libMesh::RBConstruction::initialize_rb_construction(), libMesh::RBEIMConstruction::truth_solve(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
|
protectedinherited |
We keep an extra temporary vector that is useful for performing inner products (avoids unnecessary memory allocation/deallocation).
Definition at line 254 of file rb_construction_base.h.
|
inherited |
The LinearSolver
defines the interface used to solve the linear_implicit system.
This class handles all the details of interfacing with various linear algebra packages like PETSc or LASPACK.
Definition at line 158 of file linear_implicit_system.h.
Referenced by libMesh::LinearImplicitSystem::clear(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::LinearImplicitSystem::get_linear_solver(), libMesh::LinearImplicitSystem::init_data(), libMesh::LinearImplicitSystem::reinit(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), and libMesh::TransientRBConstruction::truth_solve().
|
inherited |
The system matrix.
Implicit systems are characterized by the need to solve the linear system Ax=b. This is the system matrix A.
Definition at line 393 of file implicit_system.h.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), add_M_C_K_helmholtz(), libMesh::ImplicitSystem::add_system_matrix(), libMesh::ImplicitSystem::adjoint_solve(), assemble(), libMesh::ImplicitSystem::assemble(), LinearElasticity::assemble(), assemble_1D(), assemble_biharmonic(), assemble_elasticity(), assemble_ellipticdg(), assemble_helmholtz(), assemble_laplace(), assemble_matrix_and_rhs(), assemble_poisson(), assemble_shell(), assemble_stokes(), assemble_wave(), libMesh::FEMSystem::assembly(), libMesh::LinearImplicitSystem::assembly(), libMesh::NonlinearImplicitSystem::assembly(), assembly_with_dg_fem_context(), libMesh::NewmarkSystem::compute_matrix(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::ContinuationSystem::continuation_solve(), DMlibMeshJacobian(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), fill_dirichlet_bc(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::ImplicitSystem::init_matrices(), main(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::ImplicitSystem::sensitivity_solve(), libMesh::NewtonSolver::solve(), libMesh::PetscDiffSolver::solve(), libMesh::NoxNonlinearSolver< Number >::solve(), libMesh::EigenTimeSolver::solve(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), libMesh::NonlinearImplicitSystem::solve(), libMesh::ContinuationSystem::solve_tangent(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve(), and libMesh::ImplicitSystem::weighted_sensitivity_solve().
|
protectedinherited |
Maximum number of reduced basis functions we are willing to use.
Definition at line 762 of file rb_construction.h.
Referenced by libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::get_Nmax(), libMesh::RBConstruction::print_info(), libMesh::RBConstruction::process_parameters_file(), and libMesh::RBConstruction::set_Nmax().
|
privateinherited |
We may also need a second set of matrices/vectors that do not have the Dirichlet boundary conditions enforced.
Definition at line 845 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), and libMesh::RBConstruction::get_non_dirichlet_Aq().
|
privateinherited |
Definition at line 846 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), and libMesh::RBConstruction::get_non_dirichlet_Fq().
|
privateinherited |
Definition at line 848 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_misc_matrices(), and libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix().
|
privateinherited |
Definition at line 847 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), and libMesh::RBConstruction::get_non_dirichlet_output_vector().
|
privateinherited |
This boolean indicates if we normalize the RB error in the greedy using RBEvaluation::get_error_bound_normalization().
Definition at line 861 of file rb_construction.h.
Referenced by libMesh::RBConstruction::get_normalize_rb_bound_in_greedy(), libMesh::RBConstruction::get_RB_error_bound(), and libMesh::RBConstruction::set_normalize_rb_bound_in_greedy().
|
inherited |
The vector storing the dual norm inner product terms for each output.
Definition at line 496 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), and libMesh::RBConstruction::compute_output_dual_innerprods().
|
protectedinherited |
A boolean flag to indicate whether or not the output dual norms have already been computed — used to make sure that we don't recompute them unnecessarily.
Definition at line 775 of file rb_construction.h.
Referenced by libMesh::RBConstruction::compute_output_dual_innerprods().
|
privateinherited |
The libMesh vectors that define the output functionals.
Each row corresponds to the affine expansion of an output.
Definition at line 838 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::clear(), and libMesh::RBConstruction::get_output_vector().
unsigned int SimpleRBConstruction::p_var |
Variable number for pd.
Definition at line 146 of file rb_classes.h.
Referenced by init_context(), and init_data().
|
privateinherited |
Vector storing the current parameters.
Definition at line 224 of file rb_parametrized.h.
Referenced by libMesh::RBParametrized::clear(), libMesh::RBParametrized::get_parameters(), libMesh::RBParametrized::RBParametrized(), and libMesh::RBParametrized::set_parameters().
|
privateinherited |
Flag indicating whether the parameters have been initialized.
Definition at line 219 of file rb_parametrized.h.
Referenced by libMesh::RBParametrized::clear(), libMesh::RBParametrized::get_discrete_parameter_values(), libMesh::RBParametrized::get_n_continuous_params(), libMesh::RBParametrized::get_n_discrete_params(), libMesh::RBParametrized::get_n_params(), libMesh::RBParametrized::get_parameter_max(), libMesh::RBParametrized::get_parameter_min(), libMesh::RBParametrized::get_parameter_names(), libMesh::RBParametrized::get_parameters(), libMesh::RBParametrized::get_parameters_max(), libMesh::RBParametrized::get_parameters_min(), libMesh::RBParametrized::initialize_parameters(), libMesh::RBParametrized::is_discrete_parameter(), libMesh::RBParametrized::print_parameters(), and libMesh::RBParametrized::set_parameters().
|
privateinherited |
Definition at line 230 of file rb_parametrized.h.
Referenced by libMesh::RBParametrized::clear(), libMesh::RBParametrized::get_n_params(), libMesh::RBParametrized::get_parameter_max(), libMesh::RBParametrized::get_parameters_max(), libMesh::RBParametrized::initialize_parameters(), and libMesh::RBParametrized::RBParametrized().
|
privateinherited |
Vectors that define the ranges (min and max) for the parameters.
Definition at line 229 of file rb_parametrized.h.
Referenced by libMesh::RBParametrized::clear(), libMesh::RBParametrized::get_n_params(), libMesh::RBParametrized::get_parameter_min(), libMesh::RBParametrized::get_parameter_names(), libMesh::RBParametrized::get_parameters_min(), libMesh::RBParametrized::initialize_parameters(), and libMesh::RBParametrized::RBParametrized().
|
inherited |
Values of the quantities of interest.
This vector needs to be both resized and filled by the user before any quantity of interest assembly is done and before any sensitivities are calculated.
Definition at line 1574 of file system.h.
Referenced by libMesh::ImplicitSystem::adjoint_qoi_parameter_sensitivity(), libMesh::ExplicitSystem::assemble_qoi(), libMesh::FEMSystem::assemble_qoi(), libMesh::DifferentiableSystem::attach_qoi(), libMesh::DiffContext::DiffContext(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::System::n_qois(), CoupledSystem::postprocess(), libMesh::ImplicitSystem::qoi_parameter_hessian(), and libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product().
|
protectedinherited |
Flag to indicate whether we print out extra information during the Offline stage.
Definition at line 239 of file rb_construction_base.h.
|
privateinherited |
This member holds the (parameter independent) assembly functors that define the "affine expansion" of the PDE that we are solving.
Definition at line 798 of file rb_construction.h.
Referenced by libMesh::RBConstruction::add_scaled_Aq(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::assemble_Aq_matrix(), libMesh::RBConstruction::assemble_Fq_vector(), libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::RBConstruction::get_rb_assembly_expansion(), and libMesh::RBConstruction::set_rb_assembly_expansion().
|
privateinherited |
The current RBEvaluation object we are using to perform the Evaluation stage of the reduced basis method.
Definition at line 792 of file rb_construction.h.
Referenced by libMesh::RBConstruction::get_rb_evaluation(), libMesh::RBConstruction::is_rb_eval_initialized(), and libMesh::RBConstruction::set_rb_evaluation().
|
privateinherited |
Relative and absolute tolerances for training reduced basis using the Greedy scheme.
Definition at line 854 of file rb_construction.h.
Referenced by libMesh::RBConstruction::get_rel_training_tolerance(), libMesh::RBConstruction::greedy_termination_test(), libMesh::RBConstruction::process_parameters_file(), and libMesh::RBConstruction::set_rel_training_tolerance().
|
inherited |
The system matrix.
Implicit systems are characterized by the need to solve the linear system Ax=b. This is the right-hand-side vector b.
Definition at line 114 of file explicit_system.h.
Referenced by libMesh::__libmesh_petsc_diff_solver_residual(), add_M_C_K_helmholtz(), libMesh::ExplicitSystem::add_system_rhs(), assemble(), libMesh::ImplicitSystem::assemble(), LinearElasticity::assemble(), assemble_1D(), assemble_biharmonic(), assemble_elasticity(), assemble_ellipticdg(), assemble_laplace(), assemble_matrix_and_rhs(), assemble_poisson(), libMesh::ImplicitSystem::assemble_residual_derivatives(), assemble_shell(), assemble_stokes(), assemble_wave(), libMesh::FEMSystem::assembly(), libMesh::LinearImplicitSystem::assembly(), libMesh::NonlinearImplicitSystem::assembly(), assembly_with_dg_fem_context(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), libMesh::Problem_Interface::computeF(), libMesh::ContinuationSystem::continuation_solve(), DMlibMeshFunction(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), fill_dirichlet_bc(), libMesh::ImplicitSystem::forward_qoi_parameter_sensitivity(), libMesh::NewtonSolver::line_search(), HeatSystem::perturb_accumulate_residuals(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), libMesh::NewtonSolver::solve(), libMesh::PetscDiffSolver::solve(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), libMesh::NonlinearImplicitSystem::solve(), libMesh::ContinuationSystem::solve_tangent(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::TransientRBConstruction::update_residual_terms(), libMesh::RBConstruction::update_residual_terms(), libMesh::NewmarkSystem::update_rhs(), libMesh::ImplicitSystem::weighted_sensitivity_adjoint_solve(), and libMesh::ImplicitSystem::weighted_sensitivity_solve().
|
protectedinherited |
This boolean flag indicates whether or not the training set should be the same on all processors.
By default it is false, but in the case of the Empirical Interpolation Method (RBEIMConstruction), for example, we need the training set to be identical on all processors.
Definition at line 247 of file rb_construction_base.h.
|
inherited |
In some cases meshes are intentionally created with degenerate sides as a way to represent, say, triangles using a hex-only mesh.
In this situation we should detect and skip any degenerate sides in order to prevent zero or negative element Jacobian errors.
Definition at line 545 of file rb_construction.h.
Referenced by libMesh::RBConstruction::add_scaled_matrix_and_vector().
|
inherited |
Boolean flag to indicate if we skip residual calculations in train_reduced_basis.
This should only be used in special cases, e.g. when we know a priori that we want exactly one basis function and hence we do not need the residual based error indicator.
Definition at line 522 of file rb_construction.h.
Referenced by libMesh::RBConstruction::train_reduced_basis().
|
inherited |
Data structure to hold solution values.
Definition at line 1539 of file system.h.
Referenced by libMesh::__libmesh_petsc_diff_solver_jacobian(), libMesh::__libmesh_petsc_diff_solver_residual(), libMesh::ExactSolution::_compute_error(), libMesh::UniformRefinementEstimator::_estimate_error(), libMesh::TransientRBConstruction::add_IC_to_RB_space(), libMesh::NewmarkSolver::advance_timestep(), libMesh::AdaptiveTimeSolver::advance_timestep(), libMesh::UnsteadySolver::advance_timestep(), libMesh::ContinuationSystem::apply_predictor(), libMesh::TransientRBConstruction::assemble_affine_expansion(), libMesh::FEMSystem::assembly(), libMesh::LinearImplicitSystem::assembly(), libMesh::EquationSystems::build_parallel_elemental_solution_vector(), libMesh::EquationSystems::build_parallel_solution_vector(), libMesh::System::clear(), libMesh::System::compare(), libMesh::RBEIMConstruction::compute_best_fit_error(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::NewmarkSolver::compute_initial_accel(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBConstruction::compute_residual_dual_norm_slow(), LinearElasticityWithContact::compute_stresses(), LinearElasticity::compute_stresses(), compute_stresses(), LargeDeformationElasticity::compute_stresses(), libMesh::Problem_Interface::computeF(), libMesh::Problem_Interface::computeJacobian(), libMesh::Problem_Interface::computePreconditioner(), libMesh::ContinuationSystem::continuation_solve(), libMesh::ExodusII_IO::copy_elemental_solution(), libMesh::ExodusII_IO::copy_nodal_solution(), libMesh::GMVIO::copy_nodal_solution(), libMesh::ExodusII_IO::copy_scalar_solution(), DMCreateGlobalVector_libMesh(), DMlibMeshFunction(), DMlibMeshJacobian(), libMesh::UnsteadySolver::du(), libMesh::RBEIMConstruction::enrich_RB_space(), libMesh::RBConstruction::enrich_RB_space(), libMesh::WeightedPatchRecoveryErrorEstimator::estimate_error(), libMesh::PatchRecoveryErrorEstimator::estimate_error(), libMesh::JumpErrorEstimator::estimate_error(), libMesh::AdjointRefinementEstimator::estimate_error(), libMesh::AdjointResidualErrorEstimator::estimate_error(), libMesh::ExactErrorEstimator::estimate_error(), libMesh::RBSCMConstruction::evaluate_stability_constant(), libMesh::CondensedEigenSystem::get_eigenpair(), libMesh::EigenSystem::get_eigenpair(), LinearElasticityWithContact::get_least_and_max_gap_function(), libMesh::System::init_data(), libMesh::RBEIMConstruction::initialize_parametrized_functions_in_training_set(), libMesh::ContinuationSystem::initialize_tangent(), libMesh::TransientRBConstruction::initialize_truth(), libMesh::libmesh_petsc_snes_jacobian(), libMesh::libmesh_petsc_snes_residual_helper(), libMesh::RBEIMConstruction::load_basis_function(), libMesh::RBConstruction::load_basis_function(), libMesh::RBEIMConstruction::load_rb_solution(), libMesh::RBConstruction::load_rb_solution(), libMesh::TransientRBConstruction::load_rb_solution(), main(), libMesh::DofMap::max_constraint_error(), libMesh::FEMSystem::mesh_position_get(), libMesh::ErrorVector::plot_error(), libMesh::RBEIMConstruction::plot_parametrized_functions_in_training_set(), libMesh::RBConstruction::print_basis_function_orthogonality(), libMesh::ImplicitSystem::qoi_parameter_hessian(), libMesh::ImplicitSystem::qoi_parameter_hessian_vector_product(), libMesh::System::re_update(), libMesh::System::read_legacy_data(), libMesh::System::read_parallel_data(), libMesh::TransientRBConstruction::read_riesz_representors_from_files(), libMesh::RBConstruction::read_riesz_representors_from_files(), libMesh::System::read_serialized_data(), libMesh::System::reinit(), libMesh::System::restrict_vectors(), libMesh::MemorySolutionHistory::retrieve(), OverlappingAlgebraicGhostingTest::run_ghosting_test(), OverlappingCouplingGhostingTest::run_sparsity_pattern_test(), libMesh::ContinuationSystem::save_current_solution(), libMesh::TransientRBConstruction::set_error_temporal_data(), setup(), libMesh::TwostepTimeSolver::solve(), libMesh::NewtonSolver::solve(), libMesh::PetscDiffSolver::solve(), libMesh::FrequencySystem::solve(), libMesh::LinearImplicitSystem::solve(), libMesh::NonlinearImplicitSystem::solve(), libMesh::RBConstruction::solve_for_matrix_and_rhs(), libMesh::ContinuationSystem::solve_tangent(), libMesh::MemorySolutionHistory::store(), MeshfunctionDFEM::test_mesh_function_dfem(), MeshfunctionDFEM::test_mesh_function_dfem_grad(), MeshFunctionTest::test_p_level(), SystemsTest::testBoundaryProjectCube(), SystemsTest::testDofCouplingWithVarGroups(), MeshInputTest::testExodusWriteElementDataFromDiscontinuousNodalData(), SystemsTest::testProjectCubeWithMeshFunction(), WriteVecAndScalar::testWrite(), libMesh::MeshFunctionSolutionTransfer::transfer(), libMesh::MeshfreeSolutionTransfer::transfer(), libMesh::DirectSolutionTransfer::transfer(), libMesh::BoundaryVolumeSolutionTransfer::transfer_boundary_volume(), libMesh::BoundaryVolumeSolutionTransfer::transfer_volume_boundary(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBEIMConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), libMesh::System::update(), libMesh::System::update_global_solution(), libMesh::TransientRBConstruction::update_RB_initial_condition_all_N(), libMesh::RBEIMConstruction::update_RB_system_matrices(), libMesh::TransientRBConstruction::update_residual_terms(), libMesh::RBConstruction::update_residual_terms(), libMesh::ContinuationSystem::update_solution(), libMesh::NewmarkSystem::update_u_v_a(), libMesh::DTKAdapter::update_variable_values(), libMesh::System::write_parallel_data(), libMesh::TransientRBConstruction::write_riesz_representors_to_files(), libMesh::RBConstruction::write_riesz_representors_to_files(), and libMesh::System::write_serialized_data().
|
inherited |
Boolean flag to indicate whether we store a second copy of each affine operator and vector which does not have Dirichlet bcs enforced.
Definition at line 560 of file rb_construction.h.
Referenced by libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::TransientRBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::TransientRBConstruction::assemble_misc_matrices(), libMesh::RBConstruction::assemble_misc_matrices(), libMesh::TransientRBConstruction::clear(), libMesh::RBConstruction::clear(), libMesh::TransientRBConstruction::get_all_matrices(), libMesh::RBConstruction::get_all_matrices(), libMesh::RBConstruction::get_all_vectors(), libMesh::RBConstruction::get_non_dirichlet_Aq(), libMesh::RBConstruction::get_non_dirichlet_Aq_if_avail(), libMesh::RBConstruction::get_non_dirichlet_Fq(), libMesh::RBConstruction::get_non_dirichlet_Fq_if_avail(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix(), libMesh::RBConstruction::get_non_dirichlet_inner_product_matrix_if_avail(), libMesh::TransientRBConstruction::get_non_dirichlet_M_q(), and libMesh::RBConstruction::get_output_vectors().
|
inherited |
For time-dependent problems, this is the time t at the beginning of the current timestep.
Definition at line 1561 of file system.h.
Referenced by libMesh::UnsteadySolver::adjoint_advance_timestep(), libMesh::AdaptiveTimeSolver::advance_timestep(), libMesh::UnsteadySolver::advance_timestep(), fill_dirichlet_bc(), libMesh::ExactErrorEstimator::find_squared_element_error(), libMesh::MemorySolutionHistory::find_stored_entry(), initialize(), main(), libMesh::WeightedPatchRecoveryErrorEstimator::EstimateError::operator()(), libMesh::System::reinit_constraints(), libMesh::MemorySolutionHistory::retrieve(), libMesh::TwostepTimeSolver::solve(), and libMesh::MemorySolutionHistory::store().
|
inherited |
Vector storing the values of the error bound for each parameter in the training set — the parameter giving the largest error bound is chosen for the next snapshot in the Greedy basis training.
Definition at line 464 of file rb_construction.h.
Referenced by libMesh::RBConstruction::compute_max_error_bound().
|
privateinherited |
The training samples.
Definition at line 268 of file rb_construction_base.h.
|
privateinherited |
Boolean flag to indicate whether or not the parameter ranges have been initialized.
Definition at line 263 of file rb_construction_base.h.
|
privateinherited |
If < 0, use std::time() * processor_id() to seed the random number generator for the training parameters (default).
If >= 0, use the provided value * processor_id() as the random number generator seed.
Definition at line 276 of file rb_construction_base.h.
|
inherited |
Vector storing the truth output values from the most recent truth solve.
Definition at line 490 of file rb_construction.h.
Referenced by libMesh::RBConstruction::allocate_data_structures(), and libMesh::RBConstruction::truth_solve().
unsigned int SimpleRBConstruction::u_var |
Variable number for u.
Definition at line 149 of file rb_classes.h.
Referenced by init_context(), and init_data().
|
inherited |
A boolean flag to indicate whether or not we initialize the Greedy algorithm by performing rb_solves on the training set with an "empty" (i.e.
N=0) reduced basis space.
Definition at line 567 of file rb_construction.h.
Referenced by libMesh::RBEIMConstruction::RBEIMConstruction(), and libMesh::RBConstruction::train_reduced_basis().
|
privateinherited |
Boolean to indicate whether we're using the energy inner-product.
If this is false then we use inner_product_assembly instead.
Definition at line 809 of file rb_construction.h.
Referenced by libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::RBConstruction::get_inner_product_assembly(), libMesh::RBConstruction::set_energy_inner_product(), and libMesh::RBConstruction::set_inner_product_assembly().
|
inherited |
A boolean to be set to true by systems using elem_fixed_solution, for optional use by e.g.
stabilized methods. False by default.
Definition at line 1509 of file system.h.
Referenced by libMesh::EulerSolver::_general_residual(), libMesh::Euler2Solver::_general_residual(), libMesh::SteadySolver::_general_residual(), libMesh::NewmarkSolver::_general_residual(), libMesh::DifferentiableSystem::clear(), libMesh::DiffContext::DiffContext(), and libMesh::FEMContext::pre_fe_reinit().
|
inherited |
Public boolean to toggle verbose mode.
Definition at line 170 of file rb_parametrized.h.
Referenced by libMesh::RBParametrized::valid_params().
|
inherited |
By default, the system will zero out the matrix and the right hand side.
If this flag is false, it is the responsibility of the client code to take care of setting these to zero before assembly begins
Definition at line 400 of file implicit_system.h.
Referenced by libMesh::ImplicitSystem::assemble().