OGS 6.2.0-244-g47b8a9a9d
ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback > Class Template Referencefinal

Detailed Description

template<typename BHEUpdateCallback>
class ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >

Definition at line 19 of file BHEInflowDirichletBoundaryCondition.h.

#include <BHEInflowDirichletBoundaryCondition.h>

Inheritance diagram for ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >:
Collaboration diagram for ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >:

Public Member Functions

 BHEInflowDirichletBoundaryCondition (std::pair< GlobalIndexType, GlobalIndexType > &&in_out_global_indices, BHEUpdateCallback bhe_update_callback)
 
void getEssentialBCValues (const double t, GlobalVector const &x, NumLib::IndexValueVector< GlobalIndexType > &bc_values) const override
 Writes the values of essential BCs to bc_values. More...
 
- Public Member Functions inherited from ProcessLib::BoundaryCondition
virtual void applyNaturalBC (const double, GlobalVector const &, GlobalMatrix &, GlobalVector &, GlobalMatrix *)
 
virtual void preTimestep (const double, GlobalVector const &)
 
virtual ~BoundaryCondition ()=default
 

Private Attributes

std::pair< GlobalIndexType, GlobalIndexType > const _in_out_global_indices
 
BHEUpdateCallback _bhe_update_callback
 

Constructor & Destructor Documentation

◆ BHEInflowDirichletBoundaryCondition()

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

Definition at line 22 of file BHEInflowDirichletBoundaryCondition.h.

25  : _in_out_global_indices(std::move(in_out_global_indices)),
26  _bhe_update_callback(bhe_update_callback)
27  {
28  }
std::pair< GlobalIndexType, GlobalIndexType > const _in_out_global_indices

Member Function Documentation

◆ getEssentialBCValues()

template<typename BHEUpdateCallback >
void ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >::getEssentialBCValues ( const double  ,
GlobalVector const &  ,
NumLib::IndexValueVector< GlobalIndexType > &   
) const
inlineoverridevirtual

Writes the values of essential BCs to bc_values.

Reimplemented from ProcessLib::BoundaryCondition.

Definition at line 30 of file BHEInflowDirichletBoundaryCondition.h.

References ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >::_bhe_update_callback, ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >::_in_out_global_indices, NumLib::IndexValueVector< IndexType >::ids, and NumLib::IndexValueVector< IndexType >::values.

33  {
34  bc_values.ids.resize(1);
35  bc_values.values.resize(1);
36 
37  bc_values.ids[0] = _in_out_global_indices.first;
38  // here call the corresponding BHE functions
39  auto const T_out = x[_in_out_global_indices.second];
40  bc_values.values[0] = _bhe_update_callback(T_out, t);
41  }
std::pair< GlobalIndexType, GlobalIndexType > const _in_out_global_indices

Member Data Documentation

◆ _bhe_update_callback

template<typename BHEUpdateCallback >
BHEUpdateCallback ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >::_bhe_update_callback
private

◆ _in_out_global_indices


The documentation for this class was generated from the following file: