https://mooseframework.inl.gov
NodalPatchRecoveryVariable.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 
11 
13 
16 {
18  params.addRequiredCoupledVar(
19  "variable", "The variable whose value will be fitted over the patch of elements.");
20 
21  params.addClassDescription("Performs patch recovery using a coupled variable.");
22 
23  return params;
24 }
25 
27  : NodalPatchRecoveryBase(params), _v(coupledValue("variable")), _name(coupledName("variable"))
28 {
29 }
30 
31 Real
33 {
34  return _v[_qp];
35 }
36 
37 const VariableName &
39 {
40  return _name;
41 }
NodalPatchRecoveryVariable(const InputParameters &params)
static InputParameters validParams()
const VariableName _name
Variable name.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableName & variableName() const
Returns the variable name.
const VariableValue & _v
Variable value.
registerMooseObject("MooseApp", NodalPatchRecoveryVariable)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
This method adds a coupled variable name pair.
Real computeValue() override
Returns the recovered value at the quadrature point (_qp)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
Patch recovery from a coupled variable.
static InputParameters validParams()