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 "INSFEFluidKernelStabilization.h" 13 : 14 : #include "Function.h" 15 : 16 : /** 17 : * The spatial part of the 3D energy conservation for fluid flow 18 : */ 19 : class INSFEFluidEnergyKernel : public INSFEFluidKernelStabilization 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : INSFEFluidEnergyKernel(const InputParameters & parameters); 25 132 : virtual ~INSFEFluidEnergyKernel() {} 26 : 27 : protected: 28 : virtual Real computeQpResidual() override; 29 : virtual Real computeQpJacobian() override; 30 : virtual Real computeQpOffDiagJacobian(unsigned int jvar) override; 31 : 32 : bool _conservative_form; 33 : const MaterialProperty<Real> & _k_elem; 34 : const MaterialProperty<Real> & _cp; 35 : bool _has_porosity_elem; 36 : const VariableValue & _porosity_elem; 37 : bool _has_qv; 38 : const VariableValue & _qv; /// volumetric heat source 39 : bool _has_pke; 40 : const VariableValue & _pke_qv; 41 : const Function * _power_shape_function; 42 : };