24 "Helper object to compute nodal normal values via the NodalNormals input block.");
25 params.
set<
bool>(
"_dual_restrictable") =
true;
26 params.
set<std::vector<SubdomainName>>(
"block") = {
"ANY_BLOCK_ID"};
84 Real n = std::sqrt((nx * nx) + (ny * ny) + (nz * nz));
85 if (std::abs(n) >= 1e-13)
88 sln.set(dof_x, nx / n);
89 sln.set(dof_y, ny / n);
90 sln.set(dof_z, nz / n);
registerMooseObject("MooseApp", NodalNormalsEvaluator)
virtual const MooseVariableFieldBase & getVariable(const THREAD_ID tid, const std::string &var_name, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_ANY) const override
Returns the variable reference for requested variable which must be of the expected_var_type (Nonline...
unsigned int number() const
Get variable number coming from libMesh.
Works on top of NodalNormalsPreprocessor.
NodalNormalsEvaluator(const InputParameters ¶meters)
virtual void finalize() override
Finalize.
static InputParameters validParams()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void execute() override
Execute method.
static std::mutex _nodal_normals_mutex
A user object that runs over all the nodes and does an aggregation step to compute a single value.
const Node *const & _current_node
Reference to current node pointer.
static InputParameters validParams()
unsigned int number() const
Gets the number of this system.
NumericVector< Number > & solution()
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
const THREAD_ID _tid
Thread ID of this postprocessor.
processor_id_type processor_id() const