Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EulerADCFE.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File EulerArtificialDiffusionCFE.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: Euler equations in conservative variables with artificial
33 // diffusion
34 //
35 ///////////////////////////////////////////////////////////////////////////////
36 
37 #ifndef NEKTAR_SOLVERS_COMPRESSIBLEFLOWSOLVER_EQUATIONSYSTEMS_EULERADCFE_H
38 #define NEKTAR_SOLVERS_COMPRESSIBLEFLOWSOLVER_EQUATIONSYSTEMS_EULERADCFE_H
39 
41 
42 namespace Nektar
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:
62  friend class MemoryManager<EulerADCFE>;
63 
64  /// Creates an instance of this class
67  {
69  EulerADCFE>::AllocateSharedPtr(pSession);
70  p->InitObject();
71  return p;
72  }
73  /// Name of class
74  static std::string className;
75 
76  virtual ~EulerADCFE();
77 
78  ///< problem type selector
80 
81  protected:
82  EulerADCFE(
83  const LibUtilities::SessionReaderSharedPtr& pSession);
84 
85  virtual void v_InitObject();
86 
87  /// Print a summary of time stepping parameters.
89 
90  void DoOdeRhs(
91  const Array<OneD, const Array<OneD, NekDouble> > &inarray,
92  Array<OneD, Array<OneD, NekDouble> > &outarray,
93  const NekDouble time);
94 
95  void DoOdeProjection(
96  const Array<OneD, const Array<OneD, NekDouble> > &inarray,
97  Array<OneD, Array<OneD, NekDouble> > &outarray,
98  const NekDouble time);
99 
100  virtual void v_SetInitialConditions(
101  NekDouble initialtime = 0.0,
102  bool dumpInitialConditions = true,
103  const int domain = 0);
104 
105  private:
107  Array<OneD, Array<OneD, NekDouble> > &physarray, NekDouble time);
108  };
109 }
110 #endif
void SetBoundaryConditions(Array< OneD, Array< OneD, NekDouble > > &physarray, NekDouble time)
Definition: EulerADCFE.cpp:271
No problem defined - Default Inital data.
Definition: EulerADCFE.h:46
virtual void v_SetInitialConditions(NekDouble initialtime=0.0, bool dumpInitialConditions=true, const int domain=0)
Definition: EulerADCFE.cpp:114
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 ~EulerADCFE()
problem type selector
Definition: EulerADCFE.cpp:102
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
Definition: MeshPartition.h:51
ProblemType m_problemType
Definition: EulerADCFE.h:79
void DoOdeRhs(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
Definition: EulerADCFE.cpp:129
boost::shared_ptr< EquationSystem > EquationSystemSharedPtr
A shared pointer to an EquationSystem object.
void DoOdeProjection(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
Definition: EulerADCFE.cpp:237
virtual void v_InitObject()
Initialization object for CompressibleFlowSystem class.
Definition: EulerADCFE.cpp:56
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
Print a summary of time stepping parameters.
Definition: EulerADCFE.cpp:107
double NekDouble
Length of enum list.
Definition: EulerADCFE.h:47
static SolverUtils::EquationSystemSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession)
Creates an instance of this class.
Definition: EulerADCFE.h:65
static std::string className
Name of class.
Definition: EulerADCFE.h:74
ProblemType
Definition: EulerADCFE.h:44
EulerADCFE(const LibUtilities::SessionReaderSharedPtr &pSession)
Definition: EulerADCFE.cpp:50
const char *const ProblemTypeMap[]
Definition: EulerADCFE.h:50