53    const NekDouble lhom_z, 
const bool useFFT, 
const bool dealiasing,
 
   56                             useFFT, dealiasing, ImpType),
 
   57      m_bndCondExpansions(), m_bndCondBndWeight(), m_bndConditions()
 
   64      m_bndCondExpansions(In.m_bndCondExpansions),
 
   65      m_bndCondBndWeight(In.m_bndCondBndWeight),
 
   66      m_bndConditions(In.m_bndConditions)
 
   68    if (DeclareLinesSetCoeffPhys)
 
   71            std::dynamic_pointer_cast<DisContField>(In.
m_lines[0]);
 
   73        for (
int n = 0; n < 
m_lines.size(); ++n)
 
   87    const NekDouble lhom_z, 
const bool useFFT, 
const bool dealiasing,
 
   91                             useFFT, dealiasing, ImpType),
 
   92      m_bndCondExpansions(), m_bndCondBndWeight(), m_bndConditions()
 
  100        pSession, graph1D, variable, ImpType);
 
  103    nel   = 
m_lines[0]->GetExpSize();
 
  105    for (i = 0; i < nel; ++i)
 
  113    for (n = 1; n < nylines * nzlines; ++n)
 
  116            pSession, graph1D, variable, ImpType);
 
  117        for (i = 0; i < nel; ++i)
 
  119            (*m_exp).push_back((*
m_exp)[i]);
 
  140    const std::string variable)
 
  145    size_t nlines = 
m_lines.size();
 
  150    size_t nbnd = bregions.size();
 
  159    for (
int i = 0; i < nbnd; ++i)
 
  161        for (
int n = 0; n < nlines; ++n)
 
  163            LinesBndCondExp[n] = 
m_lines[n]->UpdateBndCondExpansion(i);
 
  169                false, LinesBndCondExp);
 
  206    for (n = 0; n < nhom_modes_z; ++n)
 
  208        for (m = 0; m < nhom_modes_y; ++m)
 
  210            beta_z      = 2 * M_PI * (n / 2) / 
m_lhom_z;
 
  211            beta_y      = 2 * M_PI * (m / 2) / 
m_lhom_y;
 
  214                beta_y * beta_y + beta_z * beta_z;
 
  216            wfce = (PhysSpaceForcing) ? fce + cnt : fce + cnt1;
 
  217            m_lines[n]->HelmSolve(wfce, e_out = outarray + cnt1, new_factors,
 
  218                                  varcoeff, varfactors, dirForcing,
 
  221            cnt += 
m_lines[n]->GetTotPoints();
 
  222            cnt1 += 
m_lines[n]->GetNcoeffs();
 
  229    int i, std::shared_ptr<ExpList> &result, 
const bool DeclareCoeffPhysArrays)
 
  233    std::vector<unsigned int> eIDs;
 
  238    for (cnt = n = 0; n < i; ++n)
 
  246        eIDs.push_back(ElmtID[cnt + n]);
 
  254    if (DeclareCoeffPhysArrays)
 
  256        int nq, offsetOld, offsetNew;
 
  258        for (n = 0; n < result->GetExpSize(); ++n)
 
  260            nq        = 
GetExp(ElmtID[cnt + n])->GetTotPoints();
 
  262            offsetNew = result->GetPhys_Offset(n);
 
  264                         tmp2 = result->UpdatePhys() + offsetNew, 1);
 
  266            nq        = 
GetExp(ElmtID[cnt + n])->GetNcoeffs();
 
  268            offsetNew = result->GetCoeff_Offset(n);
 
  270                         tmp2 = result->UpdateCoeffs() + offsetNew, 1);
 
  286        m_lines[0]->GetBoundaryToElmtMap(ElmtID_tmp, EdgeID_tmp);
 
  287        int nel_per_lines = 
m_lines[0]->GetExpSize();
 
  290        int MapSize = ElmtID_tmp.size();
 
  301                    m_lines[0]->GetBndCondExpansions()[n]->GetExpSize();
 
  302                for (i = 0; i < lineExpSize; ++i, ++cntLine)
 
  304                    for (j = 0; j < nlines; j++)
 
  307                            ElmtID_tmp[cntLine] + j * nel_per_lines;
 
  324    return std::map<int, RobinBCInfoSharedPtr>();
 
  328    const NekDouble time, 
const std::string varName,
 
  336    for (n = 0; n < 
m_nz; ++n)
 
  338        for (m = 0; m < 
m_ny; ++m)
 
  341                time, varName, 0.5 * 
m_lhom_y * (1.0 + y[m]),
 
Describes the specification for a Basis.
 
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
 
void v_GetBndElmtExpansion(int i, std::shared_ptr< ExpList > &result, const bool DeclareCoeffPhysArrays) override
 
