xref: /libCEED/examples/fluids/qfunctions/bc_freestream_type.h (revision d4cc18453651bd0f94c1a2e078b2646a92dafdcc)
1 // Copyright (c) 2017-2026, 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 #pragma once
8 
9 #include "newtonian_state.h"
10 #include "newtonian_types.h"
11 
12 typedef struct FreestreamContext_ *FreestreamContext;
13 struct FreestreamContext_ {
14   struct NewtonianIdealGasContext_ newtonian_ctx;
15   State                            S_infty;
16 };
17 
18 typedef struct OutflowContext_ *OutflowContext;
19 struct OutflowContext_ {
20   struct NewtonianIdealGasContext_ gas;
21   CeedScalar                       recirc;             // amount of recirculation to allow in exterior state [0,1]
22   CeedScalar                       softplus_velocity;  // "width" of the softplus velocity regularization
23   CeedScalar                       pressure;
24   CeedScalar                       temperature;
25 };
26