https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
33Real
registerMooseObject("ThermalHydraulicsApp", PostprocessorSourceScalarKernel)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Adds an arbitrary post-processor value as a source term.
const PostprocessorValue & _pp
Post-processor to act as source.
PostprocessorSourceScalarKernel(const InputParameters &params)