void SetupBoundaryConditions(const LibUtilities::BasisKey &HomoBasis_y, const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y, const NekDouble lhom_z, SpatialDomains::BoundaryConditions &bcs, const std::string variable)
 
Array< OneD, int > m_BCtoEdgMap
 
void v_GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &EdgeID) override
 
const Array< OneD, const std::shared_ptr< ExpList > > & v_GetBndCondExpansions(void) override
 
Array< OneD, int > m_BCtoElmMap
Storage space for the boundary to element and boundary to trace map. This member variable is really a...
 
~DisContField3DHomogeneous2D() override
Destructor.
 
void v_SetBndCondBwdWeight(const int index, const NekDouble value) override
 
Array< OneD, SpatialDomains::BoundaryConditionShPtr > & v_UpdateBndConditions() override
 
void v_EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble x2_in=NekConstants::kNekUnsetDouble, const NekDouble x3_in=NekConstants::kNekUnsetDouble) override
 
std::map< int, RobinBCInfoSharedPtr > v_GetRobinBCInfo() override
 
GlobalLinSysKey v_HelmSolve(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdRegions::ConstFactorMap &factors, const StdRegions::VarCoeffMap &varcoeff, const MultiRegions::VarFactorsMap &varfactors, const Array< OneD, const NekDouble > &dirForcing, const bool PhysSpaceForcing) override
 
std::shared_ptr< ExpList > & v_UpdateBndCondExpansion(int i) override
 
DisContField3DHomogeneous2D()
 
const Array< OneD, const SpatialDomains::BoundaryConditionShPtr > & v_GetBndConditions() override
 
Array< OneD, NekDouble > m_bndCondBndWeight
 
Array< OneD, MultiRegions::ExpListSharedPtr > m_bndCondExpansions
 
Array< OneD, SpatialDomains::BoundaryConditionShPtr > m_bndConditions
 
Abstraction of a one-dimensional multi-elemental expansion which is merely a collection of local expa...
 
void SetCoeffPhys(void)
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
 
int m_nz
Number of modes = number of poitns in z direction.
 
LibUtilities::BasisSharedPtr m_homogeneousBasis_y
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
 
NekDouble m_lhom_z
Width of homogeneous direction z.
 
int m_ny
Number of modes = number of poitns in y direction.
 
bool m_useFFT
FFT variables.
 
Array< OneD, ExpListSharedPtr > m_lines
Vector of ExpList, will be filled with ExpList1D.
 
LibUtilities::BasisSharedPtr m_homogeneousBasis_z
Base expansion in z direction.
 
NekDouble m_lhom_y
Width of homogeneous direction y.
 
Array< OneD, NekDouble > & UpdateCoeffs()
This function returns (a reference to) the array  (implemented as m_coeffs) containing all local expa...
 
int GetNcoeffs(void) const
Returns the total number of local degrees of freedom .
 
void GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &EdgeID)
 
const Array< OneD, const NekDouble > & GetCoeffs() const
This function returns (a reference to) the array  (implemented as m_coeffs) containing all local expa...
 
const Array< OneD, const NekDouble > & GetPhys() const
This function returns (a reference to) the array  (implemented as m_phys) containing the function  ev...
 
int GetCoeff_Offset(int n) const
Get the start offset position for a local contiguous list of coeffs correspoinding to element n.
 
int GetExpSize(void)
This function returns the number of elements in the expansion.
 
std::shared_ptr< LocalRegions::ExpansionVector > m_exp
The list of local expansions.
 
int m_ncoeffs
The total number of local degrees of freedom. m_ncoeffs .
 
void EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble=NekConstants::kNekUnsetDouble, const NekDouble=NekConstants::kNekUnsetDouble)
 
const std::shared_ptr< LocalRegions::ExpansionVector > GetExp() const
This function returns the vector of elements in the expansion.
 
LibUtilities::SessionReaderSharedPtr m_session
Session.
 
bool GetWaveSpace(void) const
This function returns the third direction expansion condition, which can be in wave space (coefficien...
 
int GetPhys_Offset(int n) const
Get the start offset position for a local contiguous list of quadrature points in a full array corres...
 
void HomogeneousFwdTrans(const int npts, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool Shuff=true, bool UnShuff=true)
 
Describe a linear system.
 
const BoundaryRegionCollection & GetBoundaryRegions(void) const
 
std::shared_ptr< SessionReader > SessionReaderSharedPtr
 
std::shared_ptr< DisContField > DisContFieldSharedPtr
 
static GlobalLinSysKey NullGlobalLinSysKey(StdRegions::eNoMatrixType)
 
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
 
std::map< int, BoundaryRegionShPtr > BoundaryRegionCollection
 
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
 
std::map< ConstFactorType, NekDouble > ConstFactorMap
 
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
 
std::vector< double > z(NPUPPER)
 
StdRegions::ConstFactorMap factors
 
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)