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 "TimeKernel.h" 13 : #include "SinglePhaseFluidProperties.h" 14 : 15 : /** 16 : * The transient term of the porous-media mass conservation equation 17 : */ 18 : class PINSFEFluidPressureTimeDerivative : public TimeKernel 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : PINSFEFluidPressureTimeDerivative(const InputParameters & parameters); 24 264 : virtual ~PINSFEFluidPressureTimeDerivative() {} 25 : 26 : protected: 27 : virtual Real computeQpResidual() override; 28 : virtual Real computeQpJacobian() override; 29 : virtual Real computeQpOffDiagJacobian(unsigned int jvar) override; 30 : 31 : const VariableValue & _temperature; 32 : const VariableValue & _temperature_dot; 33 : const VariableValue & _d_temperaturedot_du; 34 : unsigned _temperature_var_number; 35 : const VariableValue & _porosity; 36 : 37 : const SinglePhaseFluidProperties & _eos; 38 : };