Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NavierStokesCFE.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File NavierStokesCFE.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 // License for the specific language governing rights and limitations under
14 // Permission is hereby granted, free of charge, to any person obtaining a
15 // copy of this software and associated documentation files (the "Software"),
16 // to deal in the Software without restriction, including without limitation
17 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
18 // and/or sell copies of the Software, and to permit persons to whom the
19 // Software is furnished to do so, subject to the following conditions:
20 //
21 // The above copyright notice and this permission notice shall be included
22 // in all copies or substantial portions of the Software.
23 //
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
30 // DEALINGS IN THE SOFTWARE.
31 //
32 // Description: NavierStokes equations in conservative variable
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef NEKTAR_SOLVERS_COMPRESSIBLEFLOWSOLVER_EQUATIONSYSTEMS_NAVIERSTOKESCFE_H
37 #define NEKTAR_SOLVERS_COMPRESSIBLEFLOWSOLVER_EQUATIONSYSTEMS_NAVIERSTOKESCFE_H
38 
40 
41 namespace Nektar
42 {
43 
45  {
46  eGeneral, ///< No problem defined - Default Inital data
47  SIZE_ProblemType ///< Length of enum list
48  };
49 
50  const char* const ProblemTypeMap[] =
51  {
52  "General"
53  };
54 
55  /**
56  *
57  *
58  **/
60  {
61  public:
63 
64  // Creates an instance of this class
67  {
70  p->InitObject();
71  return p;
72  }
73  // Name of class
74  static std::string className;
75 
76  virtual ~NavierStokesCFE();
77 
78  // Problem type selector
80 
81  protected:
83 
84  virtual void v_InitObject();
86  void DoOdeRhs(
87  const Array<OneD, const Array<OneD, NekDouble> > &inarray,
88  Array<OneD, Array<OneD, NekDouble> > &outarray,
89  const NekDouble time);
90  void DoOdeProjection(
91  const Array<OneD, const Array<OneD, NekDouble> > &inarray,
92  Array<OneD, Array<OneD, NekDouble> > &outarray,
93  const NekDouble time);
94  virtual void v_SetInitialConditions(
95  NekDouble initialtime = 0.0,
96  bool dumpInitialConditions = true,
97  const int domain = 0);
98 
99  private:
101  Array<OneD, Array<OneD, NekDouble> > &physarray,
102  NekDouble time);
103  };
104 }
105 #endif
virtual void v_InitObject()
Initialization object for CompressibleFlowSystem class.
void DoOdeProjection(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
static SolverUtils::EquationSystemSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession)
No problem defined - Default Inital data.
Definition: EulerADCFE.h:46
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::vector< std::pair< std::string, std::string > > SummaryList
Definition: Misc.h:47
virtual void v_SetInitialConditions(NekDouble initialtime=0.0, bool dumpInitialConditions=true, const int domain=0)
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
Definition: MeshPartition.h:51
void DoOdeRhs(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
boost::shared_ptr< EquationSystem > EquationSystemSharedPtr
A shared pointer to an EquationSystem object.
void SetBoundaryConditions(Array< OneD, Array< OneD, NekDouble > > &physarray, NekDouble time)
double NekDouble
Length of enum list.
Definition: EulerADCFE.h:47
static std::string className
ProblemType
Definition: EulerADCFE.h:44
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
Print a summary of time stepping parameters.
NavierStokesCFE(const LibUtilities::SessionReaderSharedPtr &pSession)
const char *const ProblemTypeMap[]
Definition: EulerADCFE.h:50