Nektar++
APESolver.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File: APESolver.h
4 //
5 // For more information, please see: http://www.nektar.info
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2015 Kilian Lackhove
10 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
11 // Department of Aeronautics, Imperial College London (UK), and Scientific
12 // Computing and Imaging Institute, University of Utah (USA).
13 //
14 // License for the specific language governing rights and limitations under
15 // Permission is hereby granted, free of charge, to any person obtaining a
16 // copy of this software and associated documentation files (the "Software"),
17 // to deal in the Software without restriction, including without limitation
18 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 // and/or sell copies of the Software, and to permit persons to whom the
20 // Software is furnished to do so, subject to the following conditions:
21 //
22 // The above copyright notice and this permission notice shall be included
23 // in all copies or substantial portions of the Software.
24 //
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
26 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
28 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
31 // DEALINGS IN THE SOFTWARE.
32 //
33 // Description: Riemann solver base classs for the APE equations.
34 //
35 ///////////////////////////////////////////////////////////////////////////////
36 
37 #ifndef NEKTAR_SOLVERS_APESOLVER_RIEMANNSOLVERS_APESOLVER
38 #define NEKTAR_SOLVERS_APESOLVER_RIEMANNSOLVERS_APESOLVER
39 
42 
43 using namespace Nektar::SolverUtils;
44 
45 namespace Nektar
46 {
47 
48 class APESolver : public RiemannSolver
49 {
50  protected:
51  APESolver();
52 
53  virtual void v_Solve(
54  const int nDim,
55  const Array<OneD, const Array<OneD, NekDouble> > &Fwd,
56  const Array<OneD, const Array<OneD, NekDouble> > &Bwd,
58 
59  virtual void v_PointSolve(
60  NekDouble pL, NekDouble rhoL, NekDouble uL, NekDouble vL, NekDouble wL,
61  NekDouble pR, NekDouble rhoR, NekDouble uR, NekDouble vR, NekDouble wR,
62  NekDouble p0, NekDouble rho0, NekDouble u0, NekDouble v0, NekDouble w0,
63  NekDouble &pF, NekDouble &rhoF, NekDouble &uF, NekDouble &vF, NekDouble &wF)
64  {
65  ASSERTL0(false, "This function should be defined by subclasses.");
66  }
67 
68  Array<OneD, Array<OneD, NekDouble> > GetRotBasefield();
69 };
70 
71 }
72 
73 #endif
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:161
double NekDouble
The RiemannSolver class provides an abstract interface under which solvers for various Riemann proble...
Definition: RiemannSolver.h:62
virtual void v_PointSolve(NekDouble pL, NekDouble rhoL, NekDouble uL, NekDouble vL, NekDouble wL, NekDouble pR, NekDouble rhoR, NekDouble uR, NekDouble vR, NekDouble wR, NekDouble p0, NekDouble rho0, NekDouble u0, NekDouble v0, NekDouble w0, NekDouble &pF, NekDouble &rhoF, NekDouble &uF, NekDouble &vF, NekDouble &wF)
Definition: APESolver.h:59