GEOS
SinglePhaseBaseFields.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 TotalEnergies
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
20 #ifndef GEOS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASEBASEFIELDS_HPP_
21 #define GEOS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASEBASEFIELDS_HPP_
22 
23 #include "mesh/MeshFields.hpp"
24 #include "constitutive/fluid/singlefluid/SingleFluidLayouts.hpp"
25 #include "constitutive/fluid/singlefluid/SingleFluidUtils.hpp"
26 
27 namespace geos
28 {
32 namespace fields
33 {
34 
35 namespace flow
36 {
37 
38 using array2dLayoutFluid = array2d< real64, constitutive::singlefluid::LAYOUT_FLUID >;
39 
40 
41 DECLARE_FIELD( mass,
42  "mass",
43  array1d< real64 >,
44  0,
45  LEVEL_0,
46  WRITE_AND_READ,
47  "Fluid mass" );
48 
49 DECLARE_FIELD( mass_n,
50  "mass_n",
51  array1d< real64 >,
52  0,
53  NOPLOT,
54  NO_WRITE,
55  "Fluid mass at the previous converged time step" );
56 
57 DECLARE_FIELD( dMass,
58  "dMass",
59  array2dLayoutFluid,
60  0,
61  NOPLOT,
62  NO_WRITE,
63  "Derivatives of the fluid mass" );
64 
65 DECLARE_FIELD( massCreated,
66  "massCreated",
67  array1d< real64 >,
68  0,
69  LEVEL_1,
70  WRITE_AND_READ,
71  "The amount of remaining mass that was introduced when the SurfaceElement was created." );
72 
73 DECLARE_FIELD( mobility,
74  "mobility",
75  array1d< real64 >,
76  0,
77  NOPLOT,
78  WRITE_AND_READ,
79  "Mobility" );
80 
81 DECLARE_FIELD( dMobility,
82  "dMobility",
83  array2dLayoutFluid,
84  0,
85  NOPLOT,
86  NO_WRITE,
87  "dMobility" );
88 
89 DECLARE_FIELD( dEnergy,
90  "dEnergy",
91  array2dLayoutFluid,
92  0,
93  NOPLOT,
94  NO_WRITE,
95  "Derivatives of energy" );
96 
97 }
98 
99 }
100 
101 }
102 
103 #endif // GEOS_PHYSICSSOLVERS_FLUIDFLOW_SINGLEPHASEBASEFIELDS_HPP_
#define DECLARE_FIELD(NAME, KEY, TYPE, DEFAULT, PLOTLEVEL, RESTARTFLAG, DESCRIPTION)
Generates a traits struct.
Definition: MeshFields.hpp:39