41 namespace MultiRegions
56 for(
int n = 0; n <
m_lines.size(); ++n)
75 const bool dealiasing,
77 const std::string &variable,
90 for(i = 0; i < nel; ++i)
98 for(n = 1; n < nylines*nzlines; ++n)
102 for(i = 0; i < nel; ++i)
104 (*m_exp).push_back((*
m_exp)[i]);
120 int ncoeffs =
m_lines[0]->GetNcoeffs();
122 for(
int n = 0; n <
m_lines.size(); ++n)
124 m_lines[n]->ImposeDirichletConditions(tmp = outarray +
135 for(
int n = 0; n <
m_lines.size(); ++n)
137 m_lines[n]->LocalToGlobal(useComm);
147 for(
int n = 0; n <
m_lines.size(); ++n)
161 const bool PhysSpaceForcing)
188 for(n = 0; n < nhom_modes_z; ++n)
190 for(m = 0; m < nhom_modes_y; ++m, l++)
194 beta = beta_y*beta_y + beta_z*beta_z;
195 new_factors = factors;
198 wfce = (PhysSpaceForcing)? fce+cnt:fce+cnt1;
200 e_out = outarray + cnt1,
201 new_factors, varcoeff, varfactors,
205 cnt +=
m_lines[l]->GetTotPoints();
206 cnt1 +=
m_lines[l]->GetNcoeffs();
216 for(
int n = 0; n <
m_lines.size(); ++n)
218 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.
ContField3DHomogeneous2D()
virtual void v_GlobalToLocal(void)
Template method virtual forwarded for GlobalToLocal()
virtual void 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)
Solves the three-dimensional Helmholtz equation, subject to the boundary conditions specified.
virtual void v_ImposeDirichletConditions(Array< OneD, NekDouble > &outarray)
virtual void v_ClearGlobalLinSysManager(void)
virtual void v_LocalToGlobal(bool useComm)
Template method virtual forwarded for LocalToGlobal()
void SetupBoundaryConditions(const LibUtilities::BasisKey &HomoBasis_y, const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y, const NekDouble lhom_z, SpatialDomains::BoundaryConditions &bcs)
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.
void HomogeneousFwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool Shuff=true, bool UnShuff=true)
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.
const std::shared_ptr< LocalRegions::ExpansionVector > GetExp() const
This function returns the vector of elements in the expansion.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
std::shared_ptr< ContField > ContFieldSharedPtr
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
std::map< ConstFactorType, NekDouble > ConstFactorMap
The above copyright notice and this permission notice shall be included.