libMesh
|
#include <assembly.h>
Public Member Functions | |
Ex6ThetaExpansion () | |
Constructor. More... | |
virtual Number | eval_A_theta (unsigned int q, const RBParameters &mu) const |
Evaluate theta_q_a at the current parameter. More... | |
virtual std::vector< Number > | eval_A_theta (unsigned int q, const std::vector< RBParameters > &mus) const |
Evaluate theta_q_a at multiple parameters simultaneously. More... | |
virtual Number | eval_F_theta (unsigned int q, const RBParameters &mu) const |
Evaluate theta_q_f at the current parameter. More... | |
virtual std::vector< Number > | eval_F_theta (unsigned int q, const std::vector< RBParameters > &mus) const |
Evaluate theta_q_f at multiple parameters simultaneously. More... | |
virtual Number | eval_output_theta (unsigned int output_index, unsigned int q_l, const RBParameters &mu) const |
Evaluate theta_q_l at the current parameter. More... | |
virtual std::vector< Number > | eval_output_theta (unsigned int output_index, unsigned int q_l, const std::vector< RBParameters > &mus) const |
Evaluate theta_q_l at multiple parameters simultaneously. More... | |
unsigned int | get_n_A_terms () const |
Get Q_a, the number of terms in the affine expansion for the bilinear form. More... | |
unsigned int | get_n_F_terms () const |
Get Q_f, the number of terms in the affine expansion for the right-hand side. More... | |
unsigned int | get_n_outputs () const |
Get n_outputs, the number output functionals. More... | |
unsigned int | get_n_output_terms (unsigned int output_index) const |
Get the number of affine terms associated with the specified output. More... | |
unsigned int | get_total_n_output_terms () const |
Returns the total number of affine terms associated with all outputs. More... | |
unsigned int | output_index_1D (unsigned int n, unsigned int q_l) const |
Computes the one-dimensional index for output n, term q_l implied by a "row-major" ordering of the outputs. More... | |
virtual void | attach_A_theta (RBTheta *theta_q_a) |
Attach a pointer to a functor object that defines one of the theta_q_a terms. More... | |
virtual void | attach_multiple_A_theta (std::vector< std::unique_ptr< RBTheta >> &theta_q_a) |
Attach a vector of pointers to functor objects that each define one of the theta_q_a terms. More... | |
virtual void | attach_F_theta (RBTheta *theta_q_f) |
Attach a pointer to a functor object that defines one of the theta_q_a terms. More... | |
virtual void | attach_multiple_F_theta (std::vector< std::unique_ptr< RBTheta >> &theta_q_f) |
Attach a vector of pointers to functor objects that each define one of the theta_q_f terms. More... | |
virtual void | attach_output_theta (std::vector< std::unique_ptr< RBTheta >> &theta_q_l) |
Attach a vector of pointers to functor objects that define one of the outputs. More... | |
virtual void | attach_output_theta (std::vector< RBTheta *> theta_q_l) |
Attach a vector of pointers to functor objects that define one of the outputs. More... | |
virtual void | attach_output_theta (RBTheta *theta_q_l) |
Attach a pointer to a functor object that defines one of the outputs. More... | |
Static Public Member Functions | |
static std::string | get_info () |
Gets a string containing the reference information. More... | |
static void | print_info (std::ostream &out_stream=libMesh::out) |
Prints the reference information, by default to libMesh::out . 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 | disable_print_counter_info () |
Public Attributes | |
ThetaA0 | theta_a0 |
ThetaA1 | theta_a1 |
ThetaA2 | theta_a2 |
ThetaF0 | theta_f0 |
ThetaF1 | theta_f1 |
Protected Types | |
typedef std::map< std::string, std::pair< unsigned int, unsigned int > > | Counts |
Data structure to log the information. More... | |
Protected Member Functions | |
void | increment_constructor_count (const std::string &name) noexcept |
Increments the construction counter. More... | |
void | increment_destructor_count (const std::string &name) noexcept |
Increments the destruction counter. More... | |
Static Protected Attributes | |
static Counts | _counts |
Actually holds the data. 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 bool | _enable_print_counter = true |
Flag to control whether reference count information is printed when print_info is called. More... | |
Definition at line 379 of file assembly.h.
|
protectedinherited |
Data structure to log the information.
The log is identified by the class name.
Definition at line 119 of file reference_counter.h.
|
inline |
Constructor.
Definition at line 385 of file assembly.h.
References libMesh::RBThetaExpansion::attach_A_theta(), libMesh::RBThetaExpansion::attach_F_theta(), theta_a0, theta_a1, theta_a2, theta_f0, and theta_f1.
|
virtualinherited |
Attach a pointer to a functor object that defines one of the theta_q_a terms.
Definition at line 77 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_A_theta_vector, and libMesh::libmesh_assert().
Referenced by AcousticsRBThetaExpansion::AcousticsRBThetaExpansion(), CDRBThetaExpansion::CDRBThetaExpansion(), EimTestRBThetaExpansion::EimTestRBThetaExpansion(), ElasticityThetaExpansion::ElasticityThetaExpansion(), and Ex6ThetaExpansion().
|
virtualinherited |
Attach a pointer to a functor object that defines one of the theta_q_a terms.
Definition at line 93 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_F_theta_vector, and libMesh::libmesh_assert().
Referenced by AcousticsRBThetaExpansion::AcousticsRBThetaExpansion(), CDRBThetaExpansion::CDRBThetaExpansion(), ElasticityThetaExpansion::ElasticityThetaExpansion(), and Ex6ThetaExpansion().
|
virtualinherited |
Attach a vector of pointers to functor objects that each define one of the theta_q_a terms.
Definition at line 84 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_A_theta_vector, and libMesh::libmesh_assert().
|
virtualinherited |
Attach a vector of pointers to functor objects that each define one of the theta_q_f terms.
Definition at line 100 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_F_theta_vector, and libMesh::libmesh_assert().
|
virtualinherited |
Attach a vector of pointers to functor objects that define one of the outputs.
Definition at line 109 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector.
Referenced by AcousticsRBThetaExpansion::AcousticsRBThetaExpansion(), libMesh::RBThetaExpansion::attach_output_theta(), CDRBThetaExpansion::CDRBThetaExpansion(), and EimTestRBThetaExpansion::EimTestRBThetaExpansion().
|
virtualinherited |
Attach a vector of pointers to functor objects that define one of the outputs.
Definition at line 119 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector.
|
virtualinherited |
Attach a pointer to a functor object that defines one of the outputs.
Definition at line 124 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::attach_output_theta(), and libMesh::libmesh_assert().
|
staticinherited |
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 94 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
|
virtualinherited |
Evaluate theta_q_a at the current parameter.
Override if the theta functions need to be treated differently in subclasses.
Definition at line 134 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_A_theta_vector, libMesh::RBThetaExpansion::get_n_A_terms(), and libMesh::libmesh_assert().
Referenced by libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBSCMEvaluation::get_SCM_LB(), libMesh::RBSCMEvaluation::get_SCM_UB(), main(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_assembly(), and libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm().
|
virtualinherited |
Evaluate theta_q_a at multiple parameters simultaneously.
Definition at line 143 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_A_theta_vector, libMesh::RBThetaExpansion::get_n_A_terms(), and libMesh::libmesh_assert().
|
virtualinherited |
Evaluate theta_q_f at the current parameter.
Definition at line 152 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_F_theta_vector, libMesh::RBThetaExpansion::get_n_F_terms(), and libMesh::libmesh_assert().
Referenced by libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::compute_residual_dual_norm(), main(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_assembly(), and libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm().
|
virtualinherited |
Evaluate theta_q_f at multiple parameters simultaneously.
Definition at line 161 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_F_theta_vector, libMesh::RBThetaExpansion::get_n_F_terms(), and libMesh::libmesh_assert().
|
virtualinherited |
Evaluate theta_q_l at the current parameter.
Definition at line 170 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector, libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), and libMesh::libmesh_assert().
Referenced by libMesh::RBEvaluation::eval_output_dual_norm(), main(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_solve(), and libMesh::RBConstruction::truth_solve().
|
virtualinherited |
Evaluate theta_q_l at multiple parameters simultaneously.
Definition at line 184 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector, libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBThetaExpansion::get_n_outputs(), and libMesh::libmesh_assert().
|
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 |
Get Q_a, the number of terms in the affine expansion for the bilinear form.
Definition at line 31 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_A_theta_vector.
Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::RBDataSerialization::add_rb_scm_evaluation_data_to_builder(), libMesh::RBDataSerialization::add_transient_rb_evaluation_data_to_builder(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_affine_operators(), libMesh::RBConstruction::assemble_inner_product_matrix(), libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::check_evaluated_thetas_size(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBSCMConstruction::compute_SCM_bounding_box(), libMesh::RBThetaExpansion::eval_A_theta(), libMesh::RBEvaluation::eval_output_dual_norm(), libMesh::RBSCMConstruction::evaluate_stability_constant(), libMesh::RBConstruction::get_all_matrices(), libMesh::RBSCMEvaluation::get_SCM_LB(), libMesh::RBSCMEvaluation::get_SCM_UB(), libMesh::TransientRBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBSCMEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBSCMEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), libMesh::RBDataDeserialization::load_rb_scm_evaluation_data(), libMesh::RBDataDeserialization::load_transient_rb_evaluation_data(), main(), libMesh::RBConstruction::preevaluate_thetas(), libMesh::RBSCMConstruction::print_info(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBEvaluation::resize_data_structures(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), libMesh::RBConstruction::update_RB_system_matrices(), and libMesh::RBConstruction::update_residual_terms().
|
inherited |
Get Q_f, the number of terms in the affine expansion for the right-hand side.
Definition at line 37 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_F_theta_vector.
Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::RBDataSerialization::add_transient_rb_evaluation_data_to_builder(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_affine_vectors(), libMesh::TransientRBEvaluation::cache_online_residual_terms(), libMesh::RBEvaluation::check_evaluated_thetas_size(), libMesh::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBThetaExpansion::eval_F_theta(), libMesh::RBEvaluation::eval_output_dual_norm(), libMesh::RBConstruction::get_all_vectors(), libMesh::TransientRBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), libMesh::RBDataDeserialization::load_transient_rb_evaluation_data(), main(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBEvaluation::resize_data_structures(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_assembly(), libMesh::RBConstruction::truth_assembly(), libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm(), libMesh::RBConstruction::update_RB_system_matrices(), and libMesh::RBConstruction::update_residual_terms().
Get the number of affine terms associated with the specified output.
Definition at line 49 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector, and libMesh::RBThetaExpansion::get_n_outputs().
Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBEvaluation::eval_output_dual_norm(), libMesh::RBThetaExpansion::eval_output_theta(), libMesh::RBConstruction::get_output_vectors(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), main(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), and libMesh::RBConstruction::update_RB_system_matrices().
|
inherited |
Get n_outputs, the number output functionals.
Definition at line 43 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector.
Referenced by libMesh::RBDataSerialization::add_rb_evaluation_data_to_builder(), libMesh::TransientRBConstruction::allocate_data_structures(), libMesh::RBConstruction::allocate_data_structures(), libMesh::RBConstruction::assemble_all_output_vectors(), libMesh::RBConstruction::compute_output_dual_innerprods(), libMesh::RBThetaExpansion::eval_output_theta(), libMesh::RBThetaExpansion::get_n_output_terms(), libMesh::RBConstruction::get_output_vectors(), libMesh::RBConstruction::initialize_rb_construction(), libMesh::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBDataDeserialization::load_rb_evaluation_data(), main(), libMesh::RBConstruction::print_info(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::RBEvaluation::resize_data_structures(), libMesh::TransientRBConstruction::truth_solve(), libMesh::RBConstruction::truth_solve(), and libMesh::RBConstruction::update_RB_system_matrices().
|
inherited |
Returns the total number of affine terms associated with all outputs.
Definition at line 57 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector.
Referenced by libMesh::RBEvaluation::check_evaluated_thetas_size(), and main().
|
inlineprotectednoexceptinherited |
Increments the construction counter.
Should be called in the constructor of any derived class that will be reference counted.
Definition at line 183 of file reference_counter.h.
References libMesh::err, libMesh::BasicOStreamProxy< charT, traits >::get(), libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::ReferenceCountedObject().
|
inlineprotectednoexceptinherited |
Increments the destruction counter.
Should be called in the destructor of any derived class that will be reference counted.
Definition at line 207 of file reference_counter.h.
References libMesh::err, libMesh::BasicOStreamProxy< charT, traits >::get(), libMesh::Quality::name(), and libMesh::Threads::spin_mtx.
Referenced by libMesh::ReferenceCountedObject< RBParametrized >::~ReferenceCountedObject().
|
inlinestaticinherited |
Prints the number of outstanding (created, but not yet destroyed) objects.
Definition at line 85 of file reference_counter.h.
References libMesh::ReferenceCounter::_n_objects.
Referenced by libMesh::LibMeshInit::~LibMeshInit().
Computes the one-dimensional index for output n, term q_l implied by a "row-major" ordering of the outputs.
This is useful for indexing into pre-evaluated theta arrays, which store the pre-evaluated output theta values in this order following the "A" and "F" theta values.
Definition at line 65 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector, and libMesh::make_range().
Referenced by libMesh::RBEvaluation::eval_output_dual_norm().
|
staticinherited |
Prints the reference information, by default to libMesh::out
.
Definition at line 81 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter, and libMesh::ReferenceCounter::get_info().
Referenced by libMesh::LibMeshInit::~LibMeshInit().
|
staticprotectedinherited |
Actually holds the data.
Definition at line 124 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::get_info().
|
staticprotectedinherited |
Flag to control whether reference count information is printed when print_info is called.
Definition at line 143 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 |
Mutual exclusion object to enable thread-safe reference counting.
Definition at line 137 of file reference_counter.h.
|
staticprotectedinherited |
The number of objects.
Print the reference count information when the number returns to 0.
Definition at line 132 of file reference_counter.h.
Referenced by libMesh::ReferenceCounter::n_objects(), libMesh::ReferenceCounter::ReferenceCounter(), and libMesh::ReferenceCounter::~ReferenceCounter().
ThetaA0 Ex6ThetaExpansion::theta_a0 |
Definition at line 395 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaA1 Ex6ThetaExpansion::theta_a1 |
Definition at line 396 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaA2 Ex6ThetaExpansion::theta_a2 |
Definition at line 397 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaF0 Ex6ThetaExpansion::theta_f0 |
Definition at line 398 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaF1 Ex6ThetaExpansion::theta_f1 |
Definition at line 399 of file assembly.h.
Referenced by Ex6ThetaExpansion().