21 #include "libmesh/rb_assembly_expansion.h" 22 #include "libmesh/elem_assembly.h" 31 "Error: We must have q < get_n_A_terms in perform_A_interior_assembly.");
42 "Error: We must have q < get_n_A_terms in perform_A_boundary_assembly.");
53 "Error: We must have q < get_n_F_terms in perform_F_interior_assembly.");
64 "Error: We must have q < get_n_F_terms in perform_F_interior_assembly.");
76 "Error: We must have output_index < n_outputs and " 77 "q_l < get_n_output_terms(output_index) in perform_output_interior_assembly.");
89 "Error: We must have output_index < n_outputs and " 90 "q_l < get_n_output_terms(output_index) in perform_output_boundary_assembly.");
99 return cast_int<unsigned int>
105 return cast_int<unsigned int>
111 return cast_int<unsigned int>
117 libmesh_error_msg_if(index >=
get_n_outputs(),
"Error: We must have index < n_outputs in get_Q_l.");
119 return cast_int<unsigned int>
130 for (
auto & up : Aq_assembly)
141 for (
auto & up : Fq_assembly)
147 std::vector<ElemAssembly *> output_assembly_ptr;
148 for (
auto & up : output_assembly)
149 output_assembly_ptr.push_back(up.get());
161 std::vector<ElemAssembly *> L_vector(1); L_vector[0] = output_assembly;
169 "Error: We must have q < get_n_A_terms in get_A_assembly.");
177 "Error: We must have q < get_n_F_terms in get_F_assembly.");
186 "Error: We must have output_index < n_outputs and " 187 "q_l < get_n_output_terms(output_index) in get_output_assembly.");
void perform_output_boundary_assembly(unsigned int output_index, unsigned int q_l, FEMContext &context) const
Perform the specified output assembly.
unsigned int get_n_outputs() const
Get n_outputs, the number output functionals.
ElemAssembly & get_F_assembly(unsigned int q)
Return a reference to the specified F_assembly object.
void perform_F_interior_assembly(unsigned int q, FEMContext &context) const
Perform the specified F interior assembly.
unsigned int get_n_output_terms(unsigned int output_index) const
Get the number of affine terms associated with the specified output.
ElemAssembly & get_output_assembly(unsigned int output_index, unsigned int q_l)
Return a reference to the specified output assembly object.
The libMesh namespace provides an interface to certain functionality in the library.
void attach_multiple_A_assembly(std::vector< std::unique_ptr< ElemAssembly >> &Aq_assembly)
Attach multiple ElemAssembly objects for the left-hand side (both interior and boundary assembly)...
std::vector< ElemAssembly * > _F_assembly_vector
Vector storing the function pointers to the assembly routines for the rhs affine vectors.
void attach_F_assembly(ElemAssembly *Fq_assembly)
Attach ElemAssembly object for the right-hand side (both interior and boundary assembly).
std::vector< std::vector< ElemAssembly * > > _output_assembly_vector
Vector storing the function pointers to the assembly routines for the outputs.
void perform_output_interior_assembly(unsigned int output_index, unsigned int q_l, FEMContext &context) const
Perform the specified output assembly.
void perform_F_boundary_assembly(unsigned int q, FEMContext &context) const
Perform the specified F boundary assembly.
This class provides all data required for a physics package (e.g.
void attach_A_assembly(ElemAssembly *Aq_assembly)
Attach ElemAssembly object for the left-hand side (both interior and boundary assembly).
std::vector< ElemAssembly * > _A_assembly_vector
Vectors storing the function pointers to the assembly routines for the affine operators, both interior and boundary assembly.
void perform_A_boundary_assembly(unsigned int q, FEMContext &context) const
Perform the specified A boundary assembly.
ElemAssembly & get_A_assembly(unsigned int q)
Return a reference to the specified A_assembly object.
ElemAssembly provides a per-element (interior and boundary) assembly functionality.
void perform_A_interior_assembly(unsigned int q, FEMContext &context) const
Perform the specified A interior assembly.
unsigned int get_n_A_terms() const
Get Q_a, the number of terms in the affine expansion for the bilinear form.
unsigned int get_n_F_terms() const
Get Q_f, the number of terms in the affine expansion for the right-hand side.
virtual void attach_output_assembly(std::vector< std::unique_ptr< ElemAssembly >> &output_assembly)
Attach ElemAssembly object for an output (both interior and boundary assembly).
void attach_multiple_F_assembly(std::vector< std::unique_ptr< ElemAssembly >> &Fq_assembly)
Attach multiple ElemAssembly objects for the right-hand side (both interior and boundary assembly)...