Nektar++
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Nektar::TimeDependentInflow Class Reference

#include <TimeDependentInflow.h>

Inheritance diagram for Nektar::TimeDependentInflow:
[legend]

Public Member Functions

 TimeDependentInflow (Array< OneD, MultiRegions::ExpListSharedPtr > pVessel, const LibUtilities::SessionReaderSharedPtr pSession, PulseWavePressureAreaSharedPtr pressureArea)
 
 ~TimeDependentInflow () override
 
- Public Member Functions inherited from Nektar::PulseWaveBoundary
 PulseWaveBoundary (Array< OneD, MultiRegions::ExpListSharedPtr > &pVessel, const LibUtilities::SessionReaderSharedPtr &pSession, PulseWavePressureAreaSharedPtr &pressureArea)
 
virtual ~PulseWaveBoundary ()
 
void DoBoundary (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &A_0, Array< OneD, Array< OneD, NekDouble > > &beta, Array< OneD, Array< OneD, NekDouble > > &alpha, const NekDouble time, int omega, int offset, int n)
 

Static Public Member Functions

static PulseWaveBoundarySharedPtr create (Array< OneD, MultiRegions::ExpListSharedPtr > &pVessel, const LibUtilities::SessionReaderSharedPtr &pSession, PulseWavePressureAreaSharedPtr &pressureArea)
 

Static Public Attributes

static std::string className
 Name of class. More...
 

Protected Member Functions

void v_DoBoundary (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &A_0, Array< OneD, Array< OneD, NekDouble > > &beta, Array< OneD, Array< OneD, NekDouble > > &alpha, const NekDouble time, int omega, int offset, int n) override
 
virtual void v_DoBoundary (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &A_0, Array< OneD, Array< OneD, NekDouble > > &beta, Array< OneD, Array< OneD, NekDouble > > &alpha, const NekDouble time, int omega, int offset, int n)=0
 

Additional Inherited Members

- Protected Attributes inherited from Nektar::PulseWaveBoundary
Array< OneD, MultiRegions::ExpListSharedPtrm_vessels
 
LibUtilities::SessionReaderSharedPtr m_session
 
PulseWavePressureAreaSharedPtr m_pressureArea
 
NekDouble m_pext
 
NekDouble m_pout
 
NekDouble m_rho
 

Detailed Description

Definition at line 52 of file TimeDependentInflow.h.

Constructor & Destructor Documentation

◆ TimeDependentInflow()

Nektar::TimeDependentInflow::TimeDependentInflow ( Array< OneD, MultiRegions::ExpListSharedPtr pVessel,
const LibUtilities::SessionReaderSharedPtr  pSession,
PulseWavePressureAreaSharedPtr  pressureArea 
)

Definition at line 48 of file TimeDependentInflow.cpp.

52 : PulseWaveBoundary(pVessel, pSession, pressureArea)
53{
54}
PulseWaveBoundary(Array< OneD, MultiRegions::ExpListSharedPtr > &pVessel, const LibUtilities::SessionReaderSharedPtr &pSession, PulseWavePressureAreaSharedPtr &pressureArea)

◆ ~TimeDependentInflow()

Nektar::TimeDependentInflow::~TimeDependentInflow ( )
override

Definition at line 56 of file TimeDependentInflow.cpp.

57{
58}

Member Function Documentation

◆ create()

static PulseWaveBoundarySharedPtr Nektar::TimeDependentInflow::create ( Array< OneD, MultiRegions::ExpListSharedPtr > &  pVessel,
const LibUtilities::SessionReaderSharedPtr pSession,
PulseWavePressureAreaSharedPtr pressureArea 
)
inlinestatic

Definition at line 56 of file TimeDependentInflow.h.

60 {
62 pVessel, pSession, pressureArea);
63 }
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr().

◆ v_DoBoundary()

void Nektar::TimeDependentInflow::v_DoBoundary ( const Array< OneD, const Array< OneD, NekDouble > > &  inarray,
Array< OneD, Array< OneD, NekDouble > > &  A_0,
Array< OneD, Array< OneD, NekDouble > > &  beta,
Array< OneD, Array< OneD, NekDouble > > &  alpha,
const NekDouble  time,
int  omega,
int  offset,
int  n 
)
overrideprotectedvirtual

Implements Nektar::PulseWaveBoundary.

Definition at line 60 of file TimeDependentInflow.cpp.

67{
68 Array<OneD, MultiRegions::ExpListSharedPtr> vessel(2);
69
70 // Pointers to the domains
71 vessel[0] = m_vessels[2 * omega];
72 vessel[1] = m_vessels[2 * omega + 1];
73
74 /* Evaluate the boundary conditions. Note that this does not assign new
75 variables in the virtual region, so it only prescribes the inflow
76 characteristic. */
77 for (int i = 0; i < 2; ++i)
78 {
79 vessel[i]->EvaluateBoundaryConditions(time);
80 }
81}
Array< OneD, MultiRegions::ExpListSharedPtr > m_vessels

References Nektar::PulseWaveBoundary::m_vessels.

Member Data Documentation

◆ className

std::string Nektar::TimeDependentInflow::className
static
Initial value:
=
"TimeDependent", TimeDependentInflow::create,
"TimeDependent inflow boundary condition")
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
static PulseWaveBoundarySharedPtr create(Array< OneD, MultiRegions::ExpListSharedPtr > &pVessel, const LibUtilities::SessionReaderSharedPtr &pSession, PulseWavePressureAreaSharedPtr &pressureArea)
BoundaryFactory & GetBoundaryFactory()

Name of class.

Definition at line 66 of file TimeDependentInflow.h.