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