https://mooseframework.inl.gov
INSFVTimeKernel.h
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 #pragma once
11 
12 #include "FVFunctorTimeKernel.h"
14 
19 {
20 public:
22  INSFVTimeKernel(const InputParameters & params);
23 
25  void gatherRCData(const FaceInfo &) override final {}
26 
27  virtual ~INSFVTimeKernel() = default;
28 
29  void computeResidual() override final {}
30  void computeJacobian() override final {}
32  void computeOffDiagJacobian() override final {}
33  void computeResidualAndJacobian() override final {}
34 
35 protected:
36  ADReal computeQpResidual() override final
37  {
38  mooseError("INSFVTimeKernels must implement gatherRCData and not computeQpResidual");
39  }
40 
44  void addResidualAndJacobian(const ADReal & residual, dof_id_type dof);
45 
48 
49 private:
51 };
virtual void computeOffDiagJacobian()
void computeJacobian() override final
void addResidualAndJacobian(const ADReal &residual, dof_id_type dof)
Process into either the system residual or Jacobian.
const bool _contribute_to_rc_coeffs
Whether to contribute to RC coefficients.
All navier-stokes momentum time derivative terms should inherit from this class.
static InputParameters validParams()
DualNumber< Real, DNDerivativeType, true > ADReal
void gatherRCData(const FaceInfo &) override final
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
ADReal computeQpResidual() override final
const Elem *const & _current_elem
void computeOffDiagJacobian() override final
INSFVTimeKernel(const InputParameters &params)
virtual void gatherRCData(const Elem &elem)=0
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
All objects that contribute to pressure-based (e.g.
void computeResidual() override final
void computeResidualAndJacobian() override final
void mooseError(Args &&... args) const
virtual ~INSFVTimeKernel()=default
uint8_t dof_id_type