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 "INSADMass.h" 11 : 12 : registerMooseObject("NavierStokesApp", INSADMass); 13 : 14 : InputParameters 15 2896 : INSADMass::validParams() 16 : { 17 2896 : InputParameters params = ADKernelValue::validParams(); 18 2896 : params.addClassDescription("This class computes the mass equation residual and Jacobian " 19 : "contributions (the latter using automatic differentiation) for the " 20 : "incompressible Navier-Stokes " 21 : "equations."); 22 2896 : return params; 23 0 : } 24 : 25 1577 : INSADMass::INSADMass(const InputParameters & parameters) 26 : : ADKernelValue(parameters), 27 3154 : _mass_strong_residual(getADMaterialProperty<Real>("mass_strong_residual")) 28 : { 29 1577 : } 30 : 31 : ADReal 32 31269077 : INSADMass::precomputeQpResidual() 33 : { 34 31269077 : return _mass_strong_residual[_qp]; 35 : }