forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NodalPatchRecoveryAuxBase.h
36 lines (27 loc) · 1.01 KB
/
NodalPatchRecoveryAuxBase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#pragma once
#include "AuxKernel.h"
class NodalPatchRecoveryBase;
class NodalPatchRecoveryAuxBase : public AuxKernel
{
public:
static InputParameters validParams();
NodalPatchRecoveryAuxBase(const InputParameters & parameters);
/**
* Block restrict elements on which to perform the variable/property nodal recovery.
*/
void blockRestrictElements(std::vector<dof_id_type> & elem_ids,
const std::vector<dof_id_type> & node_to_elem_pair_elems) const;
protected:
virtual Real computeValue() override;
/// Override this to get the fitted value form a Nodal Patch Recovery User Object
virtual Real nodalPatchRecovery() = 0;
std::vector<dof_id_type> _elem_ids;
};