https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalPatchRecoveryAux.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
12
14
21
23 : NodalPatchRecoveryAuxBase(parameters),
24 _npr(getUserObject<NodalPatchRecoveryBase>("nodal_patch_recovery_uo"))
25{
26 // Check user object block restriction for consistency
28 paramError("nodal_patch_recovery_uo",
29 "Nodal patch recovery auxiliary kernel is not defined in a subset of blocks of the "
30 "associated user object. Revise your input file.");
31}
32Real
registerMooseObject("MooseApp", NodalPatchRecoveryAux)
const Node *const & _current_node
Current node (valid only for nodal kernels)
Definition AuxKernel.h:143
bool isBlockSubset(const std::set< SubdomainID > &ids) const
Test if the class block ids are a subset of the supplied objects.
virtual const std::set< SubdomainID > & blockIDs() const
Return the block subdomain ids for this object Note, if this is not block restricted,...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void paramError(const std::string &param, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
Definition MooseBase.h:457
std::vector< dof_id_type > _elem_ids
local patch of elements used for recovery
static InputParameters validParams()
virtual Real nodalPatchRecovery() override
Override this to get the fitted value from a Nodal Patch Recovery User Object.
static InputParameters validParams()
const NodalPatchRecoveryBase & _npr
NodalPatchRecoveryAux(const InputParameters &parameters)
virtual Real nodalPatchRecovery(const Point &p, const std::vector< dof_id_type > &elem_ids) const
Solve the least-squares problem.