55 std::dynamic_pointer_cast<ContField>(In.
m_lines[0]);
57 for (
int n = 0; n <
m_lines.size(); ++n)
73 const NekDouble lhom_z,
const bool useFFT,
const bool dealiasing,
77 lhom_z, useFFT, dealiasing, ImpType)
84 pSession, graph1D, variable,
false,
false, ImpType);
89 for (i = 0; i < nel; ++i)
97 for (n = 1; n < nylines * nzlines; ++n)
100 pSession, graph1D, variable,
false,
false, ImpType);
102 for (i = 0; i < nel; ++i)
104 (*m_exp).push_back((*
m_exp)[i]);
121 int ncoeffs =
m_lines[0]->GetNcoeffs();
123 for (
int n = 0; n <
m_lines.size(); ++n)
125 m_lines[n]->ImposeDirichletConditions(tmp = outarray + n * ncoeffs);
134 for (
int n = 0; n <
m_lines.size(); ++n)
136 m_lines[n]->LocalToGlobal(useComm);
145 for (
int n = 0; n <
m_lines.size(); ++n)
186 for (n = 0; n < nhom_modes_z; ++n)
188 for (m = 0; m < nhom_modes_y; ++m, l++)
190 beta_z = 2 * M_PI * (n / 2) /
m_lhom_z;
191 beta_y = 2 * M_PI * (m / 2) /
m_lhom_y;
192 beta = beta_y * beta_y + beta_z * beta_z;
196 wfce = (PhysSpaceForcing) ? fce + cnt : fce + cnt1;
197 auto gkey =
m_lines[l]->HelmSolve(wfce, e_out = outarray + cnt1,
198 new_factors, varcoeff, varfactors,
199 dirForcing, PhysSpaceForcing);
201 cnt +=
m_lines[l]->GetTotPoints();
202 cnt1 +=
m_lines[l]->GetNcoeffs();
213 for (
int n = 0; n <
m_lines.size(); ++n)
215 m_lines[n]->ClearGlobalLinSysManager();
Describes the specification for a Basis.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
virtual ~ContField3DHomogeneous2D()
Destructor.
virtual void v_ClearGlobalLinSysManager(void) override
ContField3DHomogeneous2D()
virtual void v_GlobalToLocal(void) override
Template method virtual forwarded for GlobalToLocal()
virtual void v_LocalToGlobal(bool useComm) override
Template method virtual forwarded for LocalToGlobal()
virtual void v_ImposeDirichletConditions(Array< OneD, NekDouble > &outarray) override
virtual 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
Solves the three-dimensional Helmholtz equation, subject to the boundary conditions specified.
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)
void SetCoeffPhys(void)
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
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.
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.
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 .
const std::shared_ptr< LocalRegions::ExpansionVector > GetExp() const
This function returns the vector of elements in the expansion.
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.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
@ beta
Gauss Radau pinned at x=-1,.
static GlobalLinSysKey NullGlobalLinSysKey(StdRegions::eNoMatrixType)
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
std::shared_ptr< ContField > ContFieldSharedPtr
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
std::map< ConstFactorType, NekDouble > ConstFactorMap
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
StdRegions::ConstFactorMap factors
The above copyright notice and this permission notice shall be included.