15 #include "libmesh/quadrature.h" 26 "block_orientation_uo",
27 "Name of ComputeBlockOrientation user object for updated block orientation.");
32 "Whether to convert euler angles from degree to radian. The default is to use degrees.");
35 "Output the Euler angle for each block computed from average of quaternions.");
41 _mesh(_subproblem.
mesh()),
42 _uo_name(getParam<UserObjectName>(
"block_orientation_uo")),
44 _num_rows(_mesh.meshSubdomains().size())
56 _uo = &getUserObjectByName<ComputeBlockOrientationBase>(
_uo_name);
90 if (getParam<bool>(
"degree_to_radian"))
91 euler_angle *=
pi / 180.0;
std::vector< VectorPostprocessorValue * > _output_vector
Vector of outputs, where each entry is the vector of average values for single variable in each block...
int _num_cols
Number of columns, representing the number of features in the VectorPostprocessor.
virtual void execute() override
MooseMesh & _mesh
Reference to the mesh.
const Parallel::Communicator & _communicator
virtual void initialize() override
int _num_rows
Number of rows, representing the number of data entries in the VectorPostprocessor.
static InputParameters validParams()
VectorPostprocessorValue & declareVector(const std::string &vector_name)
BlockOrientationFromUserObject(const InputParameters ¶meters)
static InputParameters validParams()
virtual void finalize() override
void max(const T &r, T &o, Request &req) const
IntRange< T > make_range(T beg, T end)
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual EulerAngles getBlockOrientation(SubdomainID block) const
Given a block ID return the block orientation of that block.
const ComputeBlockOrientationBase * _uo
const UserObjectName & _uo_name
User object to grab average value from.
const std::set< SubdomainID > & meshSubdomains() const
registerMooseObject("SolidMechanicsApp", BlockOrientationFromUserObject)