xref: /honee/qfunctions/bc_freestream_type.h (revision 45101827a72e1dfba25c19c9e7c2f41a3f45f828)
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 freestream_bc_type_h
9 #define freestream_bc_type_h
10 
11 #include "newtonian_state.h"
12 #include "newtonian_types.h"
13 
14 typedef struct FreestreamContext_ *FreestreamContext;
15 struct FreestreamContext_ {
16   struct NewtonianIdealGasContext_ newtonian_ctx;
17   State                            S_infty;
18 };
19 
20 typedef struct OutflowContext_ *OutflowContext;
21 struct OutflowContext_ {
22   struct NewtonianIdealGasContext_ gas;
23   CeedScalar                       recirc;             // amount of recirculation to allow in exterior state [0,1]
24   CeedScalar                       softplus_velocity;  // "width" of the softplus velocity regularization
25   CeedScalar                       pressure;
26   CeedScalar                       temperature;
27 };
28 
29 #endif
30