Quinoa all test code coverage report
Current view: top level - PDE/Transport/Problem - SlotCyl.hpp (source / functions) Hit Total Coverage
Commit: Quinoa_v0.3-957-gb4f0efae0 Lines: 1 1 100.0 %
Date: 2021-11-09 15:14:18 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/Transport/Problem/SlotCyl.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 TransportProblemSlotCyl_h
      18                 :            : #define TransportProblemSlotCyl_h
      19                 :            : 
      20                 :            : #include <vector>
      21                 :            : #include <array>
      22                 :            : 
      23                 :            : #include "Types.hpp"
      24                 :            : #include "SystemComponents.hpp"
      25                 :            : #include "Inciter/Options/Problem.hpp"
      26                 :            : 
      27                 :            : namespace inciter {
      28                 :            : 
      29                 :            : //! Transport PDE problem: rotation of Zalesak's slotted cylinder
      30                 :            : //! \see Zalesak, S. (1978) Fully Multidimensional Flux-Corrected Transport
      31                 :            : //!   Algorithms for Fluids. Journal of Computational Physics 31, 335-362.
      32                 :            : //! \see Leveque R.J. (1996) High-Resolution Conservative Algorithms for
      33                 :            : //!   Advection in Incompressible Flow. SIAM Journal on Numerical Analyis 33,
      34                 :            : //!   627-665.
      35                 :            : class TransportProblemSlotCyl {
      36                 :            :   private:
      37                 :            :     using ncomp_t = tk::ctr::ncomp_t;
      38                 :            :     using eq = tag::transport;
      39                 :            : 
      40                 :            :   public:
      41                 :            :     //! Initialize numerical solution
      42                 :            :     static std::vector< tk::real >
      43                 :            :     initialize( ncomp_t, ncomp_t ncomp,
      44                 :            :                 tk::real x, tk::real y, tk::real, tk::real t );
      45                 :            : 
      46                 :            :     //! Evaluate analytical solution at (x,y,z,t) for all components
      47                 :            :     static std::vector< tk::real >
      48                 :            :     analyticSolution( ncomp_t system, ncomp_t ncomp,  tk::real x, tk::real y,
      49                 :            :                       tk::real z, tk::real t )
      50                 :     638647 :     { return initialize( system, ncomp, x, y, z, t ); }
      51                 :            : 
      52                 :            :     //! Do error checking on PDE parameters
      53                 :            :     void errchk( ncomp_t, ncomp_t ) const {}
      54                 :            : 
      55                 :            :     //! Assign prescribed velocity at a point
      56                 :            :     static std::vector< std::array< tk::real, 3 > >
      57                 :            :     prescribedVelocity( ncomp_t,
      58                 :            :                         ncomp_t ncomp,
      59                 :            :                         tk::real x,
      60                 :            :                         tk::real y,
      61                 :            :                         tk::real,
      62                 :            :                         tk::real );
      63                 :            : 
      64                 :            :     //! Return problem type
      65                 :            :     static ctr::ProblemType type() noexcept
      66                 :            :     { return ctr::ProblemType::SLOT_CYL; }
      67                 :            : };
      68                 :            : 
      69                 :            : } // inciter::
      70                 :            : 
      71                 :            : #endif // TransportProblemSlotCyl_h

Generated by: LCOV version 1.14