Branch data Line data Source code
1 : : // ***************************************************************************** 2 : : /*! 3 : : \file src/PDE/CompFlow/Problem/RotatedSodShocktube.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 rotated Sod's shock-tube 9 : : \details This file defines a policy class for the compressible flow 10 : : equations, defined in PDE/CompFlow/CompFlow.h. See PDE/CompFlow/Problems.h 11 : : for general requirements on Problem policy classes for CompFlow. 12 : : */ 13 : : // ***************************************************************************** 14 : : #ifndef CompFlowProblemRotatedSodShocktube_h 15 : : #define CompFlowProblemRotatedSodShocktube_h 16 : : 17 : : #include "Types.hpp" 18 : : #include "SodShocktube.hpp" 19 : : 20 : : namespace inciter { 21 : : 22 : : //! CompFlow system of PDEs problem: rotated Sod shock-tube 23 : : //! \see G. A. Sod. A Survey of Several Finite Difference Methods for Systems of 24 : : //! Nonlinear Hyperbolic Conservation Laws. J. Comput. Phys., 27:1–31, 1978. 25 : : class CompFlowProblemRotatedSodShocktube : public CompFlowProblemSodShocktube { 26 : : 27 : : public: 28 : : //! Initialize numerical solution 29 : : static tk::InitializeFn::result_type 30 : : initialize( ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, 31 : : tk::real z, tk::real t ); 32 : : 33 : : //! Return problem type 34 : 4695 : static ctr::ProblemType type() noexcept 35 : 4695 : { return ctr::ProblemType::ROTATED_SOD_SHOCKTUBE; } 36 : : }; 37 : : 38 : : } // inciter:: 39 : : 40 : : #endif // CompFlowProblemRotatedSodShocktube_h