https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
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
36void
37INSFVTimeKernel::addResidualAndJacobian(const ADReal & residual, const dof_id_type dof_index)
38{
40 std::array<ADReal, 1>{{residual}},
41 std::array<dof_id_type, 1>{{dof_index}},
43}
DualNumber< Real, DNDerivativeType, true > ADReal
MooseVariableFV< Real > & _var
static InputParameters validParams()
All objects that contribute to pressure-based (e.g.
INSFVTimeKernel(const InputParameters &params)
static InputParameters validParams()
void addResidualAndJacobian(const ADReal &residual, dof_id_type dof)
Process into either the system residual or Jacobian.
void scalingFactor(const std::vector< Real > &factor)
Assembly & _assembly
void addResidualsAndJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)