https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
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
35protected:
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
49private:
51};
DualNumber< Real, DNDerivativeType, true > ADReal
const Elem *const & _current_elem
virtual void computeOffDiagJacobian()
All objects that contribute to pressure-based (e.g.
virtual void gatherRCData(const Elem &elem)=0
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
All navier-stokes momentum time derivative terms should inherit from this class.
void computeJacobian() override final
ADReal computeQpResidual() override final
void computeResidualAndJacobian() override final
void computeOffDiagJacobian() override final
static InputParameters validParams()
void addResidualAndJacobian(const ADReal &residual, dof_id_type dof)
Process into either the system residual or Jacobian.
virtual ~INSFVTimeKernel()=default
void gatherRCData(const FaceInfo &) override final
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
void computeResidual() override final
const bool _contribute_to_rc_coeffs
Whether to contribute to RC coefficients.
void mooseError(Args &&... args) const