52 return tag ==
"PressureOutflow";
108template <
typename ExecSpace,
typename EoSParamType,
typename TData>
117 const std::vector<std::string> &components)
126 "A compressible pressure outflow needs density, one momentum "
127 "component per direction and energy.");
136 static std::unique_ptr<MultiRegions::Operator<TData>>
Instantiate(
138 const std::vector<std::string> &components)
140 return std::make_unique<
142 expansionList, components);
160 "No boundary storage attached: call SetBndCondPhysOp().");
162 const auto numBlocks = this->m_bndCondPhysOp->GetNumBlocks();
163 std::vector<bool> owned(numBlocks,
false);
165 for (
unsigned blk = 0; blk < numBlocks; ++blk)
168 this->m_bndCondPhysOp->GetBndUserDefined(blk, 0));
182 for (
unsigned blk = 0; blk < owned.size(); ++blk)
189 const auto stride = this->m_bndCondPhysOp->GetBlockCompStride(blk);
191 this->m_bndCondPhysOp->GetBlockPtr(blk, this->m_opStreamID);
198 m_pressure[blk].template Initialize<MemSpace>(0);
199 TData *pOut =
m_pressure[blk].template GetPtr<MemSpace, ReadWrite>(
202 CopyPrescribedPressureBlock<ExecSpace>(
203 stride,
m_numComp - 1, bndPtr, pOut, this->m_opStreamID);
210 "No boundary storage attached: call SetBndCondPhysOp().");
214 for (
unsigned blk = 0; blk < owned.size(); ++blk)
221 const auto stride = this->m_bndCondPhysOp->GetBlockCompStride(blk);
223 this->m_bndCondPhysOp->UpdateBlockPtr(blk, this->m_opStreamID);
225 m_pressure[blk].template GetPtr<MemSpace, ReadOnly>(
227 const TData *norms = this->m_bndCondPhysOp->GetBlockNormals(blk);
230 "Prescribed outflow pressure was taken for a different "
231 "block size than the storage now reports.");
233 ApplyPressureOutflowBlock<ExecSpace>(
#define ASSERTL0(condition, msg)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
Subsonic pressure outflow, as a boundary state.
std::vector< LocalRegions::ExpansionSharedPtr > & GetExpVector()
A MemoryRegion represents a memory region.
Subsonic pressure outflow.
typename ExecSpace::memory_space MemSpace
std::vector< LibUtilities::MemoryRegion< TData > > m_pressure
Prescribed static pressure per owned block, taken from the session before the storage is overwritten....
std::vector< bool > v_GetOwnedBlocks() const override
BndCondPressureOutflowCFEOpImpl(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
void v_SetBndCondPhysOp() override
Copy the prescribed pressure out of the session-evaluated storage, while it is still there.
static std::string className
static std::unique_ptr< MultiRegions::Operator< TData > > Instantiate(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
Collections::Collection GetCollection(MultiRegions::ExpListSharedPtr expansionList, unsigned int block_idx)
void SetUpEquationOfState(LibUtilities::SessionReaderSharedPtr session, IdealGasEoS< TData > &EoS)
bool IsPressureOutflowTag(const std::string &tag)
Tag this operator claims.