41 namespace MultiRegions
56 std::dynamic_pointer_cast<ContField>(In.
m_planes[0]);
58 for (
int n = 0; n <
m_planes.size(); ++n)
70 const std::string &variable)
74 std::dynamic_pointer_cast<ContField>(In.
m_planes[0]);
77 *zero_plane_old, graph2D, variable);
79 for (
int n = 0; n <
m_planes.size(); ++n)
82 *zero_plane, graph2D, variable);
87 if (variable.compare(
"DefaultVar") != 0)
102 const bool useFFT,
const bool dealiasing,
104 const std::string &variable,
const bool CheckIfSingularSystem,
118 pSession, graph2D, variable,
false, CheckIfSingularSystem, ImpType);
121 pSession, graph2D, variable,
false,
false, ImpType);
125 for (n = 0; n <
m_planes.size(); ++n)
132 *plane_zero, graph2D, variable,
false, CheckIfSingularSystem);
141 *plane_two, graph2D, variable,
false,
false);
146 for (i = 0; i < nel; ++i)
157 if (variable.compare(
"DefaultVar") != 0)
167 int ncoeffs =
m_planes[0]->GetNcoeffs();
169 for (
int n = 0; n <
m_planes.size(); ++n)
171 m_planes[n]->ImposeDirichletConditions(tmp = outarray + n * ncoeffs);
177 for (
int n = 0; n <
m_planes.size(); ++n)
179 m_planes[n]->FillBndCondFromField();
185 for (
int n = 0; n <
m_planes.size(); ++n)
187 m_planes[n]->FillBndCondFromField(nreg);
196 for (
int n = 0; n <
m_planes.size(); ++n)
198 m_planes[n]->LocalToGlobal(useComm);
207 for (
int n = 0; n <
m_planes.size(); ++n)
221 for (
int n = 0; n <
m_planes.size(); ++n)
223 m_planes[n]->SmoothField(tmp = field + cnt);
269 std::dynamic_pointer_cast<ContField>(
m_planes[0]);
270 for (n = 1; n <
m_planes.size(); ++n)
272 std::dynamic_pointer_cast<ContField>(
m_planes[n])
273 ->SetGJPForcing(zero_plane->GetGJPForcing());
277 for (n = 0; n <
m_planes.size(); ++n)
283 new_factors = factors;
288 wfce = (PhysSpaceForcing) ? fce + cnt : fce + cnt1;
289 m_planes[n]->HelmSolve(wfce, e_out = outarray + cnt1, new_factors,
290 varcoeff, varfactors, dirForcing,
304 for (
int n = 0; n <
m_planes.size(); ++n)
306 m_planes[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 void v_ImposeDirichletConditions(Array< OneD, NekDouble > &outarray)
virtual void v_GlobalToLocal(void)
Template method virtual forwarded for GlobalToLocal()
ContField3DHomogeneous1D()
virtual void v_FillBndCondFromField()
virtual void v_ClearGlobalLinSysManager(void)
virtual void v_LocalToGlobal(bool useComm)
Template method virtual forwarded for LocalToGlobal()
virtual void v_SmoothField(Array< OneD, NekDouble > &field)
virtual ~ContField3DHomogeneous1D()
Destructor.
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.
void SetupBoundaryConditions(const LibUtilities::BasisKey &HomoBasis, const NekDouble lhom, 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...
NekDouble m_lhom
Width of homogeneous direction.
LibUtilities::TranspositionSharedPtr m_transposition
Array< OneD, ExpListSharedPtr > m_planes
NekDouble GetSpecVanVisc(const int k)
LibUtilities::BasisSharedPtr m_homogeneousBasis
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
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.
SpatialDomains::MeshGraphSharedPtr m_graph
Mesh associated with this expansion list.
LibUtilities::SessionReaderSharedPtr m_session
Session.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
@ beta
Gauss Radau pinned at x=-1,.
@ eFourierHalfModeIm
Fourier Modified expansions with just the imaginary part of the first mode .
@ eFourierHalfModeRe
Fourier Modified expansions with just the real part of the first mode .
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.