https://mooseframework.inl.gov
Loading...
Searching...
No Matches
IncompressibleMomentumSPScalarKernel.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
12#include "ScalarCoupleable.h"
14
17
18template <bool is_ad>
21{
24 "Implements a generic momentum solve over a 1D flow path, acting on the mass flow rate.");
25 params.addCoupledVar("reference_pressure_drop",
26 {},
27 "Reference system pressure drop from inlet to outlet. Takes a "
28 "scalar variable name");
29 return params;
30}
31
32template <bool is_ad>
34 const InputParameters & parameters)
35 : Base(parameters),
36 _dPc(ScalarCoupleable::coupledGenericScalarValue<is_ad>("reference_pressure_drop"))
37{
38}
39
40template <bool is_ad>
41Real
43{
44 return Base::computeQpJacobianMDot();
45}
46
registerMooseObject("ThermalHydraulicsApp", IncompressibleMomentumSPScalarKernel)
Path-integrated incompressible momentum kernel base class.
Regular path-integrated incompressible momentum kernel.
IncompressibleMomentumSPScalarKernelTempl(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)