Quinoa all test code coverage report
Current view: top level - PDE/MultiMat/Physics - FVEuler.hpp (source / functions) Hit Total Coverage
Commit: -128-NOTFOUND Lines: 5 5 100.0 %
Date: 2024-11-27 16:58:37 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/MultiMat/Physics/FVEuler.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 the Euler equation governing multi-material flow
       9                 :            :     using a FV method
      10                 :            :   \details   This file defines a Physics policy class for the compressible
      11                 :            :     flow equations class dg::MultiMat, defined in PDE/MultiMat/FVMultiMat.h.
      12                 :            :     This specific algorithm solves the Euler (inviscid) equations of
      13                 :            :     multi-material flow and uses a finite volume discretization scheme. See
      14                 :            :     PDE/MultiMat/Physics/FV.h for general requirements on Physics policy classes
      15                 :            :     for dg::MultiMat.
      16                 :            : */
      17                 :            : // *****************************************************************************
      18                 :            : #ifndef MultiMatPhysicsFVEuler_h
      19                 :            : #define MultiMatPhysicsFVEuler_h
      20                 :            : 
      21                 :            : #include "Types.hpp"
      22                 :            : #include "Exception.hpp"
      23                 :            : #include "Inciter/Options/Physics.hpp"
      24                 :            : #include "EoS/EOS.hpp"
      25                 :            : 
      26                 :            : namespace inciter {
      27                 :            : 
      28                 :            : namespace fv {
      29                 :            : 
      30                 :            : //! MultiMat system of PDEs problem: Euler (inviscid)
      31                 :            : //! \details This class is a no-op, consistent with no additional physics needed
      32                 :            : //!   to make the basic implementation in MultiMat the Euler equations
      33                 :            : //!   governing multi-material compressible flow.
      34                 :            : class MultiMatPhysicsEuler {
      35                 :            : 
      36                 :            :   public:
      37                 :            :     //! Compute the time step size restriction based on this physics
      38                 :            :     //! \return A large time step size, i.e., ignore
      39                 :         50 :     tk::real dtRestriction(
      40                 :            :       const tk::Fields&,
      41                 :            :       std::size_t,
      42                 :            :       const std::vector< int >& ) const
      43                 :         50 :     { return std::numeric_limits< tk::real >::max(); }
      44                 :            : 
      45                 :            :     //! Compute sources corresponding to this physics
      46                 :       1268 :     void physSrc(
      47                 :            :       std::size_t,
      48                 :            :       tk::real,
      49                 :            :       const tk::Fields&,
      50                 :            :       const std::unordered_map< std::size_t, std::set< std::size_t > >&,
      51                 :            :       tk::Fields&,
      52                 :       1268 :       std::vector< int >& ) const {}
      53                 :            : 
      54                 :            :     //! Return enum denoting physics policy
      55                 :            :     //! \return Enum denoting physics policy.
      56                 :      22710 :     static ctr::PhysicsType type() noexcept { return ctr::PhysicsType::EULER; }
      57                 :            : };
      58                 :            : 
      59                 :            : } // fv::
      60                 :            : 
      61                 :            : } // inciter::
      62                 :            : 
      63                 :            : #endif // CompFlowPhysicsFVMultiMatEuler_h

Generated by: LCOV version 1.14