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 : #include "INSADEnergyAdvection.h" 11 : 12 : registerMooseObject("NavierStokesApp", INSADEnergyAdvection); 13 : 14 : InputParameters 15 635 : INSADEnergyAdvection::validParams() 16 : { 17 635 : InputParameters params = ADKernelValue::validParams(); 18 635 : params.addClassDescription("This class computes the residual and Jacobian contributions for " 19 : "temperature advection for a divergence free velocity field."); 20 635 : return params; 21 0 : } 22 : 23 344 : INSADEnergyAdvection::INSADEnergyAdvection(const InputParameters & parameters) 24 : : ADKernelValue(parameters), 25 344 : _temperature_advective_strong_residual( 26 344 : getADMaterialProperty<Real>("temperature_advective_strong_residual")) 27 : { 28 344 : } 29 : 30 : ADReal 31 16222476 : INSADEnergyAdvection::precomputeQpResidual() 32 : { 33 16222476 : return _temperature_advective_strong_residual[_qp]; 34 : }