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 : : #include "EoS/EOS.hpp" 20 : : 21 : : namespace inciter { 22 : : 23 : : //! CompFlow system of PDEs problem: rotated Sod shock-tube 24 : : //! \see G. A. Sod. A Survey of Several Finite Difference Methods for Systems of 25 : : //! Nonlinear Hyperbolic Conservation Laws. J. Comput. Phys., 27:1–31, 1978. 26 : : class CompFlowProblemRotatedSodShocktube : public CompFlowProblemSodShocktube { 27 : : 28 : : private: 29 : : using ncomp_t = tk::ncomp_t; 30 : : 31 : : public: 32 : : //! Initialize numerical solution 33 : : static tk::InitializeFn::result_type 34 : : initialize( ncomp_t ncomp, const std::vector< EOS >&, 35 : : tk::real x, tk::real y, tk::real z, tk::real t ); 36 : : 37 : : //! Return problem type 38 : 4542 : static ctr::ProblemType type() noexcept 39 : 4542 : { return ctr::ProblemType::ROTATED_SOD_SHOCKTUBE; } 40 : : }; 41 : : 42 : : } // inciter:: 43 : : 44 : : #endif // CompFlowProblemRotatedSodShocktube_h