OGS
ProcessLib::HeatTransportBHE::BHEBottomDirichletBoundaryCondition Class Referencefinal

Detailed Description

Definition at line 20 of file BHEBottomDirichletBoundaryCondition.h.

#include <BHEBottomDirichletBoundaryCondition.h>

Inheritance diagram for ProcessLib::HeatTransportBHE::BHEBottomDirichletBoundaryCondition:
[legend]
Collaboration diagram for ProcessLib::HeatTransportBHE::BHEBottomDirichletBoundaryCondition:
[legend]

Public Member Functions

 BHEBottomDirichletBoundaryCondition (std::pair< GlobalIndexType, GlobalIndexType > &&in_out_global_indices)
 
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
 

Constructor & Destructor Documentation

◆ BHEBottomDirichletBoundaryCondition()

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

Definition at line 23 of file BHEBottomDirichletBoundaryCondition.h.

25 : _in_out_global_indices(std::move(in_out_global_indices))
26 {
27 }

Member Function Documentation

◆ getEssentialBCValues()

void ProcessLib::HeatTransportBHE::BHEBottomDirichletBoundaryCondition::getEssentialBCValues ( const double ,
GlobalVector const & ,
NumLib::IndexValueVector< GlobalIndexType > &  ) const
overridevirtual

Writes the values of essential BCs to bc_values.

Reimplemented from ProcessLib::BoundaryCondition.

Definition at line 17 of file BHEBottomDirichletBoundaryCondition.cpp.

20{
21 bc_values.ids.resize(1);
22 bc_values.values.resize(1);
23
24 bc_values.ids[0] = _in_out_global_indices.second;
25 // here, the outflow temperature is always
26 // the same as the inflow temperature
27 // get the inflow temperature from here.
28 bc_values.values[0] = x[_in_out_global_indices.first];
29}

References _in_out_global_indices, NumLib::IndexValueVector< typename >::ids, and NumLib::IndexValueVector< typename >::values.

Member Data Documentation

◆ _in_out_global_indices

std::pair<GlobalIndexType, GlobalIndexType> const ProcessLib::HeatTransportBHE::BHEBottomDirichletBoundaryCondition::_in_out_global_indices
private

Definition at line 34 of file BHEBottomDirichletBoundaryCondition.h.

Referenced by getEssentialBCValues().


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