xref: /honee/qfunctions/advection_types.h (revision ebab716eb45d2bf9619e7746a247fec39a147336)
1 // Copyright (c) 2017-2023, 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 advection_types_h
9 #define advection_types_h
10 
11 #include <ceed.h>
12 #include "stabilization_types.h"
13 
14 typedef enum {
15   WIND_ROTATION    = 0,
16   WIND_TRANSLATION = 1,
17 } WindType;
18 
19 // Advection - Initial Condition Types
20 typedef enum {
21   ADVECTIONIC_BUBBLE_SPHERE   = 0,  // dim=3
22   ADVECTIONIC_BUBBLE_CYLINDER = 1,  // dim=2
23   ADVECTIONIC_COSINE_HILL     = 2,  // dim=2
24   ADVECTIONIC_SKEW            = 3,
25 } AdvectionICType;
26 
27 // Advection - Bubble Continuity Types
28 typedef enum {
29   BUBBLE_CONTINUITY_SMOOTH     = 0,  // Original continuous, smooth shape
30   BUBBLE_CONTINUITY_BACK_SHARP = 1,  // Discontinuous, sharp back half shape
31   BUBBLE_CONTINUITY_THICK      = 2,  // Define a finite thickness
32 } BubbleContinuityType;
33 
34 typedef struct AdvectionContext_ *AdvectionContext;
35 struct AdvectionContext_ {
36   CeedScalar        CtauS;
37   CeedScalar        strong_form;
38   CeedScalar        E_wind;
39   bool              implicit;
40   StabilizationType stabilization;
41 };
42 
43 #endif /* ifndef advection_types_h */
44