71template <
typename TData>
73 :
public ElmtBlockOp<FieldState::Phys, FieldState::Phys, TData>
93 static std::shared_ptr<AdvectionBlockOp<TData>>
Create(
94 const unsigned int block_idx,
97 const std::string &execStr,
const std::string &implStr)
100 template Create<AdvectionBlockOp>(block_idx, exp, dataWarehouse,
105 static inline const std::string
name =
"BlockAdvection";
Block-level base class, implementation-strategy tags and device launch helpers shared by every elemen...
Get the BlockAttributes for a given field state from an ExpList. This method basically captures ident...
Base class of the per-block advection operators: evaluates scale * (V . grad u) on every element of o...
LibUtilities::BlockAccessor< TData, FieldState::Phys > * m_advVel
Advection velocity of the block, registered by SetAdvVel(); not owned.
void SetAdvVel(LibUtilities::BlockAccessor< TData, FieldState::Phys > &Vel)
Register the block's advection velocity.
TData m_scale
Scalar factor applied to the advection term (default 1).
void SetScale(const TData &scale)
Set the scalar factor applied to the advection term.
static const std::string name
Block-operator base name used in the factory key.
AdvectionBlockOp(const unsigned int block_idx, const LocalRegions::ExpansionSharedPtr &exp, LibUtilities::NekDataWarehouseSharedPtr dataWarehouse)
Construct the interface part of a concrete block operator; called by the factory-registered creator f...
static std::shared_ptr< AdvectionBlockOp< TData > > Create(const unsigned int block_idx, const LocalRegions::ExpansionSharedPtr &exp, LibUtilities::NekDataWarehouseSharedPtr dataWarehouse, const std::string &execStr, const std::string &implStr)
Create one advection block operator through the block-operator factory.
void SetAppend(const bool &append)
Accumulate onto (true) or overwrite (false) the output.
bool m_append
If true, Apply() accumulates onto the output block.
~AdvectionBlockOp() override=default
Base class of the per-family block operators: applies one element operation to every element of one b...
std::shared_ptr< NekDataWarehouse > NekDataWarehouseSharedPtr
std::shared_ptr< Expansion > ExpansionSharedPtr
FieldState
Possible states for Field data.