OGS
ProcessLib::HeatTransportBHE Namespace Reference

Namespaces

namespace  BHE
 
namespace  detail
 

Classes

struct  AlgebraicBCSetting
 
class  BHEBottomDirichletBoundaryCondition
 
class  BHEInflowDirichletBoundaryCondition
 
struct  BHEMeshData
 
class  HeatTransportBHELocalAssemblerBHE
 
class  HeatTransportBHELocalAssemblerInterface
 
class  HeatTransportBHELocalAssemblerSoil
 
class  HeatTransportBHEProcess
 
struct  HeatTransportBHEProcessData
 
struct  IntegrationPointDataBHE
 
struct  IntegrationPointDataSoil
 
class  LocalDataInitializer
 
struct  SecondaryData
 

Functions

BHEMeshData getBHEDataInMesh (MeshLib::Mesh const &mesh)
 
std::unique_ptr< BHEBottomDirichletBoundaryConditioncreateBHEBottomDirichletBoundaryCondition (std::pair< GlobalIndexType, GlobalIndexType > &&in_out_global_indices)
 
template<typename BHEUpdateCallback >
std::unique_ptr< BHEInflowDirichletBoundaryCondition< BHEUpdateCallback > > createBHEInflowDirichletBoundaryCondition (std::pair< GlobalIndexType, GlobalIndexType > &&in_out_global_indices, BHEUpdateCallback bhe_update_callback)
 
void createAndInsertBHE (const std::string &bhe_type, const std::vector< int > &bhe_ids_of_this_bhe, const BaseLib::ConfigTree &bhe_config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, std::map< int, BHE::BHETypes > &bhes_map)
 
std::unique_ptr< ProcesscreateHeatTransportBHEProcess (std::string const &name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media)
 
template<template< typename > class LocalAssemblerSoilImplementation, template< typename, typename > class LocalAssemblerBHEImplementation, typename LocalAssemblerInterface , typename... ExtraCtorArgs>
void createLocalAssemblers (std::vector< MeshLib::Element * > const &mesh_elements, NumLib::LocalToGlobalIndexMap const &dof_table, std::vector< std::unique_ptr< LocalAssemblerInterface > > &local_assemblers, NumLib::IntegrationOrder const integration_order, ExtraCtorArgs &&... extra_ctor_args)
 

Variables

std::map< std::string_view, std::function< BHE::BHETypes(BaseLib::ConfigTree const &, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &)> > bheCreators
 

Function Documentation

◆ createAndInsertBHE()

void ProcessLib::HeatTransportBHE::createAndInsertBHE ( const std::string & bhe_type,
const std::vector< int > & bhe_ids_of_this_bhe,
const BaseLib::ConfigTree & bhe_config,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves,
std::map< int, BHE::BHETypes > & bhes_map )

Definition at line 66 of file CreateHeatTransportBHEProcess.cpp.

73{
74 auto bhe_creator_it = bheCreators.find(bhe_type);
75 if (bhe_creator_it == bheCreators.end())
76 {
77 OGS_FATAL("Unknown BHE type: {:s}", bhe_type);
78 }
79 for (auto const& id : bhe_ids_of_this_bhe)
80 {
81 std::pair<std::map<int, BHE::BHETypes>::iterator, bool> result;
82 if (id == bhe_ids_of_this_bhe[0])
83 {
84 result = bhes_map.try_emplace(
85 id, bhe_creator_it->second(bhe_config, curves));
86 }
87 else
88 {
89 result = bhes_map.try_emplace(
90 id, bhes_map.find(bhe_ids_of_this_bhe[0])->second);
91 }
92 if (!result.second)
93 {
95 "BHE with id '{:d}' is already present in the list! Check for "
96 "duplicate definitions of BHE ids.",
97 id);
98 }
99 }
100}
#define OGS_FATAL(...)
Definition Error.h:26
std::map< std::string_view, std::function< BHE::BHETypes(BaseLib::ConfigTree const &, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &)> > bheCreators

References bheCreators, and OGS_FATAL.

Referenced by createHeatTransportBHEProcess().

◆ createBHEBottomDirichletBoundaryCondition()

std::unique_ptr< BHEBottomDirichletBoundaryCondition > ProcessLib::HeatTransportBHE::createBHEBottomDirichletBoundaryCondition ( std::pair< GlobalIndexType, GlobalIndexType > && in_out_global_indices)

