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 "INSADMomentumAdvection.h" 11 : 12 : registerMooseObject("NavierStokesApp", INSADMomentumAdvection); 13 : 14 : InputParameters 15 1421 : INSADMomentumAdvection::validParams() 16 : { 17 1421 : InputParameters params = ADVectorKernelValue::validParams(); 18 1421 : params.addClassDescription("Adds the advective term to the INS momentum equation"); 19 1421 : return params; 20 0 : } 21 : 22 759 : INSADMomentumAdvection::INSADMomentumAdvection(const InputParameters & parameters) 23 : : ADVectorKernelValue(parameters), 24 1518 : _advective_strong_residual(getADMaterialProperty<RealVectorValue>("advective_strong_residual")) 25 : { 26 759 : } 27 : 28 : ADRealVectorValue 29 23913594 : INSADMomentumAdvection::precomputeQpResidual() 30 : { 31 23913594 : return _advective_strong_residual[_qp]; 32 : }