Quinoa all test code coverage report
Current view: top level - PDE/Transport/Physics - CGAdvDiff.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 2 2 100.0 %
Date: 2024-04-29 14:59:56 Functions: 1 1 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/Physics/CGAdvDiff.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     Physics policy for advection-diffusion using continuous Galerkin
       9                 :            :   \details   This file declares a Physics policy class for the transport
      10                 :            :     equations, defined in PDE/Transport/CGTransport.h implementing
      11                 :            :     node-centered continuous Galerkin (CG) discretizations.
      12                 :            :     See PDE/Transport/Physics/CG.h for general requirements on Physics policy
      13                 :            :     classes for cg::Transport.
      14                 :            : */
      15                 :            : // *****************************************************************************
      16                 :            : #ifndef TransportPhysicsCGAdvDiff_h
      17                 :            : #define TransportPhysicsCGAdvDiff_h
      18                 :            : 
      19                 :            : #include "Inciter/InputDeck/InputDeck.hpp"
      20                 :            : #include "Fields.hpp"
      21                 :            : #include "Inciter/Options/Physics.hpp"
      22                 :            : 
      23                 :            : namespace inciter {
      24                 :            : namespace cg {
      25                 :            : 
      26                 :            : //! Physics policy for advection-diffusion using continuous Galerkin
      27                 :            : class TransportPhysicsAdvDiff {
      28                 :            : 
      29                 :            :   private:
      30                 :            :     using ncomp_t = tk::ncomp_t;
      31                 :            :     using eq = tag::transport;
      32                 :            : 
      33                 :            :   public:
      34                 :            :     //! Add diffusion contribution to rhs
      35                 :            :     void
      36                 :            :     diffusionRhs( ncomp_t ncomp,
      37                 :            :                   tk::real deltat,
      38                 :            :                   tk::real J,
      39                 :            :                   const std::array< std::array< tk::real, 3 >, 4 >& grad,
      40                 :            :                   const std::array< std::size_t, 4 >& N,
      41                 :            :                   const std::vector< std::array< tk::real, 4 > >& u,
      42                 :            :                   const std::vector< const tk::real* >& r,
      43                 :            :                   tk::Fields& R ) const;
      44                 :            : 
      45                 :            :     //! Compute the minimum time step size based on the diffusion
      46                 :            :     tk::real
      47                 :            :     diffusion_dt( ncomp_t ncomp,
      48                 :            :                   tk::real L,
      49                 :            :                   const std::vector< std::array< tk::real, 4 > >& ) const;
      50                 :            : 
      51                 :            :     //! Return physics type
      52                 :      11700 :     static ctr::PhysicsType type() noexcept
      53                 :      11700 :     { return ctr::PhysicsType::ADVDIFF; }
      54                 :            : };
      55                 :            : 
      56                 :            : } // cg::
      57                 :            : } // inciter::
      58                 :            : 
      59                 :            : #endif // TransportPhysicsCGAdvDiff_h

Generated by: LCOV version 1.14