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 "PorousFlowTotalGravitationalDensityBase.h" 11 : 12 : InputParameters 13 170 : PorousFlowTotalGravitationalDensityBase::validParams() 14 : { 15 170 : InputParameters params = PorousFlowMaterialVectorBase::validParams(); 16 170 : params.set<std::string>("pf_material_type") = "gravitational_density"; 17 170 : params.addClassDescription("Base class Material for porous medium density"); 18 170 : return params; 19 0 : } 20 : 21 132 : PorousFlowTotalGravitationalDensityBase::PorousFlowTotalGravitationalDensityBase( 22 132 : const InputParameters & parameters) 23 : : PorousFlowMaterialVectorBase(parameters), 24 132 : _gravdensity(declareProperty<Real>("density")), 25 264 : _dgravdensity_dvar(declareProperty<std::vector<Real>>("ddensity_dvar")) 26 : { 27 132 : }