Nektar++
ContField3DHomogeneous2D.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File: ContField3DHomogeneous2D.h
4 //
5 // For more information, please see: http://www.nektar.info
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10 // Department of Aeronautics, Imperial College London (UK), and Scientific
11 // Computing and Imaging Institute, University of Utah (USA).
12 //
13 // Permission is hereby granted, free of charge, to any person obtaining a
14 // copy of this software and associated documentation files (the "Software"),
15 // to deal in the Software without restriction, including without limitation
16 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 // and/or sell copies of the Software, and to permit persons to whom the
18 // Software is furnished to do so, subject to the following conditions:
19 //
20 // The above copyright notice and this permission notice shall be included
21 // in all copies or substantial portions of the Software.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 // DEALINGS IN THE SOFTWARE.
30 //
31 // Description: Field definition in three-dimensions for a continuous
32 // expansion with two homogeneous directions
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef NEKTAR_LIBS_MULTIREGIONS_CONTFIELD3DHOMO2D_H
37 #define NEKTAR_LIBS_MULTIREGIONS_CONTFIELD3DHOMO2D_H
38 
41 
42 namespace Nektar
43 {
44 namespace MultiRegions
45 {
47 {
48 public:
50 
53  const LibUtilities::BasisKey &HomoBasis_y,
54  const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
55  const NekDouble lhom_z, const bool useFFT, const bool dealiasing,
57  const std::string &variable,
58  const Collections::ImplementationType ImpType =
60 
61  /// Copy constructor.
63  const ContField3DHomogeneous2D &In);
64 
65  /// Destructor.
67 
68 protected:
69  // virtual functions
70 
71  virtual void v_ImposeDirichletConditions(
72  Array<OneD, NekDouble> &outarray) override;
73 
74  /// Template method virtual forwarded for LocalToGlobal()
75  virtual void v_LocalToGlobal(bool useComm) override;
76 
77  /// Template method virtual forwarded for GlobalToLocal()
78  virtual void v_GlobalToLocal(void) override;
79 
80  /// Solves the three-dimensional Helmholtz equation, subject to the
81  /// boundary conditions specified.
83  const Array<OneD, const NekDouble> &inarray,
84  Array<OneD, NekDouble> &outarray,
85  const StdRegions::ConstFactorMap &factors,
86  const StdRegions::VarCoeffMap &varcoeff,
87  const MultiRegions::VarFactorsMap &varfactors,
88  const Array<OneD, const NekDouble> &dirForcing,
89  const bool PhysSpaceForcing) override;
90 
91  virtual void v_ClearGlobalLinSysManager(void) override;
92 
93 private:
95 };
96 
97 typedef std::shared_ptr<ContField3DHomogeneous2D>
99 
100 } // namespace MultiRegions
101 } // namespace Nektar
102 
103 #endif // MULTIERGIONS_CONTFIELD3DHOMO1D_H
#define MULTI_REGIONS_EXPORT
Describes the specification for a Basis.
Definition: Basis.h:50
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.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< ContField3DHomogeneous2D > ContField3DHomogeneous2DSharedPtr
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:172
std::map< ConstFactorType, NekDouble > ConstFactorMap
Definition: StdRegions.hpp:399
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
Definition: StdRegions.hpp:343
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2
double NekDouble