Definition at line 32 of file BHEBottomDirichletBoundaryCondition.cpp.

34{
35 DBUG("Constructing BHEBottomDirichletBoundaryCondition.");
36
37 // In case of partitioned mesh the boundary could be empty, i.e. there is no
38 // boundary condition.
39#ifdef USE_PETSC
40 // For this special boundary condition the boundary condition is not empty
41 // if the global indices are non-negative.
42 if (in_out_global_indices.first < 0 && in_out_global_indices.second < 0)
43 {
44 return nullptr;
45 }
46 // If only one of the global indices (in or out) is negative the
47 // implementation is not valid.
48 if (in_out_global_indices.first < 0 || in_out_global_indices.second < 0)
49 {
51 "The partition cuts the BHE into two independent parts. This "
52 "behaviour is not implemented.");
53 }
54#endif // USE_PETSC
55
56 return std::make_unique<BHEBottomDirichletBoundaryCondition>(
57 std::move(in_out_global_indices));
58}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30

References DBUG(), and OGS_FATAL.

Referenced by ProcessLib::HeatTransportBHE::HeatTransportBHEProcess::createBHEBoundaryConditionTopBottom().

◆ createBHEInflowDirichletBoundaryCondition()

template<typename BHEUpdateCallback >
std::unique_ptr< BHEInflowDirichletBoundaryCondition< BHEUpdateCallback > > ProcessLib::HeatTransportBHE::createBHEInflowDirichletBoundaryCondition ( std::pair< GlobalIndexType, GlobalIndexType > && in_out_global_indices,
BHEUpdateCallback bhe_update_callback )

Definition at line 50 of file BHEInflowDirichletBoundaryCondition.h.

53{
54 DBUG("Constructing BHEInflowDirichletBoundaryCondition.");
55
56 // In case of partitioned mesh the boundary could be empty, i.e. there is no
57 // boundary condition.
58#ifdef USE_PETSC
59 // For this special boundary condition the boundary condition is not empty
60 // if the global indices are non-negative.
61 if (in_out_global_indices.first < 0 && in_out_global_indices.second < 0)
62 {
63 return nullptr;
64 }
65 // If only one of the global indices (in or out) is negative the
66 // implementation is not valid.
67 if (in_out_global_indices.first < 0 || in_out_global_indices.second < 0)
68 {
70 "The partition cuts the BHE into two independent parts. This "
71 "behaviour is not implemented.");
72 }
73#endif // USE_PETSC
74
75 return std::make_unique<
76 BHEInflowDirichletBoundaryCondition<BHEUpdateCallback>>(
77 std::move(in_out_global_indices), bhe_update_callback);
78}

References DBUG(), and OGS_FATAL.

Referenced by ProcessLib::HeatTransportBHE::HeatTransportBHEProcess::createBHEBoundaryConditionTopBottom().

◆ createHeatTransportBHEProcess()

std::unique_ptr< Process > ProcessLib::HeatTransportBHE::createHeatTransportBHEProcess ( std::string const & name,
MeshLib::Mesh & mesh,
std::unique_ptr< ProcessLib::AbstractJacobianAssembler > && jacobian_assembler,
std::vector< ProcessVariable > const & variables,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
unsigned const integration_order,
BaseLib::ConfigTree const & config,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves,
std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const & media )
Input File Parameter
prj__processes__process__type

Process Variables

Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__process_variables

Primary process variables as they appear in the global component vector:

Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__process_variables__process_variable

Process Parameters

Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__borehole_heat_exchangers
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__use_server_communication
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__use_algebraic_bc
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__weighting_factor
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__linear
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__borehole_heat_exchangers__borehole_heat_exchanger
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__borehole_heat_exchangers__borehole_heat_exchanger__id
Input File Parameter
prj__processes__process__HEAT_TRANSPORT_BHE__borehole_heat_exchangers__borehole_heat_exchanger__type

Python object computing BC values.

Definition at line 102 of file CreateHeatTransportBHEProcess.cpp.

