Nektar++
DisContField3DHomogeneous2D.h
Go to the documentation of this file.
1///////////////////////////////////////////////////////////////////////////////
2//
3// File: DisContField3DHomogeneous2D.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 discontinuous
32// LDG-H expansion with 2 homogeneous directions in 2D
33//
34///////////////////////////////////////////////////////////////////////////////
35
36#ifndef NEKTAR_LIBS_MULTIREGIONS_DISCONTFIELD3DHOMO2D_H
37#define NEKTAR_LIBS_MULTIREGIONS_DISCONTFIELD3DHOMO2D_H
38
41
42namespace Nektar
43{
44namespace MultiRegions
45{
47{
48public:
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,
58
61 const LibUtilities::BasisKey &HomoBasis_y,
62 const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
63 const NekDouble lhom_z, const bool useFFT, const bool dealiasing,
65 const std::string &variable,
68
69 /// Copy constructor.
72 const bool DeclareLinesSetCoeffPhys = true);
73
74 /// Destructor.
76
78 const LibUtilities::BasisKey &HomoBasis_y,
79 const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
81 const std::string variable);
82
83 /// Storage space for the boundary to element and boundary to trace map.
84 /// This member variable is really allocated just in case a boundary
85 /// expansion recasting is required at the solver level. Otherwise is the 2
86 /// vectors are not filled up. If is needed all the funcitons whihc require
87 /// to use this map do not have to recalculate it anymore.
90
91protected:
93
95
97
99 const Array<OneD, const NekDouble> &inarray,
100 Array<OneD, NekDouble> &outarray,
102 const StdRegions::VarCoeffMap &varcoeff,
103 const MultiRegions::VarFactorsMap &varfactors,
104 const Array<OneD, const NekDouble> &dirForcing,
105 const bool PhysSpaceForcing) override;
106
107 virtual void v_GetBndElmtExpansion(
108 int i, std::shared_ptr<ExpList> &result,
109 const bool DeclareCoeffPhysArrays) override;
110
111 virtual void v_GetBoundaryToElmtMap(Array<OneD, int> &ElmtID,
112 Array<OneD, int> &EdgeID) override;
113
114 /// @todo Fix Robin BCs for homogeneous case
115 virtual std::map<int, RobinBCInfoSharedPtr> v_GetRobinBCInfo() override;
116
117 virtual void v_EvaluateBoundaryConditions(
118 const NekDouble time = 0.0, const std::string varName = "",
120 const NekDouble x3_in = NekConstants::kNekUnsetDouble) override;
121
123 &v_GetBndCondExpansions(void) override;
124
126 &v_GetBndConditions() override;
127
128 virtual std::shared_ptr<ExpList> &v_UpdateBndCondExpansion(int i) override;
129
131 &v_UpdateBndConditions() override;
132
133 virtual void v_SetBndCondBwdWeight(const int index,
134 const NekDouble value) override;
135};
136
137typedef std::shared_ptr<DisContField3DHomogeneous2D>
139
140} // namespace MultiRegions
141} // namespace Nektar
142
143#endif // MULTIERGIONS_DISCONTFIELD3DHOMO2D_H
#define MULTI_REGIONS_EXPORT
Describes the specification for a Basis.
Definition: Basis.h:47
virtual void v_GetBndElmtExpansion(int i, std::shared_ptr< ExpList > &result, const bool DeclareCoeffPhysArrays) override
void SetupBoundaryConditions(const LibUtilities::BasisKey &HomoBasis_y, const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y, const NekDouble lhom_z, SpatialDomains::BoundaryConditions &bcs, const std::string variable)
virtual void v_GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &EdgeID) override
virtual const Array< OneD, const std::shared_ptr< ExpList > > & v_GetBndCondExpansions(void) override
Array< OneD, int > m_BCtoElmMap
Storage space for the boundary to element and boundary to trace map. This member variable is really a...
virtual void v_SetBndCondBwdWeight(const int index, const NekDouble value) override
virtual Array< OneD, SpatialDomains::BoundaryConditionShPtr > & v_UpdateBndConditions() override
virtual void v_EvaluateBoundaryConditions(const NekDouble time=0.0, const std::string varName="", const NekDouble x2_in=NekConstants::kNekUnsetDouble, const NekDouble x3_in=NekConstants::kNekUnsetDouble) override
virtual std::map< int, RobinBCInfoSharedPtr > v_GetRobinBCInfo() 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
virtual std::shared_ptr< ExpList > & v_UpdateBndCondExpansion(int i) override
virtual const Array< OneD, const SpatialDomains::BoundaryConditionShPtr > & v_GetBndConditions() override
Array< OneD, MultiRegions::ExpListSharedPtr > m_bndCondExpansions
Array< OneD, SpatialDomains::BoundaryConditionShPtr > m_bndConditions
Abstraction of a one-dimensional multi-elemental expansion which is merely a collection of local expa...
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< DisContField3DHomogeneous2D > DisContField3DHomogeneous2DSharedPtr
std::map< StdRegions::ConstFactorType, Array< OneD, NekDouble > > VarFactorsMap
static const NekDouble kNekUnsetDouble
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:176
std::map< ConstFactorType, NekDouble > ConstFactorMap
Definition: StdRegions.hpp:408
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
Definition: StdRegions.hpp:352
StdRegions::ConstFactorMap factors
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2
double NekDouble