Go to the documentation of this file.
20 #ifndef LIBMESH_DIFF_QOI_H
21 #define LIBMESH_DIFF_QOI_H
24 #include "libmesh/diff_context.h"
71 virtual void init_qoi( std::vector<Number> & ){}
160 virtual std::unique_ptr<DifferentiableQoI>
clone() =0;
165 virtual void thread_join(std::vector<Number> & qoi,
166 const std::vector<Number> & other_qoi,
167 const QoISet & qoi_indices);
173 virtual void parallel_op(
const Parallel::Communicator & communicator,
174 std::vector<Number> & sys_qoi,
175 std::vector<Number> & local_qoi,
176 const QoISet & qoi_indices);
188 #endif // LIBMESH_DIFF_QOI_H
virtual void side_qoi(DiffContext &, const QoISet &)
Does any work that needs to be done on side of elem in a quantity of interest assembly loop,...
virtual void thread_join(std::vector< Number > &qoi, const std::vector< Number > &other_qoi, const QoISet &qoi_indices)
Method to combine thread-local qois.
bool assemble_qoi_elements
If assemble_qoi_elements is false (it is true by default), the assembly loop for a quantity of intere...
The libMesh namespace provides an interface to certain functionality in the library.
virtual void clear_qoi()
Clear all the data structures associated with the QoI.
bool assemble_qoi_internal_sides
If assemble_qoi_internal_sides is true (it is false by default), the assembly loop for a quantity of ...
DifferentiableQoI()
Constructor.
This class provides a specific system class.
virtual void init_context(DiffContext &)
Prepares the result of a build_context() call for use.
virtual void init_qoi(std::vector< Number > &)
Initialize system qoi.
Data structure for specifying which Quantities of Interest should be calculated in an adjoint or a pa...
virtual void element_qoi_derivative(DiffContext &, const QoISet &)
Does any work that needs to be done on elem in a quantity of interest derivative assembly loop,...
virtual void element_qoi(DiffContext &, const QoISet &)
Does any work that needs to be done on elem in a quantity of interest assembly loop,...
virtual void finalize_derivative(NumericVector< Number > &derivatives, std::size_t qoi_index)
Method to finalize qoi derivatives which require more than just a simple sum of element contributions...
virtual void side_qoi_derivative(DiffContext &, const QoISet &)
Does any work that needs to be done on side of elem in a quantity of interest derivative assembly loo...
This class provides all data required for a physics package (e.g.
bool assemble_qoi_sides
If assemble_qoi_sides is true (it is false by default), the assembly loop for a quantity of interest ...
virtual void parallel_op(const Parallel::Communicator &communicator, std::vector< Number > &sys_qoi, std::vector< Number > &local_qoi, const QoISet &qoi_indices)
Method to populate system qoi data structure with process-local qoi.
virtual ~DifferentiableQoI()
Destructor.
virtual std::unique_ptr< DifferentiableQoI > clone()=0
Copy of this object.