ContField3DHomogeneous2D.h 4.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
///////////////////////////////////////////////////////////////////////////////
//
// File ContField3DHomogeneous2D.h
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, Imperial College London (UK), and Scientific
// Computing and Imaging Institute, University of Utah (USA).
//
// License for the specific language governing rights and limitations under
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
// Description: Field definition in three-dimensions for a continuous
// expansion with two homogeneous directions
//
///////////////////////////////////////////////////////////////////////////////

#ifndef NEKTAR_LIBS_MULTIREGIONS_CONTFIELD3DHOMO2D_H
#define NEKTAR_LIBS_MULTIREGIONS_CONTFIELD3DHOMO2D_H
39

40 41 42 43 44 45 46 47 48 49 50 51
#include <MultiRegions/MultiRegionsDeclspec.h>
#include <MultiRegions/DisContField3DHomogeneous2D.h>

namespace Nektar
{
    namespace MultiRegions
    {
        class ContField3DHomogeneous2D: public DisContField3DHomogeneous2D
        {
        public:
            MULTI_REGIONS_EXPORT ContField3DHomogeneous2D();

52 53 54 55 56 57 58 59 60 61 62 63
            MULTI_REGIONS_EXPORT ContField3DHomogeneous2D(
                         const LibUtilities::SessionReaderSharedPtr &pSession,
                         const LibUtilities::BasisKey &HomoBasis_y,
                         const LibUtilities::BasisKey &HomoBasis_z,
                         const NekDouble lhom_y,
                         const NekDouble lhom_z,
                         const bool useFFT,
                         const bool dealiasing,
                         const SpatialDomains::MeshGraphSharedPtr &graph1D,
                         const std::string &variable,
                         const Collections::ImplementationType ImpType
                         = Collections::eNoImpType);
64 65
            
            /// Copy constructor.
66 67
            MULTI_REGIONS_EXPORT ContField3DHomogeneous2D(
                                 const ContField3DHomogeneous2D &In);
68 69

            /// Destructor.
70
            MULTI_REGIONS_EXPORT virtual ~ContField3DHomogeneous2D();
71 72 73 74 75 76 77 78
            
        protected:

        private:
            Array<OneD, NekDouble> m_contCoeffs;

            // virtual functions

79 80
            virtual void v_ImposeDirichletConditions(Array<OneD,NekDouble>& outarray);

81
            /// Template method virtual forwarded for LocalToGlobal()
82
            virtual void v_LocalToGlobal(bool useComm);
83 84

            /// Template method virtual forwarded for GlobalToLocal()
85
            virtual void v_GlobalToLocal(void);
86 87 88 89 90 91

            /// Solves the three-dimensional Helmholtz equation, subject to the
            /// boundary conditions specified.
            virtual void v_HelmSolve(
                    const Array<OneD, const NekDouble> &inarray,
                          Array<OneD,       NekDouble> &outarray,
92 93 94
                    const FlagList &flags,
                    const StdRegions::ConstFactorMap &factors,
                    const StdRegions::VarCoeffMap &varcoeff,
95
                    const MultiRegions::VarFactorsMap &varfactors,
96
                    const Array<OneD, const NekDouble> &dirForcing,
97
                    const bool PhysSpaceForcing);
98 99 100

            virtual void v_ClearGlobalLinSysManager(void);

101 102
        };

103
        typedef std::shared_ptr<ContField3DHomogeneous2D>  
104 105 106 107 108 109
            ContField3DHomogeneous2DSharedPtr;

    } //end of namespace
} //end of namespace

#endif // MULTIERGIONS_CONTFIELD3DHOMO1D_H