25 class FiniteElementState;
46 const std::vector<ConstFieldPtr>& fields)
const = 0;
58 const std::vector<ConstFieldPtr>& fields,
int field_ordinal)
const = 0;
69 const std::vector<ConstFieldPtr>& fields)
const = 0;
72 std::string
name()
const {
return name_; }
virtual mfem::Vector mesh_coordinate_gradient(double time, double dt, ConstFieldPtr shape_disp, const std::vector< ConstFieldPtr > &fields) const =0
Virtual interface for computing objective gradient with respect to the mesh coordinates.
virtual ~ScalarObjective()
destructor
virtual mfem::Vector gradient(double time, double dt, ConstFieldPtr shape_disp, const std::vector< ConstFieldPtr > &fields, int field_ordinal) const =0
Virtual interface for computing objective gradient from a vector of smith::FiniteElementState*.
std::string name() const
name
virtual double evaluate(double time, double dt, ConstFieldPtr shape_disp, const std::vector< ConstFieldPtr > &fields) const =0
Virtual interface for computing the scale value for the objective/constrant, given a vector of smith:...
ScalarObjective(const std::string &name)
base constructor takes the name of the physics
A file defining some enums and structs that are used by the different physics modules.
Defines common types and helper functions for using the residual and scalar_objective classes.
Accelerator functionality.
FiniteElementState const * ConstFieldPtr
using