Quinoa all test code coverage report
Current view: top level - PDE/Transport/Problem - CylAdvect.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 5 5 100.0 %
Date: 2024-11-22 08:51:48 Functions: 3 3 100.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/Transport/Problem/CylAdvect.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 transport equations
       9                 :            :   \details   This file declares a Problem policy class for the transport
      10                 :            :     equations, defined in PDE/Transport/CGTransport.h implementing
      11                 :            :     node-centered continuous Galerkin (CG) and PDE/Transport/DGTransport.h
      12                 :            :     implementing cell-centered discontinuous Galerkin (DG) discretizations.
      13                 :            :     See PDE/Transport/Problem.h for general requirements on Problem policy
      14                 :            :     classes for cg::Transport and dg::Transport.
      15                 :            : */
      16                 :            : // *****************************************************************************
      17                 :            : #ifndef TransportProblemCylAdvect_h
      18                 :            : #define TransportProblemCylAdvect_h
      19                 :            : 
      20                 :            : #include <vector>
      21                 :            : #include <array>
      22                 :            : 
      23                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      24                 :            : #include "Inciter/Options/Problem.hpp"
      25                 :            : #include "EoS/EOS.hpp"
      26                 :            : 
      27                 :            : namespace inciter {
      28                 :            : 
      29                 :            : //! Transport PDE problem: advection of cylinder
      30                 :            : class TransportProblemCylAdvect {
      31                 :            :   private:
      32                 :            :     using ncomp_t = tk::ncomp_t;
      33                 :            :     using eq = tag::transport;
      34                 :            : 
      35                 :            :   public:
      36                 :            :     //! Initialize numerical solution
      37                 :            :     static std::vector< tk::real >
      38                 :            :     initialize( ncomp_t ncomp,
      39                 :            :                 const std::vector< EOS >& mat_blk,
      40                 :            :                 tk::real x, tk::real y, tk::real, tk::real t );
      41                 :            : 
      42                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      43                 :            :     static std::vector< tk::real >
      44                 :      47612 :     analyticSolution( ncomp_t ncomp,
      45                 :            :                       const std::vector< EOS >& mat_blk, tk::real x,
      46                 :            :                       tk::real y, tk::real z, tk::real t )
      47                 :      47612 :     { return initialize( ncomp, mat_blk, x, y, z, t ); }
      48                 :            : 
      49                 :            :     //! Do error checking on PDE parameters
      50                 :         24 :     void errchk( ncomp_t ) const {}
      51                 :            : 
      52                 :            :     //! Assign prescribed velocity at a point
      53                 :            :     static std::vector< std::array< tk::real, 3 > >
      54                 :            :     prescribedVelocity( ncomp_t ncomp, tk::real, tk::real, tk::real, tk::real );
      55                 :            : 
      56                 :            :     //! Return problem type
      57                 :       6813 :     static ctr::ProblemType type() noexcept
      58                 :       6813 :     { return ctr::ProblemType::CYL_ADVECT; }
      59                 :            : };
      60                 :            : 
      61                 :            : } // inciter::
      62                 :            : 
      63                 :            : #endif // TransportProblemCylAdvect_h

Generated by: LCOV version 1.14