OGS
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 >:
[legend]
Collaboration diagram for ProcessLib::HeatTransportBHE::BHEInflowDirichletBoundaryCondition< BHEUpdateCallback >:
[legend]

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.
 
- Public Member Functions inherited from ProcessLib::BoundaryCondition
virtual void applyNaturalBC (const double, std::vector< GlobalVector * > const &, int const, GlobalMatrix *, GlobalVector &, GlobalMatrix *)
 
virtual void preTimestep (const double, std::vector< GlobalVector * > const &, int const)
 
virtual void postTimestep (const double, std::vector< GlobalVector * > const &, int 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 }

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.

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 }

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

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: