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)
 
virtual ~TimeDependentInflow ()
 
- 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

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)
 
- Protected Member Functions inherited from Nektar::PulseWaveBoundary
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 ( )
virtual

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 57 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 
)
protectedvirtual

Definition at line 60 of file TimeDependentInflow.cpp.

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