Line data Source code
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 "Kernel.h" 13 : 14 : /** 15 : * All time kernels should inherit from this class 16 : * 17 : */ 18 : class TimeKernel : public Kernel 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : TimeKernel(const InputParameters & parameters); 24 : 25 : virtual void computeResidual() override; 26 : 27 : /** 28 : * Entry point for additional computation for the local residual after the standard calls 29 : * 30 : * NOTE: This is an advanced interface and in nearly all cases you should just override 31 : * computeQpResidual()! 32 : */ 33 192390167 : virtual void computeResidualAdditional() {} 34 : 35 : protected: 36 : /// Time derivative of u 37 : const VariableValue & _u_dot; 38 : 39 : /// Derivative of u_dot with respect to u 40 : const VariableValue & _du_dot_du; 41 : };