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 "PorousFlowThermalConductivityBase.h" 11 : 12 : template <bool is_ad> 13 : InputParameters 14 3213 : PorousFlowThermalConductivityBaseTempl<is_ad>::validParams() 15 : { 16 3213 : InputParameters params = PorousFlowMaterialVectorBase::validParams(); 17 3213 : params.set<bool>("at_nodes") = false; 18 3213 : params.set<std::string>("pf_material_type") = "thermal_conductivity"; 19 3213 : params.addClassDescription("Base class Material for thermal conductivity"); 20 3213 : return params; 21 0 : } 22 : 23 : template <bool is_ad> 24 2508 : PorousFlowThermalConductivityBaseTempl<is_ad>::PorousFlowThermalConductivityBaseTempl( 25 : const InputParameters & parameters) 26 : : PorousFlowMaterialVectorBase(parameters), 27 2508 : _la_qp(declareGenericProperty<RealTensorValue, is_ad>("PorousFlow_thermal_conductivity_qp")), 28 2508 : _dla_qp_dvar(is_ad ? nullptr 29 2376 : : &declareProperty<std::vector<RealTensorValue>>( 30 2508 : "dPorousFlow_thermal_conductivity_qp_dvar")) 31 : { 32 2508 : if (_nodal_material == true) 33 0 : mooseError("PorousFlowThermalConductivity classes are only defined for at_nodes = false"); 34 2508 : } 35 : 36 : template class PorousFlowThermalConductivityBaseTempl<false>; 37 : template class PorousFlowThermalConductivityBaseTempl<true>;