42 namespace MultiRegions
57 for(
int n = 0; n <
m_lines.num_elements(); ++n)
76 const bool dealiasing,
78 const std::string &variable,
91 for(i = 0; i < nel; ++i)
99 for(n = 1; n < nylines*nzlines; ++n)
103 for(i = 0; i < nel; ++i)
105 (*m_exp).push_back((*
m_exp)[i]);
124 int ncoeffs =
m_lines[0]->GetNcoeffs();
126 for(
int n = 0; n <
m_lines.num_elements(); ++n)
128 m_lines[n]->ImposeDirichletConditions(tmp = outarray +
139 for(
int n = 0; n <
m_lines.num_elements(); ++n)
141 m_lines[n]->LocalToGlobal(useComm);
151 for(
int n = 0; n <
m_lines.num_elements(); ++n)
165 const bool PhysSpaceForcing)
192 for(n = 0; n < nhom_modes_z; ++n)
194 for(m = 0; m < nhom_modes_y; ++m, l++)
198 beta = beta_y*beta_y + beta_z*beta_z;
199 new_factors = factors;
202 wfce = (PhysSpaceForcing)? fce+cnt:fce+cnt1;
204 e_out = outarray + cnt1,
205 flags, new_factors, varcoeff, dirForcing,
208 cnt +=
m_lines[l]->GetTotPoints();
209 cnt1 +=
m_lines[l]->GetNcoeffs();
219 for(
int n = 0; n <
m_lines.num_elements(); ++n)
221 m_lines[n]->ClearGlobalLinSysManager();
void HomogeneousFwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, CoeffState coeffstate=eLocal, bool Shuff=true, bool UnShuff=true)
boost::shared_ptr< ContField1D > ContField1DSharedPtr
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
NekOptimize::GlobalOptParamSharedPtr m_globalOptParam
const boost::shared_ptr< LocalRegions::ExpansionVector > GetExp() const
This function returns the vector of elements in the expansion.
void SetupBoundaryConditions(const LibUtilities::BasisKey &HomoBasis_y, const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y, const NekDouble lhom_z, SpatialDomains::BoundaryConditions &bcs)
std::map< ConstFactorType, NekDouble > ConstFactorMap
NekDouble m_lhom_z
Width of homogeneous direction z.
int GetExpSize(void)
This function returns the number of elements in the expansion.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
Array< OneD, ExpListSharedPtr > m_lines
Vector of ExpList, will be filled with ExpList1D.
virtual void v_GlobalToLocal(void)
Template method virtual forwarded for GlobalToLocal()
bool isSet(const FlagType &key) const
LibUtilities::BasisSharedPtr m_homogeneousBasis_z
Base expansion in z direction.
boost::shared_ptr< LocalRegions::ExpansionVector > m_exp
The list of local expansions.
Abstraction of a global continuous one-dimensional spectral/hp element expansion which approximates t...
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
ContField3DHomogeneous2D()
void SetCoeffPhys(void)
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
NekDouble m_lhom_y
Width of homogeneous direction y.
LibUtilities::BasisSharedPtr m_homogeneousBasis_y
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
virtual void v_HelmSolve(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const FlagList &flags, const StdRegions::ConstFactorMap &factors, const StdRegions::VarCoeffMap &varcoeff, 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 ~ContField3DHomogeneous2D()
Destructor.
virtual void v_ClearGlobalLinSysManager(void)
virtual void v_LocalToGlobal(bool useComm)
Template method virtual forwarded for LocalToGlobal()
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr
Describes the specification for a Basis.