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 "FVPorosityTimeDerivative.h" 11 : #include "NS.h" 12 : 13 : registerMooseObject("NavierStokesApp", FVPorosityTimeDerivative); 14 : 15 : InputParameters 16 34 : FVPorosityTimeDerivative::validParams() 17 : { 18 34 : InputParameters params = FVTimeKernel::validParams(); 19 34 : params.addClassDescription("A time derivative multiplied by a porosity material property"); 20 34 : params.addParam<MaterialPropertyName>(NS::porosity, NS::porosity, "The porosity"); 21 34 : return params; 22 0 : } 23 : 24 18 : FVPorosityTimeDerivative::FVPorosityTimeDerivative(const InputParameters & parameters) 25 18 : : FVTimeKernel(parameters), _eps(getMaterialProperty<Real>(NS::porosity)) 26 : { 27 18 : } 28 : 29 : ADReal 30 20000 : FVPorosityTimeDerivative::computeQpResidual() 31 : { 32 20000 : return _eps[_qp] * FVTimeKernel::computeQpResidual(); 33 : }