Quinoa all test code coverage report
Current view: top level - PDE/MultiMat/Problem - ShockDensityWave.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 2 8 25.0 %
Date: 2024-11-22 08:51:48 Functions: 1 3 33.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 0.0 %

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/PDE/MultiMat/Problem/ShockDensityWave.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 Shock-density Wave
       9                 :            :   \details   This file defines a policy class for the multi-material
      10                 :            :     compressible flow equations, defined in PDE/MultiMat/MultiMat.hpp.
      11                 :            :     See PDE/MultiMat/Problem.hpp for general requirements on Problem policy
      12                 :            :     classes for MultiMat.
      13                 :            : */
      14                 :            : // *****************************************************************************
      15                 :            : #ifndef MultiMatProblemShockDensityWave_h
      16                 :            : #define MultiMatProblemShockDensityWave_h
      17                 :            : 
      18                 :            : #include <string>
      19                 :            : 
      20                 :            : #include "Types.hpp"
      21                 :            : #include "Fields.hpp"
      22                 :            : #include "FunctionPrototypes.hpp"
      23                 :            : #include "Inciter/Options/Problem.hpp"
      24                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      25                 :            : #include "EoS/EOS.hpp"
      26                 :            : 
      27                 :            : namespace inciter {
      28                 :            : 
      29                 :            : //! MultiMat system of PDEs problem: Shock-density Wave
      30                 :            : //! \see Y. Lv, M. Ihme. Discontinuous Galerkin method for multicomponent
      31                 :            : //!   chemically reacting flows and combustion. J. Comput. Phys., 2014.
      32                 :            : //!   And C. Shu, S. Osher. Efficient implementation of essentially
      33                 :            : //!   non-oscillatory shock-capturing schemes, II. J. Comput. Phys., 1989.
      34                 :            : class MultiMatProblemShockDensityWave {
      35                 :            : 
      36                 :            :   protected:
      37                 :            :     using ncomp_t = tk::ncomp_t;
      38                 :            :     using eq = tag::multimat;
      39                 :            : 
      40                 :            :   public:
      41                 :            :     //! Initialize numerical solution
      42                 :            :     static tk::InitializeFn::result_type
      43                 :            :     initialize( ncomp_t ncomp, const std::vector< EOS >&,
      44                 :            :                 tk::real x, tk::real, tk::real, tk::real );
      45                 :            : 
      46                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      47                 :            :     static std::vector< tk::real >
      48                 :          0 :     analyticSolution( ncomp_t ncomp, 
      49                 :            :                       const std::vector< EOS >& mat_blk, tk::real x,
      50                 :            :                       tk::real y, tk::real z, tk::real t )
      51                 :          0 :     { return initialize( ncomp, mat_blk, x, y, z, t ); }
      52                 :            : 
      53                 :            :     //! Compute and return source term for this problem
      54                 :            :     static tk::SrcFn::result_type
      55                 :          0 :     src( ncomp_t, const std::vector< EOS >&, tk::real, tk::real,
      56                 :            :          tk::real, tk::real, std::vector< tk::real >& sv )
      57                 :            :     {
      58         [ -  - ]:          0 :       for (std::size_t i=0; i<sv.size(); ++i) {
      59                 :          0 :         sv[i] = 0.0;
      60                 :            :       }
      61                 :          0 :     }
      62                 :            : 
      63                 :            :     //! Return problem type
      64                 :       9084 :     static ctr::ProblemType type() noexcept
      65                 :       9084 :     { return ctr::ProblemType::SHOCKDENSITY_WAVE; }
      66                 :            : };
      67                 :            : 
      68                 :            : } // inciter::
      69                 :            : 
      70                 :            : #endif // MultiMatProblemShockDensityWave_h

Generated by: LCOV version 1.14