https://mooseframework.inl.gov
INSFVTimeKernel.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 
10 #include "INSFVTimeKernel.h"
11 #include "SystemBase.h"
12 #include "MooseVariableFE.h"
13 #include "Assembly.h"
14 #include "SubProblem.h"
15 
18 {
19  auto params = FVFunctorTimeKernel::validParams();
21  params.addParam<bool>(
22  "contribute_to_rc",
23  true,
24  "Whether the time derivative term should contribute to Rhie-Chow coefficients");
25  params.addParamNamesToGroup("contribute_to_rc", "Advanced");
26  return params;
27 }
28 
30  : FVFunctorTimeKernel(params),
32  _contribute_to_rc_coeffs(getParam<bool>("contribute_to_rc"))
33 {
34 }
35 
36 void
38 {
40  std::array<ADReal, 1>{{residual}},
41  std::array<dof_id_type, 1>{{dof_index}},
43 }
void addResidualsAndJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
void addResidualAndJacobian(const ADReal &residual, dof_id_type dof)
Process into either the system residual or Jacobian.
static InputParameters validParams()
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
INSFVTimeKernel(const InputParameters &params)
All objects that contribute to pressure-based (e.g.
Assembly & _assembly
static InputParameters validParams()
void scalingFactor(const std::vector< Real > &factor)
uint8_t dof_id_type
MooseVariableFV< Real > & _var