Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Nektar::MultiRegions::DirBndCondOp< TData > Class Template Referenceabstract

#include <DirBndCondOp.hpp>

Inheritance diagram for Nektar::MultiRegions::DirBndCondOp< TData >:
[legend]

Public Member Functions

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.
 

Static Public Member Functions

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

static const std::string name = "DirBndCond"
 

Protected Member Functions

 DirBndCondOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
 
 ~DirBndCondOp () override=default
 
virtual void v_Apply (LibUtilities::Field< TData, FieldState::Coeff > &out)=0
 
virtual void v_UpdateBndCoeffs (const TData &time)=0
 
virtual size_t v_GetNumBndDofs () const =0
 

Protected Attributes

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 TData>
class Nektar::MultiRegions::DirBndCondOp< TData >

Definition at line 44 of file DirBndCondOp.hpp.

Constructor & Destructor Documentation

◆ DirBndCondOp()

template<typename TData >
Nektar::MultiRegions::DirBndCondOp< TData >::DirBndCondOp ( const MultiRegions::ExpListSharedPtr &  expansionList,
const std::vector< std::string > &  components 
)
inlineprotected

Definition at line 92 of file DirBndCondOp.hpp.

94 : Operator<TData>(expansionList, components)
95 {
96 }

◆ ~DirBndCondOp()

template<typename TData >
Nektar::MultiRegions::DirBndCondOp< TData >::~DirBndCondOp ( )
overrideprotecteddefault

Member Function Documentation

◆ Apply()

template<typename TData >
void Nektar::MultiRegions::DirBndCondOp< TData >::Apply ( LibUtilities::Field< TData, FieldState::Coeff > &  out)
inline

Definition at line 59 of file DirBndCondOp.hpp.

60 {
61 v_Apply(out);
62 }
virtual void v_Apply(LibUtilities::Field< TData, FieldState::Coeff > &out)=0

References Nektar::MultiRegions::DirBndCondOp< TData >::v_Apply().

◆ Create()

template<typename TData >
static std::shared_ptr< DirBndCondOp< TData > > Nektar::MultiRegions::DirBndCondOp< TData >::Create ( const MultiRegions::ExpListSharedPtr &  expansionList,
const std::vector< std::string > &  components,
const std::string &  execStr = "" 
)
inlinestatic

Definition at line 48 of file DirBndCondOp.hpp.

52 {
53 return Operator<TData>::template Create<DirBndCondOp>(
54 expansionList, components, execStr);
55 }

Referenced by TestDirichlet< TData >::RunTestCase().

◆ GetNumBndDofs()

template<typename TData >
size_t Nektar::MultiRegions::DirBndCondOp< TData >::GetNumBndDofs ( ) const
inline

Definition at line 83 of file DirBndCondOp.hpp.

84 {
85 return v_GetNumBndDofs();
86 }
virtual size_t v_GetNumBndDofs() const =0

References Nektar::MultiRegions::DirBndCondOp< TData >::v_GetNumBndDofs().

◆ operator()()

template<typename TData >
void Nektar::MultiRegions::DirBndCondOp< TData >::operator() ( LibUtilities::Field< TData, FieldState::Coeff > &  out)
inline

Definition at line 64 of file DirBndCondOp.hpp.

65 {
66 v_Apply(out);
67 }

References Nektar::MultiRegions::DirBndCondOp< TData >::v_Apply().

◆ UpdateBndCoeffs()

template<typename TData >
void Nektar::MultiRegions::DirBndCondOp< TData >::UpdateBndCoeffs ( const TData &  time = 0.0)
inline

◆ v_Apply()

template<typename TData >
virtual void Nektar::MultiRegions::DirBndCondOp< TData >::v_Apply ( LibUtilities::Field< TData, FieldState::Coeff > &  out)
protectedpure virtual

◆ v_GetNumBndDofs()

template<typename TData >
virtual size_t Nektar::MultiRegions::DirBndCondOp< TData >::v_GetNumBndDofs ( ) const
protectedpure virtual

◆ v_UpdateBndCoeffs()

template<typename TData >
virtual void Nektar::MultiRegions::DirBndCondOp< TData >::v_UpdateBndCoeffs ( const TData &  time)
protectedpure virtual

Member Data Documentation

◆ m_bndCoeffsInitialised

template<typename TData >
bool Nektar::MultiRegions::DirBndCondOp< TData >::m_bndCoeffsInitialised = false
protected

◆ m_hasTimeDependentBndCoeffs

template<typename TData >
bool Nektar::MultiRegions::DirBndCondOp< TData >::m_hasTimeDependentBndCoeffs = false
protected

◆ name

template<typename TData >
const std::string Nektar::MultiRegions::DirBndCondOp< TData >::name = "DirBndCond"
inlinestatic

Definition at line 57 of file DirBndCondOp.hpp.