20#ifndef LIBMESH_DIFF_QOI_H
21#define LIBMESH_DIFF_QOI_H
24#include "libmesh/diff_context.h"
162 virtual std::unique_ptr<DifferentiableQoI>
clone() =0;
167 virtual void thread_join(std::vector<Number> & qoi,
168 const std::vector<Number> & other_qoi,
169 const QoISet & qoi_indices);
176 std::vector<Number> & sys_qoi,
177 std::vector<Number> & local_qoi,
178 const QoISet & qoi_indices);
This class provides all data required for a physics package (e.g.
This class provides a specific system class.
virtual void clear_qoi()
Clear all the data structures associated with the QoI.
bool assemble_qoi_elements
If assemble_qoi_elements is false (it is true by default), the assembly loop for a quantity of intere...
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(DiffContext &, const QoISet &)
Does any work that needs to be done on side of elem in a quantity of interest assembly loop,...
bool assemble_qoi_sides
If assemble_qoi_sides is true (it is false by default), the assembly loop for a quantity of interest ...
DifferentiableQoI()
Constructor.
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 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_internal_sides
If assemble_qoi_internal_sides is true (it is false by default), the assembly loop for a quantity of ...
virtual std::unique_ptr< DifferentiableQoI > clone()=0
Copy of this object.
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...
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 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 ~DifferentiableQoI()=default
Destructor.
virtual void init_qoi_count(System &)
Initialize system qoi.
virtual void init_context(DiffContext &)
Prepares the result of a build_context() call for use.
Provides a uniform interface to vector storage schemes for different linear algebra libraries.
Data structure for specifying which Quantities of Interest should be calculated in an adjoint or a pa...
Manages consistently variables, degrees of freedom, and coefficient vectors.
The libMesh namespace provides an interface to certain functionality in the library.