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 "INSADEnergyMeshAdvection.h" 11 : #include "INSADMomentumMeshAdvection.h" 12 : 13 : registerMooseObject("NavierStokesApp", INSADEnergyMeshAdvection); 14 : 15 : InputParameters 16 38 : INSADEnergyMeshAdvection::validParams() 17 : { 18 38 : InputParameters params = ADKernelValue::validParams(); 19 38 : params += INSADMomentumMeshAdvection::displacementParams(); 20 38 : params.addClassDescription("This class computes the residual and Jacobian contributions for " 21 : "temperature advection from mesh velocity in an ALE simulation."); 22 38 : return params; 23 0 : } 24 : 25 20 : INSADEnergyMeshAdvection::INSADEnergyMeshAdvection(const InputParameters & parameters) 26 : : ADKernelValue(parameters), 27 20 : _temperature_advected_mesh_strong_residual( 28 20 : getADMaterialProperty<Real>("temperature_advected_mesh_strong_residual")) 29 : { 30 20 : INSADMomentumMeshAdvection::setDisplacementParams(*this); 31 20 : } 32 : 33 : ADReal 34 242612 : INSADEnergyMeshAdvection::precomputeQpResidual() 35 : { 36 242612 : return _temperature_advected_mesh_strong_residual[_qp]; 37 : }