Quinoa all test code coverage report
Current view: top level - PDE/MultiSpecies/Problem - UserDefined.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 0 5 0.0 %
Date: 2024-11-08 10:37:44 Functions: 0 1 0.0 %
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/MultiSpecies/Problem/UserDefined.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 the multi-species compressible flow
       9                 :            :     equations
      10                 :            :   \details   This file defines a Problem policy class for the multi-species
      11                 :            :     compressible flow equations, defined under PDE/MultiSpecies. See
      12                 :            :     PDE/MultiSpecies/Problem.h for general requirements on Problem policy
      13                 :            :     classes for MultiSpecies.
      14                 :            : */
      15                 :            : // *****************************************************************************
      16                 :            : #ifndef MultiSpeciesProblemUserDefined_h
      17                 :            : #define MultiSpeciesProblemUserDefined_h
      18                 :            : 
      19                 :            : #include <string>
      20                 :            : 
      21                 :            : #include "Types.hpp"
      22                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      23                 :            : #include "FunctionPrototypes.hpp"
      24                 :            : #include "Inciter/Options/Problem.hpp"
      25                 :            : #include "MultiSpecies/MultiSpeciesIndexing.hpp"
      26                 :            : #include "EoS/EOS.hpp"
      27                 :            : 
      28                 :            : namespace inciter {
      29                 :            : 
      30                 :            : //! MultiSpecies system of PDEs problem: user defined
      31                 :            : class MultiSpeciesProblemUserDefined {
      32                 :            : 
      33                 :            :   private:
      34                 :            :     using ncomp_t = tk::ncomp_t;
      35                 :            :     using eq = tag::multispecies;
      36                 :            : 
      37                 :            :   public:
      38                 :            :     //! Initialize numerical solution
      39                 :            :     static tk::InitializeFn::result_type
      40                 :            :     initialize( ncomp_t ncomp, const std::vector< EOS >&,
      41                 :            :                 tk::real, tk::real, tk::real, 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 ncomp,
      46                 :            :                       const std::vector< EOS >& mat_blk, tk::real x,
      47                 :            :                       tk::real y, tk::real z, tk::real t )
      48                 :          0 :     { return initialize( ncomp, mat_blk, x, y, z, t ); }
      49                 :            : 
      50                 :            :     //! Compute and return source term for Rayleigh-Taylor manufactured solution
      51                 :            :     //! \details No-op for user-deefined problems.
      52                 :            :     static tk::SrcFn::result_type
      53                 :          0 :     src( ncomp_t, const std::vector< EOS >&,tk::real, tk::real,
      54                 :            :          tk::real, tk::real, std::vector< tk::real >& sv )
      55                 :            :     {
      56         [ -  - ]:          0 :       for (std::size_t i=0; i<sv.size(); ++i) {
      57                 :          0 :         sv[i] = 0.0;
      58                 :            :       }
      59                 :          0 :     }
      60                 :            : 
      61                 :            :    static ctr::ProblemType type() noexcept
      62                 :            :    { return ctr::ProblemType::USER_DEFINED; }
      63                 :            : };
      64                 :            : } // inciter::
      65                 :            : 
      66                 :            : #endif // MultiSpeciesProblemUserDefined_h

Generated by: LCOV version 1.14