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
43{
45{
46public:
48
51 const LibUtilities::BasisKey &HomoBasis_y,
52 const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
53 const NekDouble lhom_z, const bool useFFT, const bool dealiasing,
56
59 const LibUtilities::BasisKey &HomoBasis_y,
60 const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
61 const NekDouble lhom_z, const bool useFFT, const bool dealiasing,
63 const std::string &variable,
66
67 /// Copy constructor.
70 const bool DeclareLinesSetCoeffPhys = true);
71
72 /// Destructor.
74
76 const LibUtilities::BasisKey &HomoBasis_y,
77 const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
79 const std::string variable);
80
81 /// Storage space for the boundary to element and boundary to trace map.
82 /// This member variable is really allocated just in case a boundary
83 /// expansion recasting is required at the solver level. Otherwise is the 2
84 /// vectors are not filled up. If is needed all the funcitons whihc require
85 /// to use this map do not have to recalculate it anymore.
88
89protected:
91
93
95
97 Array<OneD, NekDouble> &outarray,
99 const StdRegions::VarCoeffMap &varcoeff,
100 const MultiRegions::VarFactorsMap &varfactors,
101 const Array<OneD, const NekDouble> &dirForcing,
102 const bool PhysSpaceForcing) override;
103
104 void v_GetBndElmtExpansion(int i, std::shared_ptr<ExpList> &result,
105 const bool DeclareCoeffPhysArrays) override;
106
108 Array<OneD, int> &EdgeID) override;
109
110 /// @todo Fix Robin BCs for homogeneous case
111 std::map<int, RobinBCInfoSharedPtr> v_GetRobinBCInfo() override;
112
114 const NekDouble time = 0.0, const std::string varName = "",
116 const NekDouble x3_in = NekConstants::kNekUnsetDouble) override;
117
119 void) override;
120
122 v_GetBndConditions() override;
123
124 std::shared_ptr<ExpList> &v_UpdateBndCondExpansion(int i) override;
125
127 override;
128
129 void v_SetBndCondBwdWeight(const int index, const NekDouble value) override;
130};
131
132typedef std::shared_ptr<DisContField3DHomogeneous2D>
134
135} // namespace Nektar::MultiRegions
136
137#endif // MULTIERGIONS_DISCONTFIELD3DHOMO2D_H
#define MULTI_REGIONS_EXPORT
Describes the specification for a Basis.
Definition: Basis.h:45
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)
void v_GetBoundaryToElmtMap(Array< OneD, int > &ElmtID, Array< OneD, int > &EdgeID) override
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...
void v_SetBndCondBwdWeight(const int index, const NekDouble value) override
Array< OneD, SpatialDomains::BoundaryConditionShPtr > & v_UpdateBndConditions() override
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
std::map< int, RobinBCInfoSharedPtr > v_GetRobinBCInfo() override
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
std::shared_ptr< ExpList > & v_UpdateBndCondExpansion(int i) override
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:174
std::map< ConstFactorType, NekDouble > ConstFactorMap
Definition: StdRegions.hpp:430
std::map< StdRegions::VarCoeffType, VarCoeffEntry > VarCoeffMap
Definition: StdRegions.hpp:375
StdRegions::ConstFactorMap factors
double NekDouble