34 if (o == MAST::SurfaceIntegratedPressureOutput::OutputMode::UNIT_VEC &&
64 if (o == MAST::SurfaceIntegratedPressureOutput::OutputMode::UNIT_VEC) {
66 libmesh_assert(n_vec);
92 libmesh_assert(
false);
104 std::map<const MAST::FunctionBase*, RealVectorX>::const_iterator
112 return (
_load.dot(it->second)) /
_load.norm();
118 return it->second.dot(
_n_vec);
123 libmesh_assert(
false);
147 libmesh_assert(
false);
RealMatrixX _dload_dX
derivative of load wrt state vector.
This provides the base class for definitin of element level contribution of output quantity in an ana...
Real sensitivity(const MAST::FunctionBase &f) const
MAST::SurfaceIntegratedPressureOutput::OutputMode _mode
output calculation mode
void set_output_mode(MAST::SurfaceIntegratedPressureOutput::OutputMode o, const RealVectorX *n_vec=nullptr)
sets the mode that will be used for calculation of the output functional from the load vector...
SurfaceIntegratedPressureOutput(MAST::SurfaceIntegratedPressureOutput::OutputMode o, const RealVectorX &n_vec=RealVectorX::Zero(3, 1))
default constructor
RealVectorX _load
This is the 3x1 vector of the integrated load.
RealVectorX _n_vec
unit vector used for output, if _mode = UNIT_VEC
void clear()
clears the stored data
Matrix< Real, Dynamic, 1 > RealVectorX
RealVectorX derivative() const
virtual ~SurfaceIntegratedPressureOutput()
std::map< const MAST::FunctionBase *, RealVectorX > _load_sensitivity
map of sensitivity of the stress with respect to a parameter