https://mooseframework.inl.gov
NodalPatchRecoveryAuxBase.h
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 
10 #pragma once
11 
12 #include "AuxKernel.h"
13 
15 
17 {
18 public:
20 
22 
26  void blockRestrictElements(std::vector<dof_id_type> & elem_ids,
27  const std::vector<dof_id_type> & node_to_elem_pair_elems) const;
28 
29 protected:
30  virtual Real computeValue() override;
31 
33  virtual Real nodalPatchRecovery() = 0;
34 
36  std::vector<dof_id_type> _elem_ids;
37 };
void blockRestrictElements(std::vector< dof_id_type > &elem_ids, const std::vector< dof_id_type > &node_to_elem_pair_elems) const
Block restrict elements on which to perform the variable/property nodal recovery. ...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::vector< dof_id_type > _elem_ids
local patch of elements used for recovery
static InputParameters validParams()
NodalPatchRecoveryAuxBase(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeValue() override
Compute and return the value of the aux variable.
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real nodalPatchRecovery()=0
Override this to get the fitted value from a Nodal Patch Recovery User Object.