Nektar++
ContField3DHomogeneous1D.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File ContField3DHomogeneous1D.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 a homogeneous direction in 1D
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef NEKTAR_LIBS_MULTIREGIONS_CONTFIELD3DHOMO1D_H
37 #define NEKTAR_LIBS_MULTIREGIONS_CONTFIELD3DHOMO1D_H
38 
41 
42 namespace Nektar
43 {
44  namespace MultiRegions
45  {
47  {
48  public:
50 
53  const LibUtilities::BasisKey &HomoBasis,
54  const NekDouble lhom,
55  const bool useFFT,
56  const bool dealiasing,
58  const std::string &variable,
59  const bool CheckIfSingularSystem = false,
62 
63  /// Copy constructor.
64  MULTI_REGIONS_EXPORT ContField3DHomogeneous1D(const ContField3DHomogeneous1D &In);
65 
67  const ContField3DHomogeneous1D &In,
69  const std::string &variable);
70 
71  /// Destructor.
73 
75  Array<OneD,NekDouble> &field);
76 
77  protected:
78 
79  private:
80 
81  virtual void v_ImposeDirichletConditions(Array<OneD,NekDouble>& outarray);
82 
83  virtual void v_FillBndCondFromField();
84  virtual void v_FillBndCondFromField(const int nreg);
85  /// Template method virtual forwarded for LocalToGlobal()
86  virtual void v_LocalToGlobal(bool useComm);
87 
88  /// Template method virtual forwarded for GlobalToLocal()
89  virtual void v_GlobalToLocal(void);
90 
91  /// Solves the three-dimensional Helmholtz equation, subject to the
92  /// boundary conditions specified.
93  virtual void v_HelmSolve(
94  const Array<OneD, const NekDouble> &inarray,
95  Array<OneD, NekDouble> &outarray,
96  const FlagList &flags,
97  const StdRegions::ConstFactorMap &factors,
98  const StdRegions::VarCoeffMap &varcoeff,
99  const MultiRegions::VarFactorsMap &varfactors,
100  const Array<OneD, const NekDouble> &dirForcing,
101  const bool PhysSpaceForcing);
102 
103 
104  virtual void v_ClearGlobalLinSysManager(void);
105  };
106 
107  typedef std::shared_ptr<ContField3DHomogeneous1D>
109 
110  } //end of namespace
111 } //end of namespace
112 
113 #endif // MULTIERGIONS_CONTFIELD3DHOMO1D_H
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:163
virtual void v_SmoothField(Array< OneD, NekDouble > &field)
virtual void v_ImposeDirichletConditions(Array< OneD, NekDouble > &outarray)
#define MULTI_REGIONS_EXPORT
std::map< ConstFactorType, NekDouble > ConstFactorMap
Definition: StdRegions.hpp:294
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
Definition: StdRegions.hpp:264
double NekDouble
Defines a list of flags.
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 FlagList &flags, 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...
std::shared_ptr< ContField3DHomogeneous1D > ContField3DHomogeneous1DSharedPtr
Describes the specification for a Basis.
Definition: Basis.h:49
std::shared_ptr< SessionReader > SessionReaderSharedPtr
virtual void v_LocalToGlobal(bool useComm)
Template method virtual forwarded for LocalToGlobal()
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap