48 return tag ==
"Wall" || tag ==
"Symmetry";
51template <
typename ExecSpace,
typename TData>
54 using MemSpace =
typename ExecSpace::memory_space;
59 const std::vector<std::string> &components)
68 "A compressible slip wall needs density, one momentum "
69 "component per direction and energy.");
76 static std::unique_ptr<MultiRegions::Operator<TData>>
Instantiate(
78 const std::vector<std::string> &components)
80 return std::make_unique<BndCondSlipWallCFEOpImpl<ExecSpace, TData>>(
81 expansionList, components);
98 "No boundary storage attached: call SetBndCondPhysOp().");
100 const auto numBlocks = this->m_bndCondPhysOp->GetNumBlocks();
101 std::vector<bool> owned(numBlocks,
false);
103 for (
unsigned blk = 0; blk < numBlocks; ++blk)
106 IsSlipWallTag(this->m_bndCondPhysOp->GetBndUserDefined(blk, 0));
125 "No boundary storage attached: call SetBndCondPhysOp().");
129 for (
unsigned blk = 0; blk < owned.size(); ++blk)
136 const auto stride = this->m_bndCondPhysOp->GetBlockCompStride(blk);
138 this->m_bndCondPhysOp->UpdateBlockPtr(blk, this->m_opStreamID);
139 const TData *norms = this->m_bndCondPhysOp->GetBlockNormals(blk);
141 MirrorNormalMomentumBlock<ExecSpace>(stride,
m_coordDim, norms,
142 bndPtr, this->m_opStreamID);
#define ASSERTL0(condition, msg)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Inviscid slip wall and symmetry plane.
std::vector< LocalRegions::ExpansionSharedPtr > & GetExpVector()
void v_SetBndCondPhysOp() override
Nothing to keep: this condition prescribes no value of its own.
BndCondSlipWallCFEOpImpl(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
bool v_GhostIsReflected() const override
The mirrored state is the exterior state, so the diffusion must not reflect it a second time.
static std::string className
typename ExecSpace::memory_space MemSpace
static std::unique_ptr< MultiRegions::Operator< TData > > Instantiate(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
std::vector< bool > v_GetOwnedBlocks() const override
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
Collections::Collection GetCollection(MultiRegions::ExpListSharedPtr expansionList, unsigned int block_idx)
bool IsSlipWallTag(const std::string &tag)
Tags this operator claims: the two name the same condition.