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

Implementation of HOutflowBndCondOp. More...

#include <HOutflowBndCondOpImpl.hpp>

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

Classes

struct  CoeffTargets
 
struct  GatherIndices
 
struct  InterleaveWidthIndices
 
struct  VolumeGather
 

Public Member Functions

 HOutflowBndCondOpImpl (const MultiRegions::ExpListSharedPtr &pressureExpansionList, const std::vector< std::string > &pressureComponents)
 
- Public Member Functions inherited from Nektar::HOutflowBndCondOp< TData >
void SetVelocityContext (const MultiRegions::ExpListSharedPtr &velocityExpansionList, const std::vector< std::string > &velocityComponents)
 Set the velocity expansion list and the names of the velocity components, and build the velocity boundary data.
 
void SetKinvis (const TData &kinvis)
 Set the kinematic viscosity UpdatePressure() and the velocity Neumann condition use.
 
void SetTime (const TData &time)
 Set the time at which UpdatePressure() evaluates the Neumann value f_b of the velocity conditions (default 0). A region whose f_b does not use t is evaluated only by the first UpdatePressure().
 
void SetScale (const TData &scale)
 Set the scale by which UpdatePressure() multiplies the velocity it is passed, and its gradient, to give the velocity u* (default 1).
 
void UpdatePressure (LibUtilities::Field< TData, FieldState::Phys > &velocity)
 Set the pressure boundary values from the extrapolated velocity.
 
void SetPressure (LibUtilities::Field< TData, FieldState::Phys > &pressure)
 Set the solved pressure, in physical space, from which the velocity Neumann condition computes the velocity flux when it is applied.
 
std::shared_ptr< MultiRegions::DirBndCondOp< TData > > GetPressureDirichletOp ()
 The Dirichlet condition of the pressure system, whose Apply() is ApplyPressure().
 
std::shared_ptr< MultiRegions::NeuBndCondOp< TData > > GetVelocityNeumannOp ()
 The Neumann condition of the velocity system, whose Apply() is ApplyVelocity(), available once SetVelocityContext() has been called.
 
- 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::unique_ptr< MultiRegions::Operator< TData > > Instantiate (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
 
- Static Public Member Functions inherited from Nektar::HOutflowBndCondOp< TData >
static std::shared_ptr< HOutflowBndCondOp< TData > > Create (const MultiRegions::ExpListSharedPtr &pressureExpansionList, const std::vector< std::string > &pressureComponents, 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 std::string className
 
- Static Public Attributes inherited from Nektar::HOutflowBndCondOp< TData >
static const std::string name = "HOutflowBndCond"
 
static const std::string userDefinedType = "HOutflow"
 USERDEFINEDTYPE of the pressure Dirichlet and velocity Neumann conditions the operator applies.
 

Protected Member Functions

size_t GetNumPressureBndDofs () const
 
size_t GetNumVelocityBndDofs () const
 
void AddVelocitySurfaceIntegral (LibUtilities::MemoryRegion< TData > &data)
 
void v_SetVelocityContext (const MultiRegions::ExpListSharedPtr &velocityExpansionList, const std::vector< std::string > &velocityComponents) override
 
void v_UpdatePressure (LibUtilities::Field< TData, FieldState::Phys > &velocity) override
 
void ApplyPressure (LibUtilities::Field< TData, FieldState::Coeff > &out)
 
void ApplyVelocity (LibUtilities::Field< TData, FieldState::Coeff > &inout)
 
void BuildPressureBoundaryData ()
 
void ValidateAndBuildVelocityBoundaryData (const std::vector< std::string > &components)
 
std::vector< CoeffTargets > BuildCoeffTargets (std::vector< LibUtilities::MemoryRegion< size_t > > &unitWidthIndex, const MultiRegions::ExpListSharedPtr &expansionList)
 
void BuildBoundaryElementData (const std::vector< std::string > &components)
 
void GatherVelocity (LibUtilities::Field< TData, FieldState::Phys > &velocity)
 
void EvaluateFb (const TData time)
 
void EvaluatePressure (LibUtilities::Field< TData, FieldState::Phys > &velocity, const TData kinvis, const TData scale)
 
void ProjectPressure ()
 
void EvaluateVelocity ()
 
void ProjectVelocity ()
 
template<typename ProjectFn >
void ProjectAndGatherCoeffs (std::vector< LibUtilities::Field< TData, FieldState::Coeff > > &fields, const std::vector< size_t > &offsets, const size_t compSize, LibUtilities::MemoryRegion< TData > &compact, std::vector< LibUtilities::MemoryRegion< size_t > > &coefficientSources, std::vector< LibUtilities::MemoryRegion< TData > > &mappedCoefficients, std::vector< LibUtilities::MemoryRegion< size_t > > *groupSources, std::vector< LibUtilities::MemoryRegion< TData > > *groupValues, const std::vector< unsigned int > &updateStreams, ProjectFn &&project)
 
void ApplyNeumannMaps (LibUtilities::Field< TData, FieldState::Coeff > &inout)
 
- Protected Member Functions inherited from Nektar::HOutflowBndCondOp< TData >
 HOutflowBndCondOp (const MultiRegions::ExpListSharedPtr &pressureExpansionList, const std::vector< std::string > &pressureComponents)
 
 ~HOutflowBndCondOp () override=default
 

Static Protected Member Functions

static bool IsHOutflow (const SpatialDomains::BoundaryConditionShPtr &condition)
 
static std::vector< unsigned int > UpdateStreams (const size_t nDomainBlocks, std::vector< LibUtilities::Field< TData, FieldState::Coeff > > &fields)
 
static std::vector< size_t > PointIndex (const VolumeGather &gather, const std::vector< size_t > &elmts, const unsigned int interleaveWidth, const unsigned int dstInterleaveWidth)
 
static std::vector< size_t > TargetIndex (const CoeffTargets &targets, const unsigned int interleaveWidth)
 
template<typename BuildIndexFn >
static LibUtilities::MemoryRegion< size_t > & IndexAtInterleaveWidth (InterleaveWidthIndices &indices, const unsigned int interleaveWidth, const unsigned int streamID, BuildIndexFn &&buildIndex)
 
static GatherIndices & GatherIndicesAtInterleaveWidths (VolumeGather &gather, const unsigned int srcInterleaveWidth, const unsigned int dstInterleaveWidth, const unsigned int streamID)
 
static void SetRestrictedInterleaveWidth (LibUtilities::Field< TData, FieldState::Phys > &field, const unsigned int interleaveWidth)
 
static LibUtilities::MemoryRegion< size_t > & TargetsAtInterleaveWidth (CoeffTargets &targets, const unsigned int interleaveWidth, const unsigned int streamID)
 

Protected Attributes

unsigned int m_coordDim = 0
 
TData m_theta = 1
 
TData m_alpha1 = 0
 
TData m_alpha2 = 0
 
TData m_U0 = 1
 
TData m_delta = TData(1.0 / 20.0)
 
bool m_pressureUpdated = false
 
bool m_isFbEvaluated = false
 
MultiRegions::ExpListSharedPtr m_velocityExpansionList
 
MultiRegions::ExpListSharedPtr m_restrictedVelocityExpansionList
 
LibUtilities::Field< TData, FieldState::Phys > m_restrictedVelocity
 
LibUtilities::Field< TData, FieldState::Phys > m_restrictedGradient
 
std::shared_ptr< MultiRegions::PhysDerivOp< TData > > m_physDerivOp
 
std::vector< unsigned int > m_pressureConditionIndices
 
std::vector< unsigned int > m_regionIds
 
std::vector< MultiRegions::ExpListSharedPtr > m_pressureBndExpLists
 
std::vector< MultiRegions::ExpListSharedPtr > m_velocityBndExpLists
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_pressureBndPhys
 
std::vector< LibUtilities::Field< TData, FieldState::Coeff > > m_pressureBndCoeffs
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_velocityBndPhys
 
std::vector< LibUtilities::Field< TData, FieldState::Coeff > > m_velocityBndCoeffs
 
MultiRegions::detail::CGBndCondSurfaceIntegral< ExecSpace, TData > m_velocitySurfaceIntegral
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_fbPhys
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_normals
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_energyMinusFb
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_divergence
 
std::vector< std::shared_ptr< MultiRegions::FwdTransBCOp< TData > > > m_pressureFwdTransOps
 
std::vector< std::shared_ptr< MultiRegions::IProductWRTBaseOp< TData > > > m_velocityIProductOps
 
std::vector< std::shared_ptr< MultiRegions::ExpressionOp< TData > > > m_fbExpressionOps
 
std::vector< bool > m_fbIsTimeDependent
 
std::vector< VolumeGather > m_volumeGathers
 
std::vector< std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond< ExecSpace, TData > > > m_bndVelocityExtractOps
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_bndVelocity
 
std::vector< std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond< ExecSpace, TData > > > m_bndGradientExtractOps
 
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_bndGradient
 
std::vector< std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond< ExecSpace, TData > > > m_bndPressureExtractOps
 
size_t m_pressureNumBndCoeffCompSize = 0
 
size_t m_velocityNumBndCoeffCompSize = 0
 
std::vector< size_t > m_pressureCoeffOffsets
 
std::vector< size_t > m_velocityCoeffOffsets
 
LibUtilities::MemoryRegion< TData > m_pressureCompactCoeff
 
LibUtilities::MemoryRegion< TData > m_velocityCompactCoeff
 
std::vector< unsigned int > m_pressureUpdateStreams
 
std::vector< unsigned int > m_velocityUpdateStreams
 
bool m_pressureSignChange = false
 
std::vector< CoeffTargets > m_pressureMap
 
std::vector< LibUtilities::MemoryRegion< TData > > m_pressureSign
 
std::vector< LibUtilities::MemoryRegion< TData > > m_pressureMappedCoeff
 
std::vector< LibUtilities::MemoryRegion< size_t > > m_pressureCoeffSrc
 
std::vector< size_t > m_pressureOffsets
 
std::vector< size_t > m_pressureCounts
 
bool m_velocityAnySignChange = false
 
std::vector< bool > m_velocitySignChange
 
std::vector< CoeffTargets > m_velocityMap
 
std::vector< LibUtilities::MemoryRegion< TData > > m_velocitySign
 
std::vector< LibUtilities::MemoryRegion< TData > > m_velocityMappedCoeff
 
std::vector< LibUtilities::MemoryRegion< size_t > > m_velocityCoeffSrc
 
std::vector< std::vector< size_t > > m_velocityCompOffsets
 
std::vector< std::vector< size_t > > m_velocityCompCounts
 
std::vector< CoeffTargets > m_velocityGroupTarget
 
std::vector< LibUtilities::MemoryRegion< size_t > > m_velocityGroupOffset
 
std::vector< LibUtilities::MemoryRegion< size_t > > m_velocityGroupSrc
 
std::vector< LibUtilities::MemoryRegion< TData > > m_velocityGroupSign
 
std::vector< LibUtilities::MemoryRegion< TData > > m_velocityGroupValue
 
std::vector< std::vector< size_t > > m_velocityCompGroupOffsets
 
std::vector< std::vector< size_t > > m_velocityCompGroupCounts
 
- Protected Attributes inherited from Nektar::HOutflowBndCondOp< TData >
std::shared_ptr< MultiRegions::DirBndCondOp< TData > > m_pressureAdapter
 
std::shared_ptr< MultiRegions::NeuBndCondOp< TData > > m_velocityAdapter
 
TData m_kinvis = 0.0
 Kinematic viscosity, set by SetKinvis().
 
TData m_time = 0.0
 Time of the Neumann value f_b, set by SetTime().
 
TData m_scale = 1.0
 Scale of the velocity passed to UpdatePressure(), set by SetScale().
 
LibUtilities::Field< TData, FieldState::Phys > * m_pressure = nullptr
 Solved pressure, set by SetPressure(); not owned.
 
- 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.
 

Static Protected Attributes

static constexpr unsigned int m_interleaveWidth
 
static constexpr unsigned int m_opStreamID = 1
 

Private Types

using MemSpace = typename ExecSpace::memory_space
 

Friends

class HOutflowPressureAdapter< ExecSpace, TData >
 
class HOutflowVelocityAdapter< ExecSpace, TData >
 

Detailed Description

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

Implementation of HOutflowBndCondOp.

UpdatePressure() gathers the velocity on the volume elements adjacent to the regions and differentiates it there, extracts the velocity from the volume field and its gradient from those elements onto every region with PhysTraceExtractBndCond, evaluates the pressure condition and projects it onto the boundary basis. ApplyPressure(), the Apply() of the pressure adapter, then sets the Dirichlet pressure coefficients. ApplyVelocity(), the Apply() of the velocity adapter, extracts the solved pressure set by SetPressure() onto every region, evaluates the velocity flux, takes its inner product with the boundary basis and scatters it into the velocity forcing. Every block of the work runs on its own stream.

Definition at line 197 of file HOutflowBndCondOpImpl.hpp.

Member Typedef Documentation

◆ MemSpace

template<typename ExecSpace , typename TData >
using Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::MemSpace = typename ExecSpace::memory_space
private

Definition at line 199 of file HOutflowBndCondOpImpl.hpp.

Constructor & Destructor Documentation

◆ HOutflowBndCondOpImpl()

template<typename ExecSpace , typename TData >
Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::HOutflowBndCondOpImpl ( const MultiRegions::ExpListSharedPtr &  pressureExpansionList,
const std::vector< std::string > &  pressureComponents 
)
inline

Definition at line 204 of file HOutflowBndCondOpImpl.hpp.

207 : HOutflowBndCondOp<TData>(pressureExpansionList, pressureComponents)
208 {
209 ASSERTL1(pressureComponents.size() == 1,
210 "HOutflow expects one pressure component.");
211 ASSERTL1(std::dynamic_pointer_cast<MultiRegions::ContField>(
212 pressureExpansionList),
213 "HOutflow requires a continuous pressure field.");
214 m_coordDim = pressureExpansionList->GetCoordim(0);
215
216 auto session = pressureExpansionList->GetSession();
217 session->LoadParameter("OutflowBC_theta", m_theta, TData(1));
218 session->LoadParameter("OutflowBC_alpha1", m_alpha1, TData(0));
219 session->LoadParameter("OutflowBC_alpha2", m_alpha2, TData(0));
220 session->LoadParameter("U0_HighOrderBC", m_U0, TData(1));
221 session->LoadParameter("Delta_HighOrderBC", m_delta, TData(1.0 / 20.0));
222 ASSERTL0(m_U0 > TData(0) && m_delta > TData(0),
223 "HOutflow requires positive U0_HighOrderBC and "
224 "Delta_HighOrderBC.");
225
227 this->m_pressureAdapter =
228 std::make_shared<HOutflowPressureAdapter<ExecSpace, TData>>(
229 pressureExpansionList, pressureComponents);
230 std::dynamic_pointer_cast<HOutflowPressureAdapter<ExecSpace, TData>>(
231 this->m_pressureAdapter)
232 ->SetOwner(this);
233 }
#define ASSERTL0(condition, msg)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
LibUtilities::SessionReaderSharedPtr session
Dong's high-order outflow boundary condition, a pressure Dirichlet condition coupled with a velocity ...
std::shared_ptr< MultiRegions::DirBndCondOp< TData > > m_pressureAdapter

References ASSERTL0, ASSERTL1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildPressureBoundaryData(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_alpha1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_alpha2, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_delta, Nektar::HOutflowBndCondOp< TData >::m_pressureAdapter, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_theta, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_U0, and session.

Member Function Documentation

◆ AddVelocitySurfaceIntegral()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::AddVelocitySurfaceIntegral ( LibUtilities::MemoryRegion< TData > &  data)
inlineprotected

Definition at line 425 of file HOutflowBndCondOpImpl.hpp.

426 {
428 }
MultiRegions::detail::CGBndCondSurfaceIntegral< ExecSpace, TData > m_velocitySurfaceIntegral
std::vector< LibUtilities::Field< TData, FieldState::Coeff > > m_velocityBndCoeffs

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndCoeffs, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySurfaceIntegral.

◆ ApplyNeumannMaps()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyNeumannMaps ( LibUtilities::Field< TData, FieldState::Coeff > &  inout)
inlineprotected

Definition at line 1533 of file HOutflowBndCondOpImpl.hpp.

1534 {
1535 for (unsigned int blk = 0; blk < inout.GetBlocks().size(); ++blk)
1536 {
1537 const unsigned int streamID = blk + 1;
1538
1539 // The targets index the block at its own interleave width.
1540 auto &block = inout.GetBlocks()[blk];
1541 const unsigned int interleaveWidth = block.GetInterleaveWidth();
1542 auto ptr = block.template GetPtr<MemSpace, ReadWrite>(streamID);
1544 interleaveWidth, streamID)
1545 .template GetPtr<MemSpace, ReadOnly>(streamID);
1546 auto coeff =
1547 m_velocityMappedCoeff[blk].template GetPtr<MemSpace, ReadOnly>(
1548 streamID);
1549 const TData *sign =
1551 ? m_velocitySign[blk].template GetPtr<MemSpace, ReadOnly>(
1552 streamID)
1553 : nullptr;
1554 for (unsigned int d = 0; d < m_coordDim; ++d)
1555 {
1556 const size_t offset = m_velocityCompOffsets[blk][d];
1557 const size_t count = m_velocityCompCounts[blk][d];
1558 if (count > 0)
1559 {
1560 if (m_velocitySignChange[d])
1561 {
1562 MultiRegions::detail::NeuBndCondKernel<ExecSpace>(
1563 count, sign + offset, map + offset, coeff + offset,
1564 ptr + d * block.CompSize(), streamID);
1565 }
1566 else
1567 {
1568 MultiRegions::detail::NeuBndCondKernel<ExecSpace>(
1569 count, map + offset, coeff + offset,
1570 ptr + d * block.CompSize(), streamID);
1571 }
1572 }
1573
1574 const size_t groupCount = m_velocityCompGroupCounts[blk][d];
1575 if (groupCount > 0)
1576 {
1577 const size_t groupOffset =
1579 auto groupOffsets =
1581 .template GetPtr<MemSpace, ReadOnly>(streamID) +
1582 groupOffset;
1583 auto groupTargets =
1585 interleaveWidth, streamID)
1586 .template GetPtr<MemSpace, ReadOnly>(streamID) +
1587 groupOffset;
1588 auto groupValues =
1590 .template GetPtr<MemSpace, ReadOnly>(streamID);
1591 if (m_velocitySignChange[d])
1592 {
1593 auto groupSigns =
1595 .template GetPtr<MemSpace, ReadOnly>(streamID);
1596 MultiRegions::detail::NeuBndCondGroupKernel<ExecSpace>(
1597 groupCount, groupOffsets, groupTargets, groupSigns,
1598 groupValues, ptr + d * block.CompSize(), streamID);
1599 }
1600 else
1601 {
1602 MultiRegions::detail::NeuBndCondGroupKernel<ExecSpace>(
1603 groupCount, groupOffsets, groupTargets, groupValues,
1604 ptr + d * block.CompSize(), streamID);
1605 }
1606 }
1607 }
1608 }
1609 }
#define sign(a, b)
return the sign(b)*a
Definition Polylib.cpp:47
std::vector< BlockAccessor< TData, TState > > & GetBlocks()
Get BlockAccessors for the field.
std::vector< LibUtilities::MemoryRegion< size_t > > m_velocityGroupOffset
static LibUtilities::MemoryRegion< size_t > & TargetsAtInterleaveWidth(CoeffTargets &targets, const unsigned int interleaveWidth, const unsigned int streamID)
std::vector< LibUtilities::MemoryRegion< TData > > m_velocityGroupValue
std::vector< std::vector< size_t > > m_velocityCompGroupOffsets
std::vector< std::vector< size_t > > m_velocityCompCounts
std::vector< LibUtilities::MemoryRegion< TData > > m_velocityMappedCoeff
std::vector< std::vector< size_t > > m_velocityCompOffsets
std::vector< CoeffTargets > m_velocityGroupTarget
std::vector< std::vector< size_t > > m_velocityCompGroupCounts
std::vector< LibUtilities::MemoryRegion< TData > > m_velocityGroupSign
std::vector< LibUtilities::MemoryRegion< TData > > m_velocitySign
std::vector< double > d(NPUPPER *NPUPPER)

References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityAnySignChange, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompCounts, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompGroupCounts, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompGroupOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupOffset, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupSign, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupTarget, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupValue, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMap, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMappedCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySign, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySignChange, sign, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::TargetsAtInterleaveWidth().

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyVelocity().

◆ ApplyPressure()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyPressure ( LibUtilities::Field< TData, FieldState::Coeff > &  out)
inlineprotected

Definition at line 481 of file HOutflowBndCondOpImpl.hpp.

482 {
484 {
485 return;
486 }
487
488 for (unsigned int blk = 0; blk < out.GetBlocks().size(); ++blk)
489 {
490 const unsigned int streamID = blk + 1;
491 // The targets index the block at its own interleave width.
492 auto &outBlock = out.GetBlocks()[blk];
493 const unsigned int interleaveWidth = outBlock.GetInterleaveWidth();
494 auto outPtr =
495 outBlock.template GetPtr<MemSpace, ReadWrite>(streamID);
496
497 const size_t count = m_pressureCounts[blk];
498 if (count > 0)
499 {
500 const size_t offset = m_pressureOffsets[blk];
501 auto mapPtr =
503 interleaveWidth, streamID)
504 .template GetPtr<MemSpace, ReadOnly>(streamID) +
505 offset;
506 auto coeffPtr =
508 .template GetPtr<MemSpace, ReadOnly>(streamID) +
509 offset;
511 {
512 auto signPtr =
513 m_pressureSign[blk].template GetPtr<MemSpace, ReadOnly>(
514 streamID) +
515 offset;
516 MultiRegions::detail::DirBndCondKernel<ExecSpace>(
517 count, signPtr, mapPtr, coeffPtr, outPtr, streamID);
518 }
519 else
520 {
521 MultiRegions::detail::DirBndCondKernel<ExecSpace>(
522 count, mapPtr, coeffPtr, outPtr, streamID);
523 }
524 }
525 }
526 }
std::vector< LibUtilities::MemoryRegion< TData > > m_pressureMappedCoeff
std::vector< LibUtilities::MemoryRegion< TData > > m_pressureSign
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT const TData *NEK_RESTRICT TData *NEK_RESTRICT out

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCounts, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMap, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMappedCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureSign, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureSignChange, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdated, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::TargetsAtInterleaveWidth().

◆ ApplyVelocity()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyVelocity ( LibUtilities::Field< TData, FieldState::Coeff > &  inout)
inlineprotected

Definition at line 528 of file HOutflowBndCondOpImpl.hpp.

529 {
530 // A rank without regions has nothing to apply, and need not have
531 // updated the pressure.
533 {
534 return;
535 }
537 "UpdatePressure must precede the velocity solve.");
538 ASSERTL1(this->m_pressure,
539 "SetPressure must be called before the velocity solve.");
540 ASSERTL1(this->m_kinvis > TData(0),
541 "HOutflow requires a positive kinematic viscosity, set by "
542 "SetKinvis().");
545 ApplyNeumannMaps(inout);
546 }
LibUtilities::Field< TData, FieldState::Phys > * m_pressure
Solved pressure, set by SetPressure(); not owned.
TData m_kinvis
Kinematic viscosity, set by SetKinvis().
void ApplyNeumannMaps(LibUtilities::Field< TData, FieldState::Coeff > &inout)

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyNeumannMaps(), ASSERTL1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::EvaluateVelocity(), Nektar::HOutflowBndCondOp< TData >::m_kinvis, Nektar::HOutflowBndCondOp< TData >::m_pressure, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdated, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityNumBndCoeffCompSize, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectVelocity().

◆ BuildBoundaryElementData()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildBoundaryElementData ( const std::vector< std::string > &  components)
inlineprotected

Definition at line 894 of file HOutflowBndCondOpImpl.hpp.

895 {
897 {
898 return;
899 }
900 struct VolumeLocation
901 {
902 unsigned int block;
903 size_t element;
905 };
906
907 auto BuildLocations = [](const MultiRegions::ExpListSharedPtr &list,
908 auto &locations, auto &owners) {
909 const auto blocks =
910 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
911 list, MultiRegions::UnitInterleaveWidths(list));
912 for (unsigned int blk = 0; blk < blocks.size(); ++blk)
913 {
914 auto collection = MultiRegions::GetCollection(list, blk);
915 const auto &expansions = collection.GetExpVector();
916 for (unsigned int e = 0; e < expansions.size(); ++e)
917 {
918 const int geometry =
919 expansions[e]->GetGeom()->GetGlobalID();
920 locations[geometry] = {blk, e, expansions[e]};
921 for (unsigned int f = 0; f < expansions[e]->GetNtraces();
922 ++f)
923 {
924 owners[expansions[e]->GetGeom()->GetTid(f)] = {geometry,
925 f};
926 }
927 }
928 }
929 };
930
931 std::map<int, VolumeLocation> velocityLocations;
932 std::map<int, std::pair<int, unsigned int>> velocityOwners;
933 BuildLocations(m_velocityExpansionList, velocityLocations,
934 velocityOwners);
935
936 // The velocity elements adjacent to a region, matched to its
937 // elements by geometry id. The pressure and velocity boundary
938 // expansion lists agree element for element
939 // (ValidateAndBuildVelocityBoundaryData()).
940 std::set<int> selectedVelocityGeometry;
941 for (unsigned int n = 0; n < m_pressureBndExpLists.size(); ++n)
942 {
943 const auto blocks =
944 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
946 MultiRegions::UnitInterleaveWidths(
948 for (unsigned int blk = 0; blk < blocks.size(); ++blk)
949 {
950 auto collection =
952 const auto &expansions = collection.GetExpVector();
953 for (unsigned int e = 0; e < expansions.size(); ++e)
954 {
955 const auto owner = velocityOwners.find(
956 expansions[e]->GetGeom()->GetGlobalID());
957 ASSERTL1(owner != velocityOwners.end(),
958 "Unable to locate an element adjacent to "
959 "HOutflow.");
960 selectedVelocityGeometry.insert(owner->second.first);
961 }
962 }
963 }
964
966 const auto &velocityInfo =
967 m_velocityExpansionList->GetGraph()->GetExpansionInfo(
968 components[0]);
969 for (const auto geometry : selectedVelocityGeometry)
970 {
971 const auto it = velocityInfo.find(geometry);
972 ASSERTL1(it != velocityInfo.end(),
973 "Unable to locate HOutflow velocity expansion data.");
974 restrictedInfo.emplace(*it);
975 }
978 m_velocityExpansionList->GetSession(), restrictedInfo, false);
979 m_restrictedVelocityExpansionList->SetDataWarehouse();
980 const auto restrictedBlocks =
981 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
983 MultiRegions::UnitInterleaveWidths(
986 "HOutflow restricted velocity", restrictedBlocks, components, 1);
987 std::vector<std::string> gradientComponents(m_coordDim * m_coordDim);
988 for (unsigned int d = 0; d < m_coordDim; ++d)
989 {
990 for (unsigned int j = 0; j < m_coordDim; ++j)
991 {
992 gradientComponents[d * m_coordDim + j] =
993 "d" + components[d] + "d" + std::to_string(j);
994 }
995 }
997 "HOutflow restricted velocity gradient", restrictedBlocks,
998 gradientComponents, 1);
999 m_restrictedVelocity.template Initialize<MemSpace>(0.0);
1000 m_restrictedGradient.template Initialize<MemSpace>(0.0);
1001
1002 std::map<int, VolumeLocation> restrictedLocations;
1003 std::map<int, std::pair<int, unsigned int>> unusedOwners;
1004 BuildLocations(m_restrictedVelocityExpansionList, restrictedLocations,
1005 unusedOwners);
1006 // Per pair of source and destination block, the destination element
1007 // of every element gathered, mapped to its source element, in
1008 // increasing destination element.
1009 std::map<std::pair<unsigned int, unsigned int>,
1010 std::map<size_t, size_t>>
1011 gathers;
1012 for (const int geometry : selectedVelocityGeometry)
1013 {
1014 const auto &src = velocityLocations.at(geometry);
1015 const auto &dst = restrictedLocations.at(geometry);
1016 gathers[{src.block, dst.block}][dst.element] = src.element;
1017 }
1018 for (auto &[blocks, map] : gathers)
1019 {
1020 VolumeGather gather;
1021 gather.srcBlock = blocks.first;
1022 gather.dstBlock = blocks.second;
1023 gather.nData = restrictedBlocks[blocks.second].GetNumData();
1024 for (const auto &[dstElmt, srcElmt] : map)
1025 {
1026 gather.dstElmt.push_back(dstElmt);
1027 gather.srcElmt.push_back(srcElmt);
1028 }
1029 m_volumeGathers.push_back(std::move(gather));
1030 }
1031
1033 m_restrictedVelocityExpansionList, components, ExecSpace::name);
1034
1035 // Per region, the extractions of the velocity, of its gradient and
1036 // of the pressure. The pressure and velocity boundary expansion
1037 // lists have the same points (ValidateAndBuildVelocityBoundaryData()),
1038 // so the extracted fields pair with m_normals and m_fbPhys point by
1039 // point. The velocity is extracted from the volume velocity field,
1040 // and its gradient from m_restrictedGradient: the expansion list of
1041 // the latter, built from an ExpansionInfoMap, has no mesh graph, so
1042 // its extraction takes that of the velocity field.
1043 for (unsigned int n = 0; n < m_pressureBndExpLists.size(); ++n)
1044 {
1045 const auto bndPhysBlocks =
1046 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
1048 MultiRegions::UnitInterleaveWidths(
1050
1051 m_bndVelocityExtractOps.push_back(
1053 ExecSpace, TData>>(m_velocityExpansionList, components,
1055 ExecSpace::name));
1056 m_bndVelocity.emplace_back("HOutflow boundary velocity",
1057 bndPhysBlocks, components, 1);
1058 m_bndVelocity.back().template Initialize<MemSpace>(0.0);
1059
1060 m_bndGradientExtractOps.push_back(
1062 ExecSpace, TData>>(
1063 m_restrictedVelocityExpansionList, gradientComponents,
1064 m_pressureBndExpLists[n], ExecSpace::name,
1065 m_velocityExpansionList->GetGraph()));
1066 m_bndGradient.emplace_back("HOutflow boundary velocity gradient",
1067 bndPhysBlocks, gradientComponents, 1);
1068 m_bndGradient.back().template Initialize<MemSpace>(0.0);
1069
1070 m_bndPressureExtractOps.push_back(
1072 ExecSpace, TData>>(
1073 this->m_expansionList, this->m_components,
1074 m_pressureBndExpLists[n], ExecSpace::name));
1075 }
1076 }
A Field represents expansion data to be operated on.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::vector< std::string > m_components
Names of the field components the operator was built for.
Definition Operator.hpp:351
MultiRegions::ExpListSharedPtr m_expansionList
Expansion list the operator acts on.
Definition Operator.hpp:349
static std::shared_ptr< PhysDerivOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="")
Create a physical-derivative operator, its per-block operators and, for a multi-plane 3DH1 expansion,...
Extracts a volume field onto the points of a boundary region of a continuous field.
std::vector< std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond< ExecSpace, TData > > > m_bndPressureExtractOps
LibUtilities::Field< TData, FieldState::Phys > m_restrictedGradient
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_bndGradient
MultiRegions::ExpListSharedPtr m_velocityExpansionList
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_bndVelocity
std::vector< std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond< ExecSpace, TData > > > m_bndGradientExtractOps
LibUtilities::Field< TData, FieldState::Phys > m_restrictedVelocity
std::shared_ptr< MultiRegions::PhysDerivOp< TData > > m_physDerivOp
std::vector< MultiRegions::ExpListSharedPtr > m_pressureBndExpLists
std::vector< std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond< ExecSpace, TData > > > m_bndVelocityExtractOps
MultiRegions::ExpListSharedPtr m_restrictedVelocityExpansionList
std::shared_ptr< Expansion > ExpansionSharedPtr
Definition Expansion.h:66
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
Collections::Collection GetCollection(MultiRegions::ExpListSharedPtr expansionList, unsigned int block_idx)
std::map< int, ExpansionInfoShPtr > ExpansionInfoMap
Definition MeshGraph.h:160

References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL1, Nektar::MultiRegions::PhysDerivOp< TData >::Create(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::dstBlock, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::dstElmt, Nektar::MultiRegions::GetCollection(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndGradient, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndGradientExtractOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndPressureExtractOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndVelocity, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndVelocityExtractOps, Nektar::MultiRegions::Operator< TData >::m_components, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::MultiRegions::Operator< TData >::m_expansionList, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_physDerivOp, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndExpLists, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedGradient, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedVelocity, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedVelocityExpansionList, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityExpansionList, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_volumeGathers, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::nData, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::srcBlock, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::srcElmt.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_SetVelocityContext().

◆ BuildCoeffTargets()

template<typename ExecSpace , typename TData >
std::vector< CoeffTargets > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildCoeffTargets ( std::vector< LibUtilities::MemoryRegion< size_t > > &  unitWidthIndex,
const MultiRegions::ExpListSharedPtr &  expansionList 
)
inlineprotected

Definition at line 870 of file HOutflowBndCondOpImpl.hpp.

873 {
874 const auto coeffBlocks =
875 MultiRegions::GetBlockAttributes<TData, FieldState::Coeff>(
876 expansionList,
877 MultiRegions::UnitInterleaveWidths(expansionList));
878 std::vector<CoeffTargets> targets(unitWidthIndex.size());
879 for (unsigned int blk = 0; blk < unitWidthIndex.size(); ++blk)
880 {
881 targets[blk].nCoeffs = coeffBlocks[blk].GetNumData();
882 const size_t nTargets = unitWidthIndex[blk].size();
883 if (nTargets > 0)
884 {
885 auto elmtCoeff =
886 unitWidthIndex[blk]
887 .template GetPtr<NektarSpaces::HostSpace, ReadOnly>();
888 targets[blk].elmtCoeff.assign(elmtCoeff, elmtCoeff + nTargets);
889 }
890 }
891 return targets;
892 }

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildPressureBoundaryData(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ValidateAndBuildVelocityBoundaryData().

◆ BuildPressureBoundaryData()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildPressureBoundaryData ( )
inlineprotected

Definition at line 557 of file HOutflowBndCondOpImpl.hpp.

558 {
559 const auto &bndExpansions =
560 this->m_expansionList->GetBndCondExpansions();
561 const auto &bndConditions = this->m_expansionList->GetBndConditions();
563 this->m_expansionList->GetSession(),
564 this->m_expansionList->GetGraph());
565 const auto &bregions = bcs.GetBoundaryRegions();
566 for (const auto &[regionId, region] : bregions)
567 {
568 m_regionIds.push_back(regionId);
569 }
570 ASSERTL1(m_regionIds.size() == bndExpansions.size(),
571 "Boundary region and expansion counts differ.");
572
573 std::vector<std::vector<bool>> isTypeByRegion(bndExpansions.size());
574 std::vector<size_t> numBcExpCoeffs(bndExpansions.size());
575 for (unsigned int n = 0; n < bndExpansions.size(); ++n)
576 {
577 const bool match = IsHOutflow(bndConditions[n]);
578 ASSERTL0(!match || bndConditions[n]->GetBoundaryConditionType() ==
580 "HOutflow pressure conditions must be Dirichlet.");
581 isTypeByRegion[n] = {match};
582 numBcExpCoeffs[n] = bndExpansions[n]->GetNcoeffs();
583 if (!match)
584 {
585 continue;
586 }
587
588 auto bndExp = bndExpansions[n];
589 bndExp->SetDataWarehouse();
590 m_pressureConditionIndices.push_back(n);
591 m_pressureBndExpLists.push_back(bndExp);
593 m_pressureNumBndCoeffCompSize += bndExp->GetNcoeffs();
594
595 const auto physBlocks =
596 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
597 bndExp, MultiRegions::UnitInterleaveWidths(bndExp));
598 const auto coeffBlocks =
599 MultiRegions::GetBlockAttributes<TData, FieldState::Coeff>(
600 bndExp, MultiRegions::UnitInterleaveWidths(bndExp));
601 m_pressureBndPhys.emplace_back("HOutflow pressure boundary phys",
602 physBlocks, this->m_components, 1);
603 m_pressureBndCoeffs.emplace_back(
604 "HOutflow pressure boundary coeffs", coeffBlocks,
605 this->m_components, 1);
606 m_pressureBndPhys.back().template Initialize<MemSpace>(0.0);
607 m_pressureBndCoeffs.back().template Initialize<MemSpace>(0.0);
608 m_pressureFwdTransOps.push_back(
610 bndExp, this->m_components, ExecSpace::name));
611 }
612
614 {
615 return;
616 }
617 // The kernels are instantiated for two and three dimensions.
618 ASSERTL0(m_coordDim == 2 || m_coordDim == 3,
619 "HOutflow is implemented for two and three dimensions.");
620 auto maps =
621 MultiRegions::detail::BuildCGBndCondCoeffMaps<ExecSpace, TData>(
622 this->m_expansionList, this->m_components, bregions,
623 isTypeByRegion, numBcExpCoeffs, m_pressureNumBndCoeffCompSize,
625 [](unsigned int, const auto &, const auto &, const auto &) {});
626 m_pressureSignChange = maps.signChange[0];
627 m_pressureSign = std::move(maps.sign);
628 m_pressureMappedCoeff = std::move(maps.bndCoeff);
629 m_pressureCoeffSrc = std::move(maps.bndCoeffSrc);
630 m_pressureOffsets.resize(maps.compOffsets.size());
631 m_pressureCounts.resize(maps.compCounts.size());
632 for (size_t blk = 0; blk < m_pressureCounts.size(); ++blk)
633 {
634 m_pressureOffsets[blk] = maps.compOffsets[blk][0];
635 m_pressureCounts[blk] = maps.compCounts[blk][0];
636 }
639 // Allocated here, on the null stream, so the region block streams
640 // that write it never race the allocation.
641 m_pressureCompactCoeff.template GetPtr<MemSpace, WriteOnly>();
644
645 m_pressureMap = BuildCoeffTargets(maps.map, this->m_expansionList);
646 }
A MemoryRegion represents a memory region.
std::vector< LibUtilities::Field< TData, FieldState::Coeff > > m_pressureBndCoeffs
std::vector< unsigned int > m_pressureUpdateStreams
std::vector< LibUtilities::MemoryRegion< size_t > > m_pressureCoeffSrc
std::vector< unsigned int > m_pressureConditionIndices
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_pressureBndPhys
std::vector< std::shared_ptr< MultiRegions::FwdTransBCOp< TData > > > m_pressureFwdTransOps
static std::vector< unsigned int > UpdateStreams(const size_t nDomainBlocks, std::vector< LibUtilities::Field< TData, FieldState::Coeff > > &fields)
std::vector< CoeffTargets > BuildCoeffTargets(std::vector< LibUtilities::MemoryRegion< size_t > > &unitWidthIndex, const MultiRegions::ExpListSharedPtr &expansionList)
static bool IsHOutflow(const SpatialDomains::BoundaryConditionShPtr &condition)
LibUtilities::MemoryRegion< TData > m_pressureCompactCoeff

References ASSERTL0, ASSERTL1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildCoeffTargets(), Nektar::SpatialDomains::eDirichlet, Nektar::MultiRegions::detail::Full, Nektar::SpatialDomains::BoundaryConditions::GetBoundaryRegions(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::IsHOutflow(), Nektar::MultiRegions::Operator< TData >::m_components, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::MultiRegions::Operator< TData >::m_expansionList, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndCoeffs, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndExpLists, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCoeffOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCoeffSrc, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCompactCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureConditionIndices, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCounts, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureFwdTransOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMap, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMappedCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureSign, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureSignChange, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdateStreams, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_regionIds, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::UpdateStreams().

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::HOutflowBndCondOpImpl().

◆ EvaluateFb()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::EvaluateFb ( const TData  time)
inlineprotected

◆ EvaluatePressure()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::EvaluatePressure ( LibUtilities::Field< TData, FieldState::Phys > &  velocity,
const TData  kinvis,
const TData  scale 
)
inlineprotected

Definition at line 1305 of file HOutflowBndCondOpImpl.hpp.

1308 {
1309 for (unsigned int n = 0; n < m_pressureBndPhys.size(); ++n)
1310 {
1311 m_bndVelocityExtractOps[n]->Apply(velocity, m_bndVelocity[n]);
1313 m_bndGradient[n]);
1314
1315 for (unsigned int blk = 0;
1316 blk < m_pressureBndPhys[n].GetBlocks().size(); ++blk)
1317 {
1318 // The extractions, m_normals and m_fbPhys are ordered before
1319 // the stream of the block.
1320 const unsigned int streamID = blk + 1;
1321
1322 auto &velocityBlock = m_bndVelocity[n].GetBlocks()[blk];
1323 auto &gradientBlock = m_bndGradient[n].GetBlocks()[blk];
1324 auto &normalBlock = m_normals[n].GetBlocks()[blk];
1325 auto &fbBlock = m_fbPhys[n].GetBlocks()[blk];
1326 auto &pressureBlock = m_pressureBndPhys[n].GetBlocks()[blk];
1327 auto &energyBlock = m_energyMinusFb[n].GetBlocks()[blk];
1328 auto &divBlock = m_divergence[n].GetBlocks()[blk];
1329 const size_t nPoints =
1330 pressureBlock.GetNumElementsWithPadding() *
1331 pressureBlock.GetNumData();
1332 const size_t compSize = velocityBlock.CompSize();
1333
1334 auto velocityPtr =
1335 velocityBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1336 auto gradientPtr =
1337 gradientBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1338 auto normalPtr =
1339 normalBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1340 auto fbPtr =
1341 fbBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1342 auto pressurePtr =
1343 pressureBlock.template GetPtr<MemSpace, WriteOnly>(
1344 streamID);
1345 auto energyPtr =
1346 energyBlock.template GetPtr<MemSpace, WriteOnly>(streamID);
1347 auto divPtr =
1348 divBlock.template GetPtr<MemSpace, WriteOnly>(streamID);
1349 if (m_coordDim == 2)
1350 {
1351 HOutflowPressureKernel<ExecSpace, 2>(
1352 nPoints, compSize, velocityPtr, gradientPtr, normalPtr,
1353 fbPtr, kinvis, scale, m_theta, m_alpha1, m_alpha2, m_U0,
1354 m_delta, pressurePtr, energyPtr, divPtr, streamID);
1355 }
1356 else if (m_coordDim == 3)
1357 {
1358 HOutflowPressureKernel<ExecSpace, 3>(
1359 nPoints, compSize, velocityPtr, gradientPtr, normalPtr,
1360 fbPtr, kinvis, scale, m_theta, m_alpha1, m_alpha2, m_U0,
1361 m_delta, pressurePtr, energyPtr, divPtr, streamID);
1362 }
1363 }
1364 }
1365 }
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_divergence
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_energyMinusFb
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_normals

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_alpha1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_alpha2, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndGradient, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndGradientExtractOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndVelocity, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndVelocityExtractOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_delta, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_divergence, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_energyMinusFb, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_normals, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedGradient, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_theta, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_U0.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_UpdatePressure().

◆ EvaluateVelocity()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::EvaluateVelocity ( )
inlineprotected

Definition at line 1382 of file HOutflowBndCondOpImpl.hpp.

1383 {
1384 for (unsigned int n = 0; n < m_velocityBndPhys.size(); ++n)
1385 {
1386 m_bndPressureExtractOps[n]->Apply(*this->m_pressure,
1388
1389 for (unsigned int blk = 0;
1390 blk < m_velocityBndPhys[n].GetBlocks().size(); ++blk)
1391 {
1392 // The extraction, m_normals, m_energyMinusFb and m_divergence
1393 // are ordered before the stream of the block.
1394 const unsigned int streamID = blk + 1;
1395
1396 auto &pressureBlock = m_pressureBndPhys[n].GetBlocks()[blk];
1397 auto &normalBlock = m_normals[n].GetBlocks()[blk];
1398 auto &energyBlock = m_energyMinusFb[n].GetBlocks()[blk];
1399 auto &divBlock = m_divergence[n].GetBlocks()[blk];
1400 auto &outBlock = m_velocityBndPhys[n].GetBlocks()[blk];
1401 const size_t nPoints = outBlock.GetNumElementsWithPadding() *
1402 outBlock.GetNumData();
1403 const size_t compSize = outBlock.CompSize();
1404
1405 auto pressurePtr =
1406 pressureBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1407 auto normalPtr =
1408 normalBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1409 auto energyPtr =
1410 energyBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1411 auto divPtr =
1412 divBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1413 auto outPtr =
1414 outBlock.template GetPtr<MemSpace, WriteOnly>(streamID);
1415 if (m_coordDim == 2)
1416 {
1417 HOutflowVelocityKernel<ExecSpace, 2>(
1418 nPoints, compSize, pressurePtr, normalPtr, energyPtr,
1419 divPtr, this->m_kinvis, outPtr, streamID);
1420 }
1421 else if (m_coordDim == 3)
1422 {
1423 HOutflowVelocityKernel<ExecSpace, 3>(
1424 nPoints, compSize, pressurePtr, normalPtr, energyPtr,
1425 divPtr, this->m_kinvis, outPtr, streamID);
1426 }
1427 }
1428 }
1429 }
std::vector< LibUtilities::Field< TData, FieldState::Phys > > m_velocityBndPhys

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndPressureExtractOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_divergence, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_energyMinusFb, Nektar::HOutflowBndCondOp< TData >::m_kinvis, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_normals, Nektar::HOutflowBndCondOp< TData >::m_pressure, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndPhys, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndPhys.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyVelocity().

◆ GatherIndicesAtInterleaveWidths()

template<typename ExecSpace , typename TData >
static GatherIndices & Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherIndicesAtInterleaveWidths ( VolumeGather &  gather,
const unsigned int  srcInterleaveWidth,
const unsigned int  dstInterleaveWidth,
const unsigned int  streamID 
)
inlinestaticprotected

Definition at line 1168 of file HOutflowBndCondOpImpl.hpp.

1171 {
1172 ASSERTL0((srcInterleaveWidth == 1u ||
1173 srcInterleaveWidth == m_interleaveWidth) &&
1174 (dstInterleaveWidth == 1u ||
1175 dstInterleaveWidth == m_interleaveWidth),
1176 "HOutflow takes fields at interleave width 1 or at the "
1177 "interleave width of its execution space.");
1178 auto [it, isNew] = gather.indices.try_emplace(
1179 std::make_pair(srcInterleaveWidth, dstInterleaveWidth));
1180 if (isNew)
1181 {
1182 it->second.srcIndex =
1184 MemSpace, size_t>(PointIndex(gather, gather.srcElmt,
1185 srcInterleaveWidth,
1186 dstInterleaveWidth),
1187 streamID);
1188 it->second.dstIndex =
1190 MemSpace, size_t>(PointIndex(gather, gather.dstElmt,
1191 dstInterleaveWidth,
1192 dstInterleaveWidth),
1193 streamID);
1194 }
1195 return it->second;
1196 }
static std::vector< size_t > PointIndex(const VolumeGather &gather, const std::vector< size_t > &elmts, const unsigned int interleaveWidth, const unsigned int dstInterleaveWidth)
static constexpr unsigned int m_interleaveWidth
typename ExecSpace::memory_space MemSpace

References ASSERTL0, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::dstElmt, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::indices, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_interleaveWidth, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::PointIndex(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::srcElmt.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherVelocity().

◆ GatherVelocity()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherVelocity ( LibUtilities::Field< TData, FieldState::Phys > &  velocity)
inlineprotected

Definition at line 1241 of file HOutflowBndCondOpImpl.hpp.

1242 {
1243 for (auto &gather : m_volumeGathers)
1244 {
1245 const unsigned int srcStreamID = gather.srcBlock + 1;
1246 const unsigned int streamID = gather.dstBlock + 1;
1247 auto &srcBlock = velocity.GetBlocks()[gather.srcBlock];
1248 auto &dstBlock = m_restrictedVelocity.GetBlocks()[gather.dstBlock];
1249
1250 RecordStreamEvent<ExecSpace>(srcStreamID);
1251 SetStreamDependencies<ExecSpace>(streamID, srcStreamID);
1252
1253 auto &indices = GatherIndicesAtInterleaveWidths(
1254 gather, srcBlock.GetInterleaveWidth(),
1255 dstBlock.GetInterleaveWidth(), streamID);
1256 auto src = srcBlock.template GetPtr<MemSpace, ReadOnly>(streamID);
1257 // The points of the block this gather does not write are
1258 // padding, which stays zero, or written by another gather.
1259 auto dst = dstBlock.template GetPtr<MemSpace, ReadWrite>(streamID);
1260 auto srcIdx =
1261 indices.srcIndex.template GetPtr<MemSpace, ReadOnly>(streamID);
1262 auto dstIdx =
1263 indices.dstIndex.template GetPtr<MemSpace, ReadOnly>(streamID);
1264 const size_t nsize = gather.srcElmt.size() * gather.nData;
1265 if (m_coordDim == 2)
1266 {
1267 HOutflowVolumeGatherKernel<ExecSpace, 2>(
1268 nsize, srcBlock.CompSize(), dstBlock.CompSize(), srcIdx,
1269 dstIdx, src, dst, streamID);
1270 }
1271 else if (m_coordDim == 3)
1272 {
1273 HOutflowVolumeGatherKernel<ExecSpace, 3>(
1274 nsize, srcBlock.CompSize(), dstBlock.CompSize(), srcIdx,
1275 dstIdx, src, dst, streamID);
1276 }
1277 RecordStreamEvent<ExecSpace>(streamID);
1278 }
1279
1280 for (const auto &gather : m_volumeGathers)
1281 {
1282 const unsigned int srcStreamID = gather.srcBlock + 1;
1283 const unsigned int streamID = gather.dstBlock + 1;
1284 SetStreamDependencies<ExecSpace>(srcStreamID, streamID);
1285 }
1286 }
static GatherIndices & GatherIndicesAtInterleaveWidths(VolumeGather &gather, const unsigned int srcInterleaveWidth, const unsigned int dstInterleaveWidth, const unsigned int streamID)

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherIndicesAtInterleaveWidths(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedVelocity, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_volumeGathers.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_UpdatePressure().

◆ GetNumPressureBndDofs()

template<typename ExecSpace , typename TData >
size_t Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GetNumPressureBndDofs ( ) const
inlineprotected

◆ GetNumVelocityBndDofs()

template<typename ExecSpace , typename TData >
size_t Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GetNumVelocityBndDofs ( ) const
inlineprotected

◆ IndexAtInterleaveWidth()

template<typename ExecSpace , typename TData >
template<typename BuildIndexFn >
static LibUtilities::MemoryRegion< size_t > & Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::IndexAtInterleaveWidth ( InterleaveWidthIndices &  indices,
const unsigned int  interleaveWidth,
const unsigned int  streamID,
BuildIndexFn &&  buildIndex 
)
inlinestaticprotected

Definition at line 1145 of file HOutflowBndCondOpImpl.hpp.

1148 {
1149 ASSERTL0(interleaveWidth == 1u || interleaveWidth == m_interleaveWidth,
1150 "HOutflow takes fields at interleave width 1 or at the "
1151 "interleave width of its execution space.");
1152 const bool isUnitWidth = interleaveWidth == 1u;
1153 auto &index = isUnitWidth ? indices.index : indices.interleavedIndex;
1154 bool &isBuilt = isUnitWidth ? indices.isBuiltIndex
1155 : indices.isBuiltInterleavedIndex;
1156 if (!isBuilt)
1157 {
1159 MemSpace, size_t>(buildIndex(interleaveWidth), streamID);
1160 isBuilt = true;
1161 }
1162 return index;
1163 }

References ASSERTL0, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::InterleaveWidthIndices::index, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::InterleaveWidthIndices::interleavedIndex, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::InterleaveWidthIndices::isBuiltIndex, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::InterleaveWidthIndices::isBuiltInterleavedIndex, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_interleaveWidth.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::TargetsAtInterleaveWidth().

◆ Instantiate()

template<typename ExecSpace , typename TData >
static std::unique_ptr< MultiRegions::Operator< TData > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::Instantiate ( const MultiRegions::ExpListSharedPtr &  expansionList,
const std::vector< std::string > &  components 
)
inlinestatic

Definition at line 237 of file HOutflowBndCondOpImpl.hpp.

240 {
241 return std::make_unique<HOutflowBndCondOpImpl<ExecSpace, TData>>(
242 expansionList, components);
243 }

◆ IsHOutflow()

template<typename ExecSpace , typename TData >
static bool Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::IsHOutflow ( const SpatialDomains::BoundaryConditionShPtr &  condition)
inlinestaticprotected

◆ PointIndex()

template<typename ExecSpace , typename TData >
static std::vector< size_t > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::PointIndex ( const VolumeGather &  gather,
const std::vector< size_t > &  elmts,
const unsigned int  interleaveWidth,
const unsigned int  dstInterleaveWidth 
)
inlinestaticprotected

Definition at line 1088 of file HOutflowBndCondOpImpl.hpp.

1092 {
1093 std::vector<size_t> index;
1094 index.reserve(elmts.size() * gather.nData);
1095 // The destination elements increase, so those of one destination
1096 // group are consecutive.
1097 for (size_t first = 0; first < elmts.size();)
1098 {
1099 const size_t dstGroup = gather.dstElmt[first] / dstInterleaveWidth;
1100 size_t last = first + 1;
1101 while (last < elmts.size() &&
1102 gather.dstElmt[last] / dstInterleaveWidth == dstGroup)
1103 {
1104 ++last;
1105 }
1106 for (size_t q = 0; q < gather.nData; ++q)
1107 {
1108 for (size_t k = first; k < last; ++k)
1109 {
1110 const size_t group = elmts[k] / interleaveWidth;
1111 const size_t lane = elmts[k] % interleaveWidth;
1112 index.push_back(group * interleaveWidth * gather.nData +
1113 q * interleaveWidth + lane);
1114 }
1115 }
1116 first = last;
1117 }
1118 return index;
1119 }

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::dstElmt, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::VolumeGather::nData.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherIndicesAtInterleaveWidths().

◆ ProjectAndGatherCoeffs()

template<typename ExecSpace , typename TData >
template<typename ProjectFn >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectAndGatherCoeffs ( std::vector< LibUtilities::Field< TData, FieldState::Coeff > > &  fields,
const std::vector< size_t > &  offsets,
const size_t  compSize,
LibUtilities::MemoryRegion< TData > &  compact,
std::vector< LibUtilities::MemoryRegion< size_t > > &  coefficientSources,
std::vector< LibUtilities::MemoryRegion< TData > > &  mappedCoefficients,
std::vector< LibUtilities::MemoryRegion< size_t > > *  groupSources,
std::vector< LibUtilities::MemoryRegion< TData > > *  groupValues,
const std::vector< unsigned int > &  updateStreams,
ProjectFn &&  project 
)
inlineprotected

Definition at line 1451 of file HOutflowBndCondOpImpl.hpp.

1460 {
1461 if (compSize == 0)
1462 {
1463 return;
1464 }
1465 const unsigned int nComp = fields[0].GetNumComponents();
1466 auto compactPtr =
1467 compact.template GetPtr<MemSpace, WriteOnly>(m_opStreamID);
1468
1469 for (unsigned int n = 0; n < fields.size(); ++n)
1470 {
1471 project(n);
1472
1473 size_t regionOffset = 0;
1474 for (unsigned int blk = 0; blk < fields[n].GetBlocks().size();
1475 ++blk)
1476 {
1477 const unsigned int streamID = blk + 1;
1478 auto &block = fields[n].GetBlocks()[blk];
1479 auto src = block.template GetPtr<MemSpace, ReadOnly>(streamID);
1480 const size_t blockLength =
1481 block.GetNumElements() * block.GetNumData();
1482
1483 // On the stream that projected the block.
1484 for (unsigned int c = 0; c < nComp; ++c)
1485 {
1486 Math::copyKernel<ExecSpace>(
1487 blockLength, src + c * block.CompSize(),
1488 compactPtr + c * compSize + offsets[n] + regionOffset,
1489 streamID);
1490 }
1491 regionOffset += blockLength;
1492 }
1493 }
1494
1495 // Gather compact into the domain blocks v_Apply() and
1496 // ApplyNeumannMaps() read, each on the stream of its block. Every
1497 // gather reads entries written on any region block's stream, so the
1498 // block streams first wait on one another through m_opStreamID.
1499 JoinStreams<ExecSpace>(m_opStreamID, updateStreams);
1500 ReleaseStreams<ExecSpace>(m_opStreamID, updateStreams);
1501
1502 for (unsigned int blk = 0; blk < mappedCoefficients.size(); ++blk)
1503 {
1504 const unsigned int streamID = blk + 1;
1505
1506 MultiRegions::detail::CGBndCondGatherKernel<ExecSpace>(
1507 coefficientSources[blk].size(),
1508 coefficientSources[blk].template GetPtr<MemSpace, ReadOnly>(
1509 streamID),
1510 compactPtr,
1511 mappedCoefficients[blk].template GetPtr<MemSpace, WriteOnly>(
1512 streamID),
1513 streamID);
1514 if (groupSources)
1515 {
1516 MultiRegions::detail::CGBndCondGatherKernel<ExecSpace>(
1517 (*groupSources)[blk].size(),
1518 (*groupSources)[blk].template GetPtr<MemSpace, ReadOnly>(
1519 streamID),
1520 compactPtr,
1521 (*groupValues)[blk].template GetPtr<MemSpace, WriteOnly>(
1522 streamID),
1523 streamID);
1524 }
1525 }
1526
1527 // The next projection overwrites compact on the region block
1528 // streams, which wait on the gathers in turn.
1529 JoinStreams<ExecSpace>(m_opStreamID, updateStreams);
1530 ReleaseStreams<ExecSpace>(m_opStreamID, updateStreams);
1531 }

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_opStreamID.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectPressure(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectVelocity().

◆ ProjectPressure()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectPressure ( )
inlineprotected

Definition at line 1367 of file HOutflowBndCondOpImpl.hpp.

1368 {
1372 m_pressureCoeffSrc, m_pressureMappedCoeff, nullptr, nullptr,
1373 m_pressureUpdateStreams, [this](unsigned int n) {
1374 // The forward transform assumes a zero output, of which
1375 // it sets the vertex modes first.
1376 Math::zero<ExecSpace>(m_pressureBndCoeffs[n]);
1379 });
1380 }
void ProjectAndGatherCoeffs(std::vector< LibUtilities::Field< TData, FieldState::Coeff > > &fields, const std::vector< size_t > &offsets, const size_t compSize, LibUtilities::MemoryRegion< TData > &compact, std::vector< LibUtilities::MemoryRegion< size_t > > &coefficientSources, std::vector< LibUtilities::MemoryRegion< TData > > &mappedCoefficients, std::vector< LibUtilities::MemoryRegion< size_t > > *groupSources, std::vector< LibUtilities::MemoryRegion< TData > > *groupValues, const std::vector< unsigned int > &updateStreams, ProjectFn &&project)

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndCoeffs, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCoeffOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCoeffSrc, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCompactCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureFwdTransOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMappedCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdateStreams, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectAndGatherCoeffs().

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_UpdatePressure().

◆ ProjectVelocity()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectVelocity ( )
inlineprotected

Definition at line 1431 of file HOutflowBndCondOpImpl.hpp.

1432 {
1438 [this](unsigned int n) {
1441 });
1442 }
std::vector< LibUtilities::MemoryRegion< size_t > > m_velocityGroupSrc
std::vector< LibUtilities::MemoryRegion< size_t > > m_velocityCoeffSrc
std::vector< std::shared_ptr< MultiRegions::IProductWRTBaseOp< TData > > > m_velocityIProductOps
LibUtilities::MemoryRegion< TData > m_velocityCompactCoeff
std::vector< unsigned int > m_velocityUpdateStreams

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndCoeffs, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCoeffOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCoeffSrc, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompactCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupSrc, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupValue, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityIProductOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMappedCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityUpdateStreams, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectAndGatherCoeffs().

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyVelocity().

◆ SetRestrictedInterleaveWidth()

template<typename ExecSpace , typename TData >
static void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::SetRestrictedInterleaveWidth ( LibUtilities::Field< TData, FieldState::Phys > &  field,
const unsigned int  interleaveWidth 
)
inlinestaticprotected

Definition at line 1203 of file HOutflowBndCondOpImpl.hpp.

1206 {
1207 ASSERTL0(interleaveWidth == 1u || interleaveWidth == m_interleaveWidth,
1208 "HOutflow takes fields at interleave width 1 or at the "
1209 "interleave width of its execution space.");
1210 bool isAtWidth = true;
1211 for (auto &block : field.GetBlocks())
1212 {
1213 isAtWidth =
1214 isAtWidth && block.GetInterleaveWidth() == interleaveWidth;
1215 }
1216 if (!isAtWidth)
1217 {
1218 Math::zero<ExecSpace>(field);
1219 field.SetInterleaveWidth(interleaveWidth);
1220 }
1221 }

References ASSERTL0, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_interleaveWidth.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_UpdatePressure().

◆ TargetIndex()

template<typename ExecSpace , typename TData >
static std::vector< size_t > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::TargetIndex ( const CoeffTargets &  targets,
const unsigned int  interleaveWidth 
)
inlinestaticprotected

Definition at line 1125 of file HOutflowBndCondOpImpl.hpp.

1127 {
1128 std::vector<size_t> index(targets.elmtCoeff.size());
1129 for (size_t k = 0; k < index.size(); ++k)
1130 {
1131 const size_t elmt = targets.elmtCoeff[k] / targets.nCoeffs;
1132 const size_t coeff = targets.elmtCoeff[k] % targets.nCoeffs;
1133 const size_t group = elmt / interleaveWidth;
1134 const size_t lane = elmt % interleaveWidth;
1135 index[k] = group * interleaveWidth * targets.nCoeffs +
1136 coeff * interleaveWidth + lane;
1137 }
1138 return index;
1139 }

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::CoeffTargets::elmtCoeff, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::CoeffTargets::nCoeffs.

◆ TargetsAtInterleaveWidth()

template<typename ExecSpace , typename TData >
static LibUtilities::MemoryRegion< size_t > & Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::TargetsAtInterleaveWidth ( CoeffTargets &  targets,
const unsigned int  interleaveWidth,
const unsigned int  streamID 
)
inlinestaticprotected

Definition at line 1225 of file HOutflowBndCondOpImpl.hpp.

1228 {
1230 targets.indices, interleaveWidth, streamID,
1231 [&targets](const unsigned int blockInterleaveWidth) {
1232 return TargetIndex(targets, blockInterleaveWidth);
1233 });
1234 }
static LibUtilities::MemoryRegion< size_t > & IndexAtInterleaveWidth(InterleaveWidthIndices &indices, const unsigned int interleaveWidth, const unsigned int streamID, BuildIndexFn &&buildIndex)

References Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::IndexAtInterleaveWidth(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::CoeffTargets::indices.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyNeumannMaps(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyPressure().

◆ UpdateStreams()

template<typename ExecSpace , typename TData >
static std::vector< unsigned int > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::UpdateStreams ( const size_t  nDomainBlocks,
std::vector< LibUtilities::Field< TData, FieldState::Coeff > > &  fields 
)
inlinestaticprotected

Definition at line 849 of file HOutflowBndCondOpImpl.hpp.

852 {
853 size_t nUpdateStreams = nDomainBlocks;
854 for (auto &field : fields)
855 {
856 nUpdateStreams = std::max(nUpdateStreams, field.GetBlocks().size());
857 }
858 std::vector<unsigned int> streams;
859 for (unsigned int id = 1; id <= nUpdateStreams; ++id)
860 {
861 streams.push_back(id);
862 }
863 return streams;
864 }
int64_t id

References id.

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildPressureBoundaryData(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ValidateAndBuildVelocityBoundaryData().

◆ v_SetVelocityContext()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_SetVelocityContext ( const MultiRegions::ExpListSharedPtr &  velocityExpansionList,
const std::vector< std::string > &  velocityComponents 
)
inlineoverrideprotectedvirtual

Implements Nektar::HOutflowBndCondOp< TData >.

Definition at line 430 of file HOutflowBndCondOpImpl.hpp.

433 {
434 ASSERTL1(velocityComponents.size() >= m_coordDim,
435 "Insufficient velocity components for HOutflow.");
436 const std::vector<std::string> components(velocityComponents.begin(),
437 velocityComponents.begin() +
438 m_coordDim);
439 m_velocityExpansionList = velocityExpansionList;
440
442 BuildBoundaryElementData(components);
443 this->m_velocityAdapter =
444 std::make_shared<HOutflowVelocityAdapter<ExecSpace, TData>>(
445 velocityExpansionList, components);
446 std::dynamic_pointer_cast<HOutflowVelocityAdapter<ExecSpace, TData>>(
447 this->m_velocityAdapter)
448 ->SetOwner(this);
449 }
std::shared_ptr< MultiRegions::NeuBndCondOp< TData > > m_velocityAdapter
void BuildBoundaryElementData(const std::vector< std::string > &components)
void ValidateAndBuildVelocityBoundaryData(const std::vector< std::string > &components)

References ASSERTL1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildBoundaryElementData(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::HOutflowBndCondOp< TData >::m_velocityAdapter, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityExpansionList, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ValidateAndBuildVelocityBoundaryData().

◆ v_UpdatePressure()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_UpdatePressure ( LibUtilities::Field< TData, FieldState::Phys > &  velocity)
inlineoverrideprotectedvirtual

Implements Nektar::HOutflowBndCondOp< TData >.

Definition at line 451 of file HOutflowBndCondOpImpl.hpp.

453 {
455 "SetVelocityContext must be called before UpdatePressure.");
456 ASSERTL1(this->m_kinvis > TData(0),
457 "HOutflow requires a positive kinematic viscosity, set by "
458 "SetKinvis().");
460 {
461 m_pressureUpdated = true;
462 return;
463 }
464
465 // The fields on the boundary-adjacent elements take the interleave
466 // width of the velocity.
467 const unsigned int interleaveWidth =
468 velocity.GetBlocks()[m_volumeGathers[0].srcBlock]
469 .GetInterleaveWidth();
472 GatherVelocity(velocity);
474
475 EvaluateFb(this->m_time);
476 EvaluatePressure(velocity, this->m_kinvis, this->m_scale);
478 m_pressureUpdated = true;
479 }
TData m_scale
Scale of the velocity passed to UpdatePressure(), set by SetScale().
TData m_time
Time of the Neumann value f_b, set by SetTime().
void EvaluatePressure(LibUtilities::Field< TData, FieldState::Phys > &velocity, const TData kinvis, const TData scale)
static void SetRestrictedInterleaveWidth(LibUtilities::Field< TData, FieldState::Phys > &field, const unsigned int interleaveWidth)
void GatherVelocity(LibUtilities::Field< TData, FieldState::Phys > &velocity)

References ASSERTL1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::EvaluateFb(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::EvaluatePressure(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherVelocity(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::HOutflowBndCondOp< TData >::m_kinvis, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_physDerivOp, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdated, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedGradient, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedVelocity, Nektar::HOutflowBndCondOp< TData >::m_scale, Nektar::HOutflowBndCondOp< TData >::m_time, Nektar::HOutflowBndCondOp< TData >::m_velocityAdapter, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_volumeGathers, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ProjectPressure(), and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::SetRestrictedInterleaveWidth().

◆ ValidateAndBuildVelocityBoundaryData()

template<typename ExecSpace , typename TData >
void Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ValidateAndBuildVelocityBoundaryData ( const std::vector< std::string > &  components)
inlineprotected

Definition at line 648 of file HOutflowBndCondOpImpl.hpp.

650 {
652 this->m_expansionList->GetSession(),
653 this->m_expansionList->GetGraph());
654 const auto &bregions = bcs.GetBoundaryRegions();
655 const auto &conditions = bcs.GetBoundaryConditions();
656 const auto &velocityExp =
657 m_velocityExpansionList->GetBndCondExpansions();
658 ASSERTL1(velocityExp.size() == m_regionIds.size(),
659 "Pressure and velocity boundary region counts differ.");
660
661 std::set<unsigned int> selected(m_pressureConditionIndices.begin(),
663 std::vector<std::vector<bool>> isTypeByRegion(m_regionIds.size());
664 std::vector<size_t> numBcExpCoeffs(m_regionIds.size());
665 // Per selected region, the velocity components of its surface
666 // integral, every one.
667 std::vector<std::vector<bool>> velocityIsComp;
668
669 for (unsigned int n = 0; n < m_regionIds.size(); ++n)
670 {
671 const auto conditionIt = conditions.find(m_regionIds[n]);
672 ASSERTL0(conditionIt != conditions.end(),
673 "Unable to locate HOutflow boundary region.");
674 bool anyVelocityTag = false;
675 bool allVelocityHOutflow = true;
676 bool isTimeDependent = false;
677 std::vector<LibUtilities::EquationSharedPtr> equations;
678 std::vector<bool> componentMatches(m_coordDim, false);
679 for (unsigned int d = 0; d < m_coordDim; ++d)
680 {
681 const auto componentIt =
682 conditionIt->second->find(components[d]);
683 ASSERTL0(componentIt != conditionIt->second->end(),
684 "Unable to locate HOutflow velocity component.");
685 const bool tagged = IsHOutflow(componentIt->second);
686 const bool valid =
687 tagged && componentIt->second->GetBoundaryConditionType() ==
689 anyVelocityTag = anyVelocityTag || tagged;
690 allVelocityHOutflow = allVelocityHOutflow && valid;
691 componentMatches[d] = valid;
692 equations.push_back(componentIt->second->GetEquation());
693 const auto variables = MultiRegions::ExpressionBlockOp<TData>::
694 GetExpressionVariables(equations.back()->GetExpression());
695 isTimeDependent = isTimeDependent || variables.count("t") != 0;
696 }
697
698 const bool pressureSelected = selected.count(n) != 0;
699 ASSERTL0(!anyVelocityTag || pressureSelected,
700 "HOutflow velocity conditions require a paired "
701 "HOutflow pressure Dirichlet condition.");
702 ASSERTL0(!pressureSelected || allVelocityHOutflow,
703 "HOutflow pressure conditions require HOutflow Neumann "
704 "conditions on every velocity component.");
705 isTypeByRegion[n] = pressureSelected
706 ? componentMatches
707 : std::vector<bool>(m_coordDim, false);
708 numBcExpCoeffs[n] = velocityExp[n]->GetNcoeffs();
709 if (!pressureSelected)
710 {
711 continue;
712 }
713
714 const unsigned int selectedId = m_velocityBndExpLists.size();
715 auto bndExp = velocityExp[n];
716 bndExp->SetDataWarehouse();
717 // The pressure and velocity boundary values are computed from
718 // one another point by point. The two boundary expansions may
719 // differ in order, but must share their quadrature and phys
720 // block layout.
721 const auto &pressureBndExp = m_pressureBndExpLists[selectedId];
722 ASSERTL0(bndExp->SameQuadratureLayout(pressureBndExp),
723 "HOutflow requires the velocity and pressure boundary "
724 "expansions to share their quadrature points.");
725 m_velocityBndExpLists.push_back(bndExp);
726 velocityIsComp.push_back(componentMatches);
728 m_velocityNumBndCoeffCompSize += bndExp->GetNcoeffs();
729
730 const auto physBlocks =
731 MultiRegions::GetBlockAttributes<TData, FieldState::Phys>(
732 bndExp, MultiRegions::UnitInterleaveWidths(bndExp));
733 const auto coeffBlocks =
734 MultiRegions::GetBlockAttributes<TData, FieldState::Coeff>(
735 bndExp, MultiRegions::UnitInterleaveWidths(bndExp));
736 m_velocityBndPhys.emplace_back("HOutflow velocity boundary phys",
737 physBlocks, components, 1);
738 m_velocityBndCoeffs.emplace_back(
739 "HOutflow velocity boundary coeffs", coeffBlocks, components,
740 1);
741 m_fbPhys.emplace_back("HOutflow f_b", physBlocks, components, 1);
742 m_normals.emplace_back("HOutflow normals", physBlocks, components,
743 1);
744 m_energyMinusFb.emplace_back("HOutflow E minus f_b", physBlocks,
745 components, 1);
746 m_divergence.emplace_back("HOutflow divergence", physBlocks,
747 this->m_components, 1);
748 m_velocityBndPhys.back().template Initialize<MemSpace>(0.0);
749 m_velocityBndCoeffs.back().template Initialize<MemSpace>(0.0);
750 m_fbPhys.back().template Initialize<MemSpace>(0.0);
751 m_normals.back().template Initialize<MemSpace>(0.0);
752 m_energyMinusFb.back().template Initialize<MemSpace>(0.0);
753 m_divergence.back().template Initialize<MemSpace>(0.0);
754
756 bndExp, components, ExecSpace::name);
757 expression->SetExpressions(equations);
758 m_fbExpressionOps.push_back(expression);
759 m_fbIsTimeDependent.push_back(isTimeDependent);
760 m_velocityIProductOps.push_back(
762 bndExp, components, ExecSpace::name));
763
765 this->m_expansionList->GetBoundaryNormals(n, normals);
766 for (unsigned int blk = 0;
767 blk < m_normals.back().GetBlocks().size(); ++blk)
768 {
769 auto &normalBlock = m_normals.back().GetBlocks()[blk];
770 auto ptr =
771 normalBlock
772 .template GetPtr<NektarSpaces::HostSpace, WriteOnly>();
773 auto collection = MultiRegions::GetCollection(bndExp, blk);
774 const auto &expansions = collection.GetExpVector();
775 for (unsigned int e = 0; e < expansions.size(); ++e)
776 {
777 const auto offset =
778 bndExp->GetPhys_Offset(expansions[e]->GetElmtId());
779 for (unsigned int d = 0; d < m_coordDim; ++d)
780 {
781 for (unsigned int p = 0; p < normalBlock.GetNumData();
782 ++p)
783 {
784 ptr[d * normalBlock.CompSize() +
785 e * normalBlock.GetNumData() + p] =
786 static_cast<TData>(normals[d][offset + p]);
787 }
788 }
789 }
790 }
791 }
792
794 "HOutflow pressure and velocity region sets differ.");
797 m_velocityBndExpLists, velocityIsComp);
798 // The assembly map of a velocity component other than the one of
799 // m_velocityExpansionList is built from a ContField, collectively: all
800 // ranks enter BuildCGBndCondCoeffMaps() when any rank has an HOutflow
801 // region, even without coefficients of its own.
802 size_t hasAnyVelocityBndCoeff = m_velocityNumBndCoeffCompSize;
803 this->m_expansionList->GetSession()->GetComm()->GetRowComm()->AllReduce(
804 hasAnyVelocityBndCoeff, LibUtilities::ReduceMax);
805 if (hasAnyVelocityBndCoeff == 0)
806 {
807 return;
808 }
809
810 auto maps =
811 MultiRegions::detail::BuildCGBndCondCoeffMaps<ExecSpace, TData>(
812 m_velocityExpansionList, components, bregions, isTypeByRegion,
813 numBcExpCoeffs, m_velocityNumBndCoeffCompSize,
815 [](unsigned int, const auto &, const auto &, const auto &) {});
816 m_velocityAnySignChange = maps.anySignChange;
817 m_velocitySignChange = std::move(maps.signChange);
818 m_velocitySign = std::move(maps.uniqueSign);
819 m_velocityMappedCoeff = std::move(maps.uniqueBndCoeff);
820 m_velocityCoeffSrc = std::move(maps.uniqueBndCoeffSrc);
821 m_velocityCompOffsets = std::move(maps.compUniqueOffsets);
822 m_velocityCompCounts = std::move(maps.compUniqueCounts);
823 m_velocityGroupOffset = std::move(maps.groupOffset);
824 m_velocityGroupSrc = std::move(maps.groupSrc);
825 m_velocityGroupSign = std::move(maps.groupSign);
826 m_velocityGroupValue = std::move(maps.groupValue);
827 m_velocityCompGroupOffsets = std::move(maps.compGroupOffsets);
828 m_velocityCompGroupCounts = std::move(maps.compGroupCounts);
831 // Allocated here, on the null stream, so the region block streams
832 // that write it never race the allocation. A rank without velocity
833 // coefficients of its own never uses it.
835 {
836 m_velocityCompactCoeff.template GetPtr<MemSpace, WriteOnly>();
837 }
840
845 }
static std::set< std::string > GetExpressionVariables(const std::string &expr)
The variables an expression uses: every name in expr that is not called as a function,...
static std::shared_ptr< ExpressionOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="")
Create an Expression operator through the two-stage element-operator factory and initialise its defau...
Whole-field interface of the inner product with the basis: integrates a physical-space field against ...
Adds the surface integral of boundary fields, per component and homogeneous plane,...
std::vector< MultiRegions::ExpListSharedPtr > m_velocityBndExpLists
std::vector< double > p(NPUPPER)

References ASSERTL0, ASSERTL1, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::BuildCoeffTargets(), Nektar::MultiRegions::ExpressionOp< TData >::Create(), Nektar::SpatialDomains::eNeumann, Nektar::SpatialDomains::BoundaryConditions::GetBoundaryConditions(), Nektar::SpatialDomains::BoundaryConditions::GetBoundaryRegions(), Nektar::MultiRegions::GetCollection(), Nektar::MultiRegions::ExpressionBlockOp< TData >::GetExpressionVariables(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::IsHOutflow(), Nektar::MultiRegions::Operator< TData >::m_components, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_divergence, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_energyMinusFb, Nektar::MultiRegions::Operator< TData >::m_expansionList, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbExpressionOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbIsTimeDependent, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_normals, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndExpLists, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureConditionIndices, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_regionIds, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityAnySignChange, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndCoeffs, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndExpLists, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndPhys, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCoeffOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCoeffSrc, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompactCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompCounts, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompGroupCounts, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompGroupOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompOffsets, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityExpansionList, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupOffset, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupSign, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupSrc, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupTarget, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupValue, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityIProductOps, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMap, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMappedCoeff, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityNumBndCoeffCompSize, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySign, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySignChange, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySurfaceIntegral, Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityUpdateStreams, Nektar::LibUtilities::ReduceMax, Nektar::MultiRegions::detail::UniqueAndGroups, and Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::UpdateStreams().

Referenced by Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_SetVelocityContext().

Friends And Related Symbol Documentation

◆ HOutflowPressureAdapter< ExecSpace, TData >

template<typename ExecSpace , typename TData >
friend class HOutflowPressureAdapter< ExecSpace, TData >
friend

Definition at line 178 of file HOutflowBndCondOpImpl.hpp.

◆ HOutflowVelocityAdapter< ExecSpace, TData >

template<typename ExecSpace , typename TData >
friend class HOutflowVelocityAdapter< ExecSpace, TData >
friend

Definition at line 178 of file HOutflowBndCondOpImpl.hpp.

Member Data Documentation

◆ className

template<typename ExecSpace , typename TData >
std::string Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::className
static

Definition at line 235 of file HOutflowBndCondOpImpl.hpp.

◆ m_alpha1

template<typename ExecSpace , typename TData >
TData Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_alpha1 = 0
protected

◆ m_alpha2

template<typename ExecSpace , typename TData >
TData Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_alpha2 = 0
protected

◆ m_bndGradient

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndGradient
protected

◆ m_bndGradientExtractOps

template<typename ExecSpace , typename TData >
std::vector<std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond<ExecSpace, TData> > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndGradientExtractOps
protected

◆ m_bndPressureExtractOps

template<typename ExecSpace , typename TData >
std::vector<std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond<ExecSpace, TData> > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndPressureExtractOps
protected

◆ m_bndVelocity

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndVelocity
protected

◆ m_bndVelocityExtractOps

template<typename ExecSpace , typename TData >
std::vector<std::shared_ptr< MultiRegions::detail::PhysTraceExtractBndCond<ExecSpace, TData> > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_bndVelocityExtractOps
protected

◆ m_coordDim

template<typename ExecSpace , typename TData >
unsigned int Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_coordDim = 0
protected

◆ m_delta

template<typename ExecSpace , typename TData >
TData Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_delta = TData(1.0 / 20.0)
protected

◆ m_divergence

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_divergence
protected

◆ m_energyMinusFb

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_energyMinusFb
protected

◆ m_fbExpressionOps

template<typename ExecSpace , typename TData >
std::vector<std::shared_ptr<MultiRegions::ExpressionOp<TData> > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbExpressionOps
protected

◆ m_fbIsTimeDependent

template<typename ExecSpace , typename TData >
std::vector<bool> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbIsTimeDependent
protected

◆ m_fbPhys

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_fbPhys
protected

◆ m_interleaveWidth

template<typename ExecSpace , typename TData >
constexpr unsigned int Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_interleaveWidth
staticconstexprprotected

◆ m_isFbEvaluated

template<typename ExecSpace , typename TData >
bool Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_isFbEvaluated = false
protected

◆ m_normals

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_normals
protected

◆ m_opStreamID

template<typename ExecSpace , typename TData >
constexpr unsigned int Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_opStreamID = 1
staticconstexprprotected

◆ m_physDerivOp

template<typename ExecSpace , typename TData >
std::shared_ptr<MultiRegions::PhysDerivOp<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_physDerivOp
protected

◆ m_pressureBndCoeffs

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Coeff> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndCoeffs
protected

◆ m_pressureBndExpLists

template<typename ExecSpace , typename TData >
std::vector<MultiRegions::ExpListSharedPtr> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndExpLists
protected

◆ m_pressureBndPhys

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureBndPhys
protected

◆ m_pressureCoeffOffsets

template<typename ExecSpace , typename TData >
std::vector<size_t> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCoeffOffsets
protected

◆ m_pressureCoeffSrc

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCoeffSrc
protected

◆ m_pressureCompactCoeff

template<typename ExecSpace , typename TData >
LibUtilities::MemoryRegion<TData> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCompactCoeff
protected

◆ m_pressureConditionIndices

template<typename ExecSpace , typename TData >
std::vector<unsigned int> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureConditionIndices
protected

◆ m_pressureCounts

template<typename ExecSpace , typename TData >
std::vector<size_t> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureCounts
protected

◆ m_pressureFwdTransOps

template<typename ExecSpace , typename TData >
std::vector<std::shared_ptr<MultiRegions::FwdTransBCOp<TData> > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureFwdTransOps
protected

◆ m_pressureMap

template<typename ExecSpace , typename TData >
std::vector<CoeffTargets> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMap
protected

◆ m_pressureMappedCoeff

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureMappedCoeff
protected

◆ m_pressureNumBndCoeffCompSize

template<typename ExecSpace , typename TData >
size_t Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureNumBndCoeffCompSize = 0
protected

◆ m_pressureOffsets

template<typename ExecSpace , typename TData >
std::vector<size_t> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureOffsets
protected

◆ m_pressureSign

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureSign
protected

◆ m_pressureSignChange

template<typename ExecSpace , typename TData >
bool Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureSignChange = false
protected

◆ m_pressureUpdated

template<typename ExecSpace , typename TData >
bool Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdated = false
protected

◆ m_pressureUpdateStreams

template<typename ExecSpace , typename TData >
std::vector<unsigned int> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_pressureUpdateStreams
protected

◆ m_regionIds

template<typename ExecSpace , typename TData >
std::vector<unsigned int> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_regionIds
protected

◆ m_restrictedGradient

template<typename ExecSpace , typename TData >
LibUtilities::Field<TData, FieldState::Phys> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedGradient
protected

◆ m_restrictedVelocity

template<typename ExecSpace , typename TData >
LibUtilities::Field<TData, FieldState::Phys> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedVelocity
protected

◆ m_restrictedVelocityExpansionList

template<typename ExecSpace , typename TData >
MultiRegions::ExpListSharedPtr Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_restrictedVelocityExpansionList
protected

◆ m_theta

template<typename ExecSpace , typename TData >
TData Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_theta = 1
protected

◆ m_U0

template<typename ExecSpace , typename TData >
TData Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_U0 = 1
protected

◆ m_velocityAnySignChange

template<typename ExecSpace , typename TData >
bool Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityAnySignChange = false
protected

◆ m_velocityBndCoeffs

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Coeff> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndCoeffs
protected

◆ m_velocityBndExpLists

template<typename ExecSpace , typename TData >
std::vector<MultiRegions::ExpListSharedPtr> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndExpLists
protected

◆ m_velocityBndPhys

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::Field<TData, FieldState::Phys> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityBndPhys
protected

◆ m_velocityCoeffOffsets

template<typename ExecSpace , typename TData >
std::vector<size_t> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCoeffOffsets
protected

◆ m_velocityCoeffSrc

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCoeffSrc
protected

◆ m_velocityCompactCoeff

template<typename ExecSpace , typename TData >
LibUtilities::MemoryRegion<TData> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompactCoeff
protected

◆ m_velocityCompCounts

template<typename ExecSpace , typename TData >
std::vector<std::vector<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompCounts
protected

◆ m_velocityCompGroupCounts

template<typename ExecSpace , typename TData >
std::vector<std::vector<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompGroupCounts
protected

◆ m_velocityCompGroupOffsets

template<typename ExecSpace , typename TData >
std::vector<std::vector<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompGroupOffsets
protected

◆ m_velocityCompOffsets

template<typename ExecSpace , typename TData >
std::vector<std::vector<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityCompOffsets
protected

◆ m_velocityExpansionList

template<typename ExecSpace , typename TData >
MultiRegions::ExpListSharedPtr Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityExpansionList
protected

◆ m_velocityGroupOffset

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupOffset
protected

◆ m_velocityGroupSign

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupSign
protected

◆ m_velocityGroupSrc

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<size_t> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupSrc
protected

◆ m_velocityGroupTarget

template<typename ExecSpace , typename TData >
std::vector<CoeffTargets> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupTarget
protected

◆ m_velocityGroupValue

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityGroupValue
protected

◆ m_velocityIProductOps

template<typename ExecSpace , typename TData >
std::vector<std::shared_ptr<MultiRegions::IProductWRTBaseOp<TData> > > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityIProductOps
protected

◆ m_velocityMap

template<typename ExecSpace , typename TData >
std::vector<CoeffTargets> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMap
protected

◆ m_velocityMappedCoeff

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityMappedCoeff
protected

◆ m_velocityNumBndCoeffCompSize

template<typename ExecSpace , typename TData >
size_t Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityNumBndCoeffCompSize = 0
protected

◆ m_velocitySign

template<typename ExecSpace , typename TData >
std::vector<LibUtilities::MemoryRegion<TData> > Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySign
protected

◆ m_velocitySignChange

template<typename ExecSpace , typename TData >
std::vector<bool> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySignChange
protected

◆ m_velocitySurfaceIntegral

template<typename ExecSpace , typename TData >
MultiRegions::detail::CGBndCondSurfaceIntegral<ExecSpace, TData> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocitySurfaceIntegral
protected

◆ m_velocityUpdateStreams

template<typename ExecSpace , typename TData >
std::vector<unsigned int> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_velocityUpdateStreams
protected

◆ m_volumeGathers

template<typename ExecSpace , typename TData >
std::vector<VolumeGather> Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::m_volumeGathers
protected