Quinoa all test code coverage report
Current view: top level - PDE/CompFlow/Physics - CGNavierStokes.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/CompFlow/Physics/CGNavierStokes.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 Navier-Stokes equation using continuous
       9                 :            :     Galerkin
      10                 :            :   \details   This file declares a Physics policy class for the compressible
      11                 :            :     single-material viscous flow equations using continuous Galerkin
      12                 :            :     discretization, defined in PDE/CompFlow/CGCompFlow.h. The class defined here
      13                 :            :     is used to configure the behavior of CGCompFlow. See
      14                 :            :     PDE/CompFlow/Physics/CG.h for general requirements on Physics policy classes
      15                 :            :     for CGCompFlow.
      16                 :            : */
      17                 :            : // *****************************************************************************
      18                 :            : #ifndef CompFlowPhysicsCGNavierStokes_h
      19                 :            : #define CompFlowPhysicsCGNavierStokes_h
      20                 :            : 
      21                 :            : #include <array>
      22                 :            : #include <limits>
      23                 :            : 
      24                 :            : #include "Fields.hpp"
      25                 :            : #include "Inciter/Options/Physics.hpp"
      26                 :            : 
      27                 :            : namespace inciter {
      28                 :            : 
      29                 :            : namespace cg {
      30                 :            : 
      31                 :            : //! CompFlow system of PDEs problem: Navier-Stokes (viscous flow)
      32                 :            : //! \details This class adds the viscous force contributions to the momentum and
      33                 :            : //!    energy conservation equations governing compressible flow.
      34                 :            : class CompFlowPhysicsNavierStokes {
      35                 :            : 
      36                 :            :   public:
      37                 :            :     //! Add viscous stress contribution to momentum and energy rhs
      38                 :            :     void
      39                 :            :     viscousRhs( tk::real dt,
      40                 :            :                 tk::real J,
      41                 :            :                 const std::array< std::size_t, 4 >& N,
      42                 :            :                 const std::array< std::array< tk::real, 3 >, 4 >& grad,
      43                 :            :                 const std::array< std::array< tk::real, 4 >, 5 >& u,
      44                 :            :                 const std::array< const tk::real*, 5 >& r,
      45                 :            :                 tk::Fields& R ) const;
      46                 :            : 
      47                 :            :     //! Compute the minimum time step size based on the viscous force
      48                 :            :     tk::real
      49                 :            :     viscous_dt( tk::real L,
      50                 :            :                 const std::array< std::array< tk::real, 4 >, 5 >& u ) const;
      51                 :            : 
      52                 :            :     //! Add heat conduction contribution to the energy rhs
      53                 :            :     void
      54                 :            :     conductRhs( tk::real dt,
      55                 :            :                 tk::real J,
      56                 :            :                 const std::array< std::size_t, 4 >& N,
      57                 :            :                 const std::array< std::array< tk::real, 3 >, 4 >& grad,
      58                 :            :                 const std::array< std::array< tk::real, 4 >, 5 >& u,
      59                 :            :                 const std::array< const tk::real*, 5 >& r,
      60                 :            :                 tk::Fields& R ) const;
      61                 :            : 
      62                 :            :     //! Compute the minimum time step size based on thermal diffusion
      63                 :            :     tk::real
      64                 :            :     conduct_dt( tk::real L,
      65                 :            :                 tk::real g,
      66                 :            :                 const std::array< std::array< tk::real, 4 >, 5 >& u ) const;
      67                 :            : 
      68                 :            :     //! Return phsyics type
      69                 :      25740 :     static ctr::PhysicsType type() noexcept
      70                 :      25740 :     { return ctr::PhysicsType::NAVIERSTOKES; }
      71                 :            : };
      72                 :            : 
      73                 :            : } // cg::
      74                 :            : 
      75                 :            : } // inciter::
      76                 :            : 
      77                 :            : #endif // CompFlowPhysicsCGNavierStokes_h

Generated by: LCOV version 1.14