https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PorousFlowThermalConductivityBase.C
Go to the documentation of this file.
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
11
12template <bool is_ad>
15{
17 params.set<bool>("at_nodes") = false;
18 params.set<std::string>("pf_material_type") = "thermal_conductivity";
19 params.addClassDescription("Base class Material for thermal conductivity");
20 return params;
21}
22
23template <bool is_ad>
25 const InputParameters & parameters)
26 : PorousFlowMaterialVectorBase(parameters),
27 _la_qp(declareGenericProperty<RealTensorValue, is_ad>("PorousFlow_thermal_conductivity_qp")),
28 _dla_qp_dvar(is_ad ? nullptr
29 : &declareProperty<std::vector<RealTensorValue>>(
30 "dPorousFlow_thermal_conductivity_qp_dvar"))
31{
32 if (_nodal_material == true)
33 mooseError("PorousFlowThermalConductivity classes are only defined for at_nodes = false");
34}
35
void mooseError(Args &&... args)
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
Base class for all PorousFlow vector materials.
Base class for materials that provide thermal conducitivity.
PorousFlowThermalConductivityBaseTempl(const InputParameters &parameters)