https://mooseframework.inl.gov
PostprocessorSourceScalarKernel.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 
19  params.addRequiredParam<PostprocessorName>("pp", "Post-processor to act as source");
20 
21  params.addClassDescription("Adds arbitrary post-processor value as source term");
22 
23  return params;
24 }
25 
27  : ODEKernel(params),
28 
29  _pp(getPostprocessorValue("pp"))
30 {
31 }
32 
33 Real
35 {
36  return -_pp;
37 }
PostprocessorSourceScalarKernel(const InputParameters &params)
Adds an arbitrary post-processor value as a source term.
void addRequiredParam(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("ThermalHydraulicsApp", PostprocessorSourceScalarKernel)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
const PostprocessorValue & _pp
Post-processor to act as source.