https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CoupledPressureIncompressibleMomentumSPScalarKernel.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{
23 params.addClassDescription("Implements a generic momentum solve over a 1D flow path, acting on "
24 "the reference pressure drop.");
25 params.addCoupledVar("coupled_mass_flow_rate",
26 {},
27 "coupled_mass_flow_rate. Takes a "
28 "scalar variable name");
29
30 return params;
31}
32
33template <bool is_ad>
36 : Base(parameters),
37 _mc(ScalarCoupleable::coupledGenericScalarValue<is_ad>("coupled_mass_flow_rate"))
38{
39}
40
41template <bool is_ad>
42Real
47
registerMooseObject("ThermalHydraulicsApp", CoupledPressureIncompressibleMomentumSPScalarKernel)
Coupled pressure path-integrated incompressible momentum kernel.
Path-integrated incompressible momentum kernel base class.
void addClassDescription(const std::string &doc_string)
void addCoupledVar(const std::string &name, const std::string &doc_string)