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 "INSADMomentumSUPG.h" 11 : 12 : registerMooseObject("NavierStokesApp", INSADMomentumSUPG); 13 : 14 : InputParameters 15 1969 : INSADMomentumSUPG::validParams() 16 : { 17 1969 : InputParameters params = ADVectorKernelSUPG::validParams(); 18 1969 : params.addClassDescription("Adds the supg stabilization to the INS momentum equation"); 19 1969 : return params; 20 0 : } 21 : 22 1073 : INSADMomentumSUPG::INSADMomentumSUPG(const InputParameters & parameters) 23 : : ADVectorKernelSUPG(parameters), 24 2146 : _momentum_strong_residual(getADMaterialProperty<RealVectorValue>("momentum_strong_residual")) 25 : { 26 1073 : } 27 : 28 : ADRealVectorValue 29 22437332 : INSADMomentumSUPG::precomputeQpStrongResidual() 30 : { 31 22437332 : return _momentum_strong_residual[_qp]; 32 : }