Quinoa regression test code coverage report
Current view: top level - PDE/MultiMat/Problem - ShockHeBubble.hpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 0 1 0.0 %
Date: 2021-11-09 13:40:20 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/MultiMat/Problem/ShockHeBubble.hpp
       4                 :            :   \copyright 2012-2015 J. Bakosi,
       5                 :            :              2016-2018 Los Alamos National Security, LLC.,
       6                 :            :              2019-2021 Triad National Security, LLC.
       7                 :            :              All rights reserved. See the LICENSE file for details.
       8                 :            :   \brief     Problem configuration for gas impact
       9                 :            :   \details   This file defines a policy class for the multi-material
      10                 :            :     compressible flow equations, defined in PDE/MultiMat/DGMultiMat.hpp.
      11                 :            :     See PDE/MultiMat/Problem.hpp for general requirements on Problem policy
      12                 :            :     classes for MultiMat.
      13                 :            : */
      14                 :            : // *****************************************************************************
      15                 :            : #ifndef MultiMatProblemShockHeBubble_h
      16                 :            : #define MultiMatProblemShockHeBubble_h
      17                 :            : 
      18                 :            : #include <string>
      19                 :            : 
      20                 :            : #include "Types.hpp"
      21                 :            : #include "Fields.hpp"
      22                 :            : #include "FunctionPrototypes.hpp"
      23                 :            : #include "SystemComponents.hpp"
      24                 :            : #include "Inciter/Options/Problem.hpp"
      25                 :            : 
      26                 :            : namespace inciter {
      27                 :            : 
      28                 :            : //! MultiMat system of PDEs problem: Shock He-bubble interaction
      29                 :            : //! \see Quirk, J. J., & Karni, S. (1996). On the dynamics of a shock–bubble         
      30                 :            : //!   interaction. Journal of Fluid Mechanics, 318, 129-163.
      31                 :            : class MultiMatProblemShockHeBubble {
      32                 :            : 
      33                 :            :   protected:
      34                 :            :     using ncomp_t = tk::ctr::ncomp_t;
      35                 :            :     using eq = tag::multimat;
      36                 :            : 
      37                 :            :   public:
      38                 :            :     //! Initialize numerical solution
      39                 :            :     static tk::InitializeFn::result_type
      40                 :            :     initialize( ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y,
      41                 :            :                 tk::real z, tk::real );
      42                 :            : 
      43                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      44                 :            :     static std::vector< tk::real >
      45                 :            :     analyticSolution( ncomp_t system, ncomp_t ncomp,  tk::real x, tk::real y,
      46                 :            :                       tk::real z, tk::real t )
      47                 :          0 :     { return initialize( system, ncomp, x, y, z, t ); }
      48                 :            : 
      49                 :            :     //! Compute and return source term for this problem
      50                 :            :     static tk::MultiMatSrcFn::result_type
      51                 :            :     src( ncomp_t, tk::real, tk::real, tk::real, tk::real,
      52                 :            :          tk::real& r, tk::real& ru, tk::real& rv, tk::real& rw, tk::real& re )
      53                 :            :     { r = ru = rv = rw = re = 0.0; }
      54                 :            : 
      55                 :            :     //! Return names of integral variables to be output to diagnostics file
      56                 :            :     static std::vector< std::string > names( ncomp_t );
      57                 :            : 
      58                 :            :     //! Return problem type
      59                 :            :     static ctr::ProblemType type() noexcept
      60                 :            :     { return ctr::ProblemType::SHOCK_HEBUBBLE; }
      61                 :            : };
      62                 :            : 
      63                 :            : } // inciter::
      64                 :            : 
      65                 :            : #endif // MultiMatProblemShockHeBubble_h

Generated by: LCOV version 1.14