1 // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3 // 4 // SPDX-License-Identifier: BSD-2-Clause 5 // 6 // This file is part of CEED: http://github.com/ceed 7 8 #ifndef newtonian_types_h 9 #define newtonian_types_h 10 11 #include <ceed.h> 12 13 #include "stabilization_types.h" 14 15 typedef enum { 16 STATEVAR_CONSERVATIVE = 0, 17 STATEVAR_PRIMITIVE = 1, 18 } StateVariable; 19 20 typedef struct NewtonianIdealGasContext_ *NewtonianIdealGasContext; 21 struct NewtonianIdealGasContext_ { 22 CeedScalar lambda; 23 CeedScalar mu; 24 CeedScalar k; 25 CeedScalar cv; 26 CeedScalar cp; 27 CeedScalar g[3]; 28 CeedScalar c_tau; 29 CeedScalar Ctau_t; 30 CeedScalar Ctau_v; 31 CeedScalar Ctau_C; 32 CeedScalar Ctau_M; 33 CeedScalar Ctau_E; 34 CeedScalar dt; 35 CeedScalar ijacobian_time_shift; 36 CeedScalar P0; 37 bool is_implicit; 38 StateVariable state_var; 39 StabilizationType stabilization; 40 }; 41 42 typedef struct { 43 CeedScalar pressure; 44 CeedScalar velocity[3]; 45 CeedScalar temperature; 46 } StatePrimitive; 47 48 typedef struct SetupContext_ *SetupContext; 49 struct SetupContext_ { 50 StatePrimitive reference; 51 struct NewtonianIdealGasContext_ gas; 52 CeedScalar lx; 53 CeedScalar ly; 54 CeedScalar lz; 55 CeedScalar time; 56 }; 57 58 #endif // newtonian_types_h 59