Quinoa regression test code coverage report
Current view: top level - PDE/MultiMat/Problem - UnderwaterEx.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/UnderwaterEx.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 underwater explosion
       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 MultiMatProblemUnderwaterEx_h
      16                 :            : #define MultiMatProblemUnderwaterEx_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: Underwater explosion problem
      29                 :            : //! \see Chiapolino, A., Saurel, R., & Nkonga, B. (2017). Sharpening diffuse
      30                 :            : //!   interfaces with compressible fluids on unstructured meshes. Journal of
      31                 :            : //!   Computational Physics, 340, 389-417.
      32                 :            : class MultiMatProblemUnderwaterEx {
      33                 :            : 
      34                 :            :   protected:
      35                 :            :     using ncomp_t = tk::ctr::ncomp_t;
      36                 :            :     using eq = tag::multimat;
      37                 :            : 
      38                 :            :   public:
      39                 :            :     //! Initialize numerical solution
      40                 :            :     static tk::InitializeFn::result_type
      41                 :            :     initialize( ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y,
      42                 :            :                 tk::real z, tk::real );
      43                 :            : 
      44                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      45                 :            :     static std::vector< tk::real >
      46                 :            :     analyticSolution( ncomp_t system, ncomp_t ncomp,  tk::real x, tk::real y,
      47                 :            :                       tk::real z, tk::real t )
      48                 :          0 :     { return initialize( system, ncomp, x, y, z, t ); }
      49                 :            : 
      50                 :            :     //! Compute and return source term for this problem
      51                 :            :     static tk::MultiMatSrcFn::result_type
      52                 :            :     src( ncomp_t, tk::real, tk::real, tk::real, tk::real,
      53                 :            :          tk::real& r, tk::real& ru, tk::real& rv, tk::real& rw, tk::real& re )
      54                 :            :     { r = ru = rv = rw = re = 0.0; }
      55                 :            : 
      56                 :            :     //! Return names of integral variables to be output to diagnostics file
      57                 :            :     static std::vector< std::string > names( ncomp_t );
      58                 :            : 
      59                 :            :     //! Return problem type
      60                 :            :     static ctr::ProblemType type() noexcept
      61                 :            :     { return ctr::ProblemType::UNDERWATER_EX; }
      62                 :            : };
      63                 :            : 
      64                 :            : } // inciter::
      65                 :            : 
      66                 :            : #endif // MultiMatProblemUnderwaterEx_h

Generated by: LCOV version 1.14