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 "FVMatPropTimeKernel.h" 11 : #include "NS.h" 12 : 13 : registerMooseObject("NavierStokesApp", FVMatPropTimeKernel); 14 : 15 : InputParameters 16 286 : FVMatPropTimeKernel::validParams() 17 : { 18 286 : InputParameters params = FVTimeKernel::validParams(); 19 286 : params.addClassDescription( 20 : "Returns a material property which should correspond to a time derivative."); 21 572 : params.addRequiredParam<MaterialPropertyName>( 22 : "mat_prop_time_derivative", "The material property containing the time derivative."); 23 286 : return params; 24 0 : } 25 : 26 152 : FVMatPropTimeKernel::FVMatPropTimeKernel(const InputParameters & parameters) 27 : : FVTimeKernel(parameters), 28 304 : _mat_prop_time_derivative(getADMaterialProperty<Real>("mat_prop_time_derivative")) 29 : { 30 152 : } 31 : 32 : ADReal 33 5091960 : FVMatPropTimeKernel::computeQpResidual() 34 : { 35 5091960 : return _mat_prop_time_derivative[_qp]; 36 : }