Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData > Class Template Reference

The Dirichlet condition of the pressure system, which applies the pressure of the HOutflowBndCondOpImpl set by SetOwner(). More...

#include <HOutflowBndCondOpImpl.hpp>

Inheritance diagram for Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >:
[legend]

Public Member Functions

 HOutflowPressureAdapter (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
 
void SetOwner (HOutflowBndCondOpImpl< ExecSpace, TData > *owner)
 Set the operator whose pressure Apply() applies, which must outlive this one.
 
- Public Member Functions inherited from Nektar::MultiRegions::DirBndCondOp< TData >
void Apply (LibUtilities::Field< TData, FieldState::Coeff > &out)
 
void operator() (LibUtilities::Field< TData, FieldState::Coeff > &out)
 
void UpdateBndCoeffs (const TData &time=0.0)
 
size_t GetNumBndDofs () const
 
- Public Member Functions inherited from Nektar::MultiRegions::Operator< TData >
virtual ~Operator ()=default
 
 Operator (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > components)
 Construct the interface part of a concrete operator; called by the factory-registered creator functions.
 

Protected Member Functions

void v_Apply (LibUtilities::Field< TData, FieldState::Coeff > &out) override
 
void v_UpdateBndCoeffs (const TData &time) override
 
size_t v_GetNumBndDofs () const override
 
- Protected Member Functions inherited from Nektar::MultiRegions::DirBndCondOp< TData >
 DirBndCondOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
 
 ~DirBndCondOp () override=default
 

Private Attributes

HOutflowBndCondOpImpl< ExecSpace, TData > * m_owner = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from Nektar::MultiRegions::DirBndCondOp< TData >
static std::shared_ptr< DirBndCondOp< TData > > Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
 
- Static Public Member Functions inherited from Nektar::MultiRegions::Operator< TData >
template<template< typename > typename TOperator>
static std::shared_ptr< TOperator< TData > > Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > components, const std::string &execStr)
 Create a concrete operator instance through the operator factory.
 
static std::string GetOpExecSpace (std::shared_ptr< LibUtilities::SessionReader > session, const bool warn=true)
 Return the execution space name ("opExecSpace") for an operator.
 
static const DefaultOpImplRule * GetDefaultOpImplRule (const StdRegions::StdExpansionSharedPtr &exp, const std::string &execSpace)
 Return the row of the default implementation table (DefaultOpImplTable.hpp) that a block of elements takes, or null if none does.
 
static std::string GetDefaultOpImpl (const StdRegions::StdExpansionSharedPtr &exp, const std::string &execSpace)
 Return the implementation a block of elements takes when neither the command line nor the session names one for its operator.
 
static std::vector< unsigned int > GetDefaultInterleaveWidths (const MultiRegions::ExpListSharedPtr &expansionList)
 Return the default interleave widths, one per block of expansionList, that persistent Fields (e.g. solution storage, time-integration and linear-solver workspace) built on it should be constructed with.
 
static bool IsDiscontinuousProjection (std::shared_ptr< LibUtilities::SessionReader > session)
 Return true if the session uses a Discontinuous (DG) projection.
 
- Static Public Attributes inherited from Nektar::MultiRegions::DirBndCondOp< TData >
static const std::string name = "DirBndCond"
 
- Protected Attributes inherited from Nektar::MultiRegions::DirBndCondOp< TData >
bool m_bndCoeffsInitialised = false
 
bool m_hasTimeDependentBndCoeffs = false
 
- Protected Attributes inherited from Nektar::MultiRegions::Operator< TData >
MultiRegions::ExpListSharedPtr m_expansionList
 Expansion list the operator acts on.
 
std::vector< std::string > m_components
 Names of the field components the operator was built for.
 
LibUtilities::NekDataWarehouseSharedPtr m_dataWarehouse
 Data warehouse shared with the other operators on the expansion list, used to build and cache shared tables (basis matrices, mode indices, geometric factors) once.
 

Detailed Description

template<typename ExecSpace, typename TData>
class Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >

The Dirichlet condition of the pressure system, which applies the pressure of the HOutflowBndCondOpImpl set by SetOwner().

Apply() sets the Dirichlet pressure coefficients of the regions with HOutflowBndCondOp::ApplyPressure(), from the pressure boundary values of the last HOutflowBndCondOp::UpdatePressure().

Definition at line 80 of file HOutflowBndCondOpImpl.hpp.

Constructor & Destructor Documentation

◆ HOutflowPressureAdapter()

template<typename ExecSpace , typename TData >
Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::HOutflowPressureAdapter ( const MultiRegions::ExpListSharedPtr &  expansionList,
const std::vector< std::string > &  components 
)
inline

Definition at line 83 of file HOutflowBndCondOpImpl.hpp.

Member Function Documentation

◆ SetOwner()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::SetOwner ( HOutflowBndCondOpImpl< ExecSpace, TData > *  owner)
inline

Set the operator whose pressure Apply() applies, which must outlive this one.

Definition at line 91 of file HOutflowBndCondOpImpl.hpp.

92 {
93 m_owner = owner;
94 }
HOutflowBndCondOpImpl< ExecSpace, TData > * m_owner

References Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::m_owner.

◆ v_Apply()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::v_Apply ( LibUtilities::Field< TData, FieldState::Coeff > &  out)
inlineoverrideprotectedvirtual

◆ v_GetNumBndDofs()

template<typename ExecSpace , typename TData >
size_t Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::v_GetNumBndDofs ( ) const
inlineoverrideprotectedvirtual

Implements Nektar::MultiRegions::DirBndCondOp< TData >.

Definition at line 107 of file HOutflowBndCondOpImpl.hpp.

108 {
109 return m_owner->GetNumPressureBndDofs();
110 }

References Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::m_owner.

◆ v_UpdateBndCoeffs()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::v_UpdateBndCoeffs ( const TData &  time)
inlineoverrideprotectedvirtual

Implements Nektar::MultiRegions::DirBndCondOp< TData >.

Definition at line 102 of file HOutflowBndCondOpImpl.hpp.

103 {
104 // The pressure is set by UpdatePressure(), before the pressure solve.
105 }

Member Data Documentation

◆ m_owner

template<typename ExecSpace , typename TData >
HOutflowBndCondOpImpl<ExecSpace, TData>* Nektar::detail::HOutflowPressureAdapter< ExecSpace, TData >::m_owner = nullptr
private