libMesh
|
#include <assembly.h>
Public Member Functions | |
Ex6ThetaExpansion () | |
Constructor. More... | |
virtual Number | eval_A_theta (unsigned int q, const RBParameters &mu) |
Evaluate theta_q_a at the current parameter. More... | |
virtual Number | eval_F_theta (unsigned int q, const RBParameters &mu) |
Evaluate theta_q_f at the current parameter. More... | |
virtual Number | eval_output_theta (unsigned int output_index, unsigned int q_l, const RBParameters &mu) |
Evaluate theta_q_l at the current parameter. 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... | |
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=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) |
Increments the construction counter. More... | |
void | increment_destructor_count (const std::string &name) |
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... | |
Private Attributes | |
std::vector< RBTheta * > | _A_theta_vector |
Vector storing the pointers to the RBTheta functors for A. More... | |
std::vector< RBTheta * > | _F_theta_vector |
Vector storing the RBTheta functors for the affine expansion of the rhs. More... | |
std::vector< std::vector< RBTheta * > > | _output_theta_vector |
Vector storing the RBTheta functors for the affine expansion of the outputs. More... | |
Definition at line 426 of file assembly.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.
|
inline |
Constructor.
Definition at line 432 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 62 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 78 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 69 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_A_theta_vector, libMesh::ReferenceElem::get(), 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 85 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_F_theta_vector, libMesh::ReferenceElem::get(), and libMesh::libmesh_assert().
|
virtualinherited |
Attach a pointer to a functor object that defines one of the outputs.
Definition at line 109 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::attach_output_theta(), and libMesh::libmesh_assert().
|
virtualinherited |
Attach a vector of pointers to functor objects that define one of the outputs.
Definition at line 104 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector.
|
virtualinherited |
Attach a vector of pointers to functor objects that define one of the outputs.
Definition at line 94 of file rb_theta_expansion.C.
References libMesh::RBThetaExpansion::_output_theta_vector, and libMesh::ReferenceElem::get().
Referenced by AcousticsRBThetaExpansion::AcousticsRBThetaExpansion(), libMesh::RBThetaExpansion::attach_output_theta(), and CDRBThetaExpansion::CDRBThetaExpansion().
|
staticinherited |
Definition at line 106 of file reference_counter.C.
References libMesh::ReferenceCounter::_enable_print_counter.
Referenced by libMesh::LibMeshInit::LibMeshInit().
|
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.
|
virtualinherited |
Evaluate theta_q_a at the current parameter.
Override if the theta functions need to be treated differently in subclasses.
Definition at line 119 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(), 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 the current parameter.
Definition at line 130 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(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_assembly(), and libMesh::TransientRBEvaluation::uncached_compute_residual_dual_norm().
|
virtualinherited |
Evaluate theta_q_l at the current parameter.
Definition at line 141 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(), libMesh::TransientRBEvaluation::rb_solve(), libMesh::RBEvaluation::rb_solve(), libMesh::TransientRBConstruction::truth_solve(), and libMesh::RBConstruction::truth_solve().
|
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 35 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::compute_residual_dual_norm(), libMesh::RBSCMConstruction::compute_SCM_bounding_box(), libMesh::RBThetaExpansion::eval_A_theta(), 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::RBEvaluation::legacy_read_offline_data_from_files(), libMesh::RBSCMEvaluation::legacy_read_offline_data_from_files(), libMesh::TransientRBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBEvaluation::legacy_write_offline_data_to_files(), libMesh::RBSCMEvaluation::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(), 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(), libMesh::TransientRBConstruction::update_residual_terms(), 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 41 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::RBConstruction::compute_Fq_representor_innerprods(), libMesh::RBEvaluation::compute_residual_dual_norm(), libMesh::RBConstruction::enrich_basis_from_rhs_terms(), libMesh::RBThetaExpansion::eval_F_theta(), 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(), 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(), libMesh::TransientRBConstruction::update_residual_terms(), and libMesh::RBConstruction::update_residual_terms().
Get the number of affine terms associated with the specified output.
Definition at line 53 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(), 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 47 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(), 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().
|
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().
|
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.
|
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().
|
privateinherited |
Vector storing the pointers to the RBTheta functors for A.
Definition at line 149 of file rb_theta_expansion.h.
Referenced by libMesh::RBThetaExpansion::attach_A_theta(), libMesh::RBThetaExpansion::attach_multiple_A_theta(), libMesh::RBThetaExpansion::eval_A_theta(), and libMesh::RBThetaExpansion::get_n_A_terms().
|
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 |
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 |
Vector storing the RBTheta functors for the affine expansion of the rhs.
Definition at line 154 of file rb_theta_expansion.h.
Referenced by libMesh::RBThetaExpansion::attach_F_theta(), libMesh::RBThetaExpansion::attach_multiple_F_theta(), libMesh::RBThetaExpansion::eval_F_theta(), and libMesh::RBThetaExpansion::get_n_F_terms().
|
staticprotectedinherited |
Mutual exclusion object to enable thread-safe reference counting.
Definition at line 135 of file reference_counter.h.
|
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 |
Vector storing the RBTheta functors for the affine expansion of the outputs.
Definition at line 159 of file rb_theta_expansion.h.
Referenced by libMesh::RBThetaExpansion::attach_output_theta(), libMesh::RBThetaExpansion::eval_output_theta(), libMesh::RBThetaExpansion::get_n_output_terms(), and libMesh::RBThetaExpansion::get_n_outputs().
ThetaA0 Ex6ThetaExpansion::theta_a0 |
Definition at line 442 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaA1 Ex6ThetaExpansion::theta_a1 |
Definition at line 443 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaA2 Ex6ThetaExpansion::theta_a2 |
Definition at line 444 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaF0 Ex6ThetaExpansion::theta_f0 |
Definition at line 445 of file assembly.h.
Referenced by Ex6ThetaExpansion().
ThetaF1 Ex6ThetaExpansion::theta_f1 |
Definition at line 446 of file assembly.h.
Referenced by Ex6ThetaExpansion().