114{
116 config.checkConfigParameter("type", "HEAT_TRANSPORT_BHE");
117
118 DBUG("Create HeatTransportBHE Process.");
119
121
123 auto const pv_config = config.getConfigSubtree("process_variables");
124 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
125 process_variables;
126
127 // reading primary variables for each
128 // BHE----------------------------------------------------------
130 auto range =
132 pv_config.getConfigParameterList<std::string>("process_variable");
133 std::vector<std::reference_wrapper<ProcessVariable>> per_process_variables;
134
135 for (std::string const& pv_name : range)
136 {
137 if (pv_name != "temperature_soil" &&
138 pv_name.find("temperature_BHE") == std::string::npos)
139 {
140 OGS_FATAL(
141 "Found a process variable name '{}'. It should be "
142 "'temperature_soil' or 'temperature_BHE_X'",
143 pv_name);
144 }
145 auto variable = std::find_if(variables.cbegin(), variables.cend(),
146 [&pv_name](ProcessVariable const& v)
147 { return v.getName() == pv_name; });
148
149 if (variable == variables.end())
150 {
151 OGS_FATAL(
152 "Could not find process variable '{:s}' in the provided "
153 "variables list for config tag <{:s}>.",
154 pv_name, "process_variable");
155 }
156 DBUG("Found process variable '{:s}' for config tag <{:s}>.",
157 variable->getName(), "process_variable");
158
159 per_process_variables.emplace_back(
160 const_cast<ProcessVariable&>(*variable));
161 }
162 process_variables.push_back(std::move(per_process_variables));
163 // end of reading primary variables for each
164 // BHE----------------------------------------------------------
165
167 // reading BHE parameters --------------------------------------------------
168
169 auto bhe_mesh_data = getBHEDataInMesh(mesh);
170
171 auto const& bhe_configs =
173 config.getConfigSubtree("borehole_heat_exchangers");
174
175 auto const using_server_communication =
177 config.getConfigParameter<bool>("use_server_communication", false);
178
179 auto const using_algebraic_bc =
181 config.getConfigParameter<bool>("use_algebraic_bc", false);
182
183 auto const weighting_factor =
185 config.getConfigParameter<float>("weighting_factor", 100.0);
186
187 auto const is_linear =
189 config.getConfigParameter<bool>("linear", false);
190 if (is_linear)
191 {
192 if (!using_algebraic_bc)
193 {
194 OGS_FATAL(
195 "You specified that the process simulated by OGS is linear. "
196 "For the Heat-Transport-BHE process this can only be done "
197 "together with setting the use_algebraic_bc option to true.")
198 }
199 else
200 {
201 WARN(
202 "You specified that the process simulated by OGS is linear. "
203 "With that optimization the process will be assembled only "
204 "once and the non-linear solver will do only one iteration per "
205 "time step. No non-linearities will be resolved and OGS will "
206 "not detect if there are any non-linearities. It is your "
207 "responsibility to ensure that the assembled equation systems "
208 "are linear, indeed! There is no safety net!");
209 }
210 }
211
212 std::map<int, BHE::BHETypes> bhes_map;
213
214 int bhe_iterator = 0;
215
216 for (
217 auto const& bhe_config :
219 bhe_configs.getConfigSubtreeList("borehole_heat_exchanger"))
220 {
221 auto bhe_id_string =
223 bhe_config.getConfigAttribute<std::string>(
224 "id", std::to_string(bhe_iterator));
225
226 std::vector<int> bhe_ids_of_this_bhe;
227
228 if (bhe_id_string == "*")
229 {
230 int size = static_cast<int>(bhe_mesh_data.BHE_mat_IDs.size());
231 bhe_ids_of_this_bhe.resize(size);
232 std::iota(bhe_ids_of_this_bhe.begin(), bhe_ids_of_this_bhe.end(),
233 0);
234 }
235 else
236 {
237 bhe_ids_of_this_bhe =
239 }
240
241 // read in the parameters
242 const std::string bhe_type =
244 bhe_config.getConfigParameter<std::string>("type");
245
246 createAndInsertBHE(bhe_type, bhe_ids_of_this_bhe, bhe_config, curves,
247 bhes_map);
248 bhe_iterator++;
249 }
250
251 if (static_cast<int>(bhes_map.size()) - 1 != bhes_map.rbegin()->first)
252 {
253 OGS_FATAL(
254 "The maximum given BHE id '{:d}' did not match the number of given "
255 "BHE definitions '{:d}'. The BHE ids needs to be defined starting "
256 "from 0, so the maximum BHE id needs to be number of BHE "
257 "definitions minus 1. After all definitions there are no gaps "
258 "allowed between the given ids.",
259 bhes_map.rbegin()->first, bhes_map.size());
260 }
261
262 std::vector<BHE::BHETypes> bhes;
263 bhes.reserve(bhes_map.size());
264 std::ranges::copy(bhes_map | std::views::values, std::back_inserter(bhes));
265 // end of reading BHE parameters
266 // -------------------------------------------
267
268 auto media_map =
270
271 // find if bhe uses python boundary condition
272 auto const using_tespy =
273 visit([](auto const& bhe) { return bhe.use_python_bcs; }, bhes[0]);
274
276 BHEInflowPythonBoundaryConditionPythonSideInterface* py_object = nullptr;
277 // create a pythonBoundaryCondition object
278 if (using_tespy || using_server_communication)
279 {
280 // Evaluate Python code in scope of main module
281 pybind11::object scope =
282 pybind11::module::import("__main__").attr("__dict__");
283
284 if (!scope.contains("bc_bhe"))
285 OGS_FATAL(
286 "Function 'bc_bhe' is not defined in the python script file, "
287 "or there was no python script file specified.");
288
289 py_object =
290 scope["bc_bhe"]
291 .cast<BHEInflowPythonBoundaryConditionPythonSideInterface*>();
292
293 if (py_object == nullptr)
294 OGS_FATAL(
295 "Not able to access the correct bc pointer from python script "
296 "file specified.");
297
298 // create BHE network dataframe from Python
299 py_object->dataframe_network = py_object->initializeDataContainer();
300 if (!py_object->isOverriddenEssential())
301 {
302 DBUG(
303 "Method `initializeDataContainer' not overridden in Python "
304 "script.");
305 }
306 // clear ogs bc_node_id memory in dataframe
307 std::get<3>(py_object->dataframe_network).clear(); // ogs_bc_node_id
308
309 // here calls the tespyHydroSolver to get the pipe flow velocity in bhe
310 // network
311 /* for 2U type the flowrate initialization process below causes conflict
312 // replace the value in flow velocity Matrix _u
313 auto const tespy_flow_rate = std::get<4>(py_object->dataframe_network);
314 const std::size_t n_bhe = tespy_flow_rate.size();
315 if (bhes.size() != n_bhe)
316 OGS_FATAL(
317 "The number of BHEs defined in OGS and TESPy are not the "
318 "same!");
319
320 for (std::size_t idx_bhe = 0; idx_bhe < n_bhe; idx_bhe++)
321 {
322 // the flow_rate in OGS should be updated from the flow_rate
323 // computed by TESPy.
324 auto update_flow_rate = [&](auto& bhe) {
325 bhe.updateHeatTransferCoefficients(tespy_flow_rate[idx_bhe]);
326 };
327 visit(update_flow_rate, bhes[idx_bhe]);
328 }
329 */
330 }
331
332 HeatTransportBHEProcessData process_data(
333 std::move(media_map), std::move(bhes), py_object, using_tespy,
334 using_server_communication,
335 {using_algebraic_bc, weighting_factor, is_linear});
336
337 SecondaryVariableCollection secondary_variables;
338
339 ProcessLib::createSecondaryVariables(config, secondary_variables);
340
341 return std::make_unique<HeatTransportBHEProcess>(
342 std::move(name), mesh, std::move(jacobian_assembler), parameters,
343 integration_order, std::move(process_variables),
344 std::move(process_data), std::move(secondary_variables),
345 std::move(bhe_mesh_data));
346}
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:40
std::vector< int > splitMaterialIdString(std::string const &material_id_string)
MaterialSpatialDistributionMap createMaterialSpatialDistributionMap(std::map< int, std::shared_ptr< Medium > > const &media, MeshLib::Mesh const &mesh)
constexpr int size(int const displacement_dim)
Vectorized tensor size for given displacement dimension.
void createAndInsertBHE(const std::string &bhe_type, const std::vector< int > &bhe_ids_of_this_bhe, const BaseLib::ConfigTree &bhe_config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, std::map< int, BHE::BHETypes > &bhes_map)
BHEMeshData getBHEDataInMesh(MeshLib::Mesh const &mesh)
Definition MeshUtils.cpp:51
void createSecondaryVariables(BaseLib::ConfigTree const &config, SecondaryVariableCollection &secondary_variables)

References BaseLib::ConfigTree::checkConfigParameter(), createAndInsertBHE(), MaterialPropertyLib::createMaterialSpatialDistributionMap(), ProcessLib::createSecondaryVariables(), DBUG(), getBHEDataInMesh(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigParameterList(), BaseLib::ConfigTree::getConfigSubtree(), OGS_FATAL, MaterialLib::splitMaterialIdString(), and WARN().

Referenced by ProjectData::parseProcesses().

◆ createLocalAssemblers()

template<template< typename > class LocalAssemblerSoilImplementation, template< typename, typename > class LocalAssemblerBHEImplementation, typename LocalAssemblerInterface , typename... ExtraCtorArgs>
void ProcessLib::HeatTransportBHE::createLocalAssemblers ( std::vector< MeshLib::Element * > const & mesh_elements,
NumLib::LocalToGlobalIndexMap const & dof_table,
std::vector< std::unique_ptr< LocalAssemblerInterface > > & local_assemblers,
NumLib::IntegrationOrder const integration_order,
ExtraCtorArgs &&... extra_ctor_args )

Creates local assemblers for each element of the given mesh.

Template Parameters
LocalAssemblerImplementationthe individual local assembler type
LocalAssemblerInterfacethe general local assembler interface
ExtraCtorArgstypes of additional constructor arguments. Those arguments will be passed to the constructor of LocalAssemblerImplementation.

The first two template parameters cannot be deduced from the arguments. Therefore they always have to be provided manually.

Definition at line 74 of file CreateLocalAssemblers.h.

80{
81 DBUG("Create local assemblers for the HeatTransportBHE process.");
82
83 detail::createLocalAssemblers<LocalAssemblerSoilImplementation,
84 LocalAssemblerBHEImplementation>(
85 dof_table, mesh_elements, local_assemblers, integration_order,
86 std::forward<ExtraCtorArgs>(extra_ctor_args)...);
87}

References DBUG().

Referenced by ProcessLib::HeatTransportBHE::HeatTransportBHEProcess::initializeConcreteProcess().

◆ getBHEDataInMesh()

BHEMeshData ProcessLib::HeatTransportBHE::getBHEDataInMesh ( MeshLib::Mesh const & mesh)

get data about fracture and matrix elements/nodes from a mesh

Parameters
meshA mesh which includes BHE elements, i.e. 1-dimensional elements. It is assumed that elements forming a BHE have a distinct material ID.

Definition at line 51 of file MeshUtils.cpp.

52{
53 std::vector<MeshLib::Element*> const all_bhe_elements =
54 extractOneDimensionalElements(mesh.getElements());
55
56 // finally counting two types of elements
57 // They are (i) soil, and (ii) BHE type of elements
58 DBUG("-> found total {:d} soil elements and {:d} BHE elements",
59 mesh.getNumberOfElements() - all_bhe_elements.size(),
60 all_bhe_elements.size());
61
62 // get BHE material IDs
63 auto const* const opt_material_ids = MeshLib::materialIDs(mesh);
64 if (opt_material_ids == nullptr)
65 {
66 OGS_FATAL("Not able to get material IDs! ");
67 }
68 auto const& material_ids = *opt_material_ids;
69
70 auto const& bhe_material_ids =
71 getUniqueMaterialIds(material_ids, all_bhe_elements);
72 DBUG("-> found {:d} BHE material groups", bhe_material_ids.size());
73
74 // create a vector of BHE elements for each group
75 std::vector<std::vector<MeshLib::Element*>> bhe_elements;
76 bhe_elements.resize(bhe_material_ids.size());
77 for (unsigned bhe_id = 0; bhe_id < bhe_material_ids.size(); bhe_id++)
78 {
79 const auto bhe_mat_id = bhe_material_ids[bhe_id];
80 std::vector<MeshLib::Element*>& vec_elements = bhe_elements[bhe_id];
81 copy_if(begin(all_bhe_elements), end(all_bhe_elements),
82 back_inserter(vec_elements),
83 [&](MeshLib::Element const* const e)
84 { return material_ids[e->getID()] == bhe_mat_id; });
85 DBUG("-> found {:d} elements on the BHE_{:d}", vec_elements.size(),
86 bhe_id);
87 }
88
89 // get a vector of BHE nodes
90 std::vector<std::vector<MeshLib::Node*>> bhe_nodes;
91 bhe_nodes.resize(bhe_material_ids.size());
92 for (unsigned bhe_id = 0; bhe_id < bhe_material_ids.size(); bhe_id++)
93 {
94 std::vector<MeshLib::Node*>& vec_nodes = bhe_nodes[bhe_id];
95 for (MeshLib::Element* e : bhe_elements[bhe_id])
96 {
97 for (unsigned i = 0; i < e->getNumberOfNodes(); i++)
98 {
99 vec_nodes.push_back(const_cast<MeshLib::Node*>(e->getNode(i)));
100 }
101 }
104
105 DBUG("-> found {:d} nodes on the BHE_{:d}", vec_nodes.size(), bhe_id);
106 }
107
108 return {bhe_material_ids, bhe_elements, bhe_nodes};
109}
virtual unsigned getNumberOfNodes() const =0
virtual const Node * getNode(unsigned idx) const =0
std::size_t getID() const
Returns the ID of the element.
Definition Element.h:89
void makeVectorUnique(std::vector< T > &v)
Definition Algorithm.h:176
bool idsComparator(T const a, T const b)
Definition Mesh.h:206
PropertyVector< int > const * materialIDs(Mesh const &mesh)
Definition Mesh.cpp:268
std::vector< int > getUniqueMaterialIds(std::vector< int > const &material_ids, std::vector< MeshLib::Element * > const &elements)
Definition MeshUtils.cpp:34
std::vector< MeshLib::Element * > extractOneDimensionalElements(std::vector< MeshLib::Element * > const &elements)
Definition MeshUtils.cpp:22

References DBUG(), MeshLib::Mesh::getElements(), MeshLib::Element::getID(), MeshLib::Mesh::getNumberOfElements(), MeshLib::idsComparator(), BaseLib::makeVectorUnique(), MeshLib::materialIDs(), and OGS_FATAL.

Referenced by createHeatTransportBHEProcess().

Variable Documentation

◆ bheCreators

std::map<std::string_view, std::function<BHE::BHETypes( BaseLib::ConfigTree const&, std::map<std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation>> const&)> > ProcessLib::HeatTransportBHE::bheCreators
Initial value:
= {{"1U",
[](auto& config, auto& curves) {
return BHE::BHE_1U(
BHE::createBHEUType<BHE::BHE_1U>(config, curves));
}},
{"2U",
[](auto& config, auto& curves) {
return BHE::BHE_2U(
BHE::createBHEUType<BHE::BHE_2U>(config, curves));
}},
{"CXA",
[](auto& config, auto& curves) {
return BHE::BHE_CXA(BHE::createBHECoaxial<BHE::BHE_CXA>(
config, curves));
}},
{"CXC",
[](auto& config, auto& curves) {
return BHE::BHE_CXC(BHE::createBHECoaxial<BHE::BHE_CXC>(
config, curves));
}},
{"1P", [](auto& config, auto& curves) {
return BHE::BHE_1P(
BHE::createBHE1PType<BHE::BHE_1P>(config, curves));
}}}

Definition at line 41 of file CreateHeatTransportBHEProcess.cpp.

41 {{"1U",
42 [](auto& config, auto& curves) {
43 return BHE::BHE_1U(
44 BHE::createBHEUType<BHE::BHE_1U>(config, curves));
45 }},
46 {"2U",
47 [](auto& config, auto& curves) {
48 return BHE::BHE_2U(
49 BHE::createBHEUType<BHE::BHE_2U>(config, curves));
50 }},
51 {"CXA",
52 [](auto& config, auto& curves) {
53 return BHE::BHE_CXA(BHE::createBHECoaxial<BHE::BHE_CXA>(
54 config, curves));
55 }},
56 {"CXC",
57 [](auto& config, auto& curves) {
58 return BHE::BHE_CXC(BHE::createBHECoaxial<BHE::BHE_CXC>(
59 config, curves));
60 }},
61 {"1P", [](auto& config, auto& curves) {
62 return BHE::BHE_1P(
63 BHE::createBHE1PType<BHE::BHE_1P>(config, curves));
64 }}};

Referenced by createAndInsertBHE().