BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
cl_GT_Arguments.hpp
Go to the documentation of this file.
1
/*
2
* BELFEM -- The Berkeley Lab Finite Element Framework
3
* Copyright (c) 2026, The Regents of the University of California,
4
* through Lawrence Berkeley National Laboratory (subject to receipt of any required
5
* approvals from the U.S. Dept. of Energy). All rights reserved.
6
*
7
* Developers: Christian Messe, Gregory Giard
8
*
9
* See the top-level LICENSE file for the complete license and disclaimer.
10
*/
11
12
#ifndef BELFEM_CL_GT_ARGUMENTS_HPP
13
#define BELFEM_CL_GT_ARGUMENTS_HPP
14
15
#include "
typedefs.hpp
"
16
#include "
cl_Arguments.hpp
"
17
#include "
GT_globals.hpp
"
18
19
namespace
belfem
20
{
21
namespace
gastables
22
{
23
enum class
State
24
{
25
PrintHelp
= 0,
26
PrintTable
= 1,
27
PrintUsage
= 2,
28
PrintBanner
= 3,
29
Undefined
= 4
30
};
31
32
//------------------------------------------------------------------------------
33
41
class
Arguments
:
public
belfem::Arguments
42
{
43
State
mState =
State::Undefined
;
44
real
mTmin = 200.0;
45
real
mTmax = 2000.0;
46
real
mDeltaT = 50.0;
47
string
mGasName =
"N2"
;
48
bool
mMolarFlag =
false
;
49
50
//------------------------------------------------------------------------------
51
public
:
52
//------------------------------------------------------------------------------
53
54
Arguments
(
int
& argc,
char
* argv[] );
55
56
//------------------------------------------------------------------------------
57
58
~Arguments
() =
default
;
59
60
//------------------------------------------------------------------------------
61
62
const
State
&
63
state
()
const
;
64
65
//------------------------------------------------------------------------------
66
67
const
real
&
68
T_min
()
const
;
69
//------------------------------------------------------------------------------
70
71
const
real
&
72
T_max
()
const
;
73
74
//------------------------------------------------------------------------------
75
76
const
real
&
77
delta_T
()
const
;
78
79
//------------------------------------------------------------------------------
80
81
const
string
&
82
gasname
()
const
;
83
84
//------------------------------------------------------------------------------
85
86
bool
87
molar
()
const
;
88
89
//------------------------------------------------------------------------------
90
protected
:
91
//------------------------------------------------------------------------------
92
93
void
94
check_arguments
();
95
96
//------------------------------------------------------------------------------
97
};
98
//------------------------------------------------------------------------------
99
100
101
//------------------------------------------------------------------------------
102
}
103
}
104
#endif
//BELFEM_CL_GT_ARGUMENTS_HPP
GT_globals.hpp
cl_Arguments.hpp
belfem::Arguments
Command-line argument parsing.
Definition
cl_Arguments.hpp:27
belfem::gastables::Arguments::delta_T
const real & delta_T() const
Definition
cl_GT_Arguments.cpp:120
belfem::gastables::Arguments::T_max
const real & T_max() const
Definition
cl_GT_Arguments.cpp:112
belfem::gastables::Arguments::molar
bool molar() const
Definition
cl_GT_Arguments.cpp:136
belfem::gastables::Arguments::state
const State & state() const
Definition
cl_GT_Arguments.cpp:96
belfem::gastables::Arguments::T_min
const real & T_min() const
Definition
cl_GT_Arguments.cpp:104
belfem::gastables::Arguments::gasname
const string & gasname() const
Definition
cl_GT_Arguments.cpp:128
belfem::gastables::Arguments::Arguments
Arguments(int &argc, char *argv[])
Definition
cl_GT_Arguments.cpp:22
belfem::gastables::Arguments::~Arguments
~Arguments()=default
belfem::gastables::Arguments::check_arguments
void check_arguments()
Definition
cl_GT_Arguments.cpp:34
belfem::gastables
Definition
cl_Gas.hpp:33
belfem::gastables::State
State
Definition
cl_GT_Arguments.hpp:24
belfem::gastables::State::PrintHelp
@ PrintHelp
Definition
cl_GT_Arguments.hpp:25
belfem::gastables::State::PrintUsage
@ PrintUsage
Definition
cl_GT_Arguments.hpp:27
belfem::gastables::State::PrintTable
@ PrintTable
Definition
cl_GT_Arguments.hpp:26
belfem::gastables::State::Undefined
@ Undefined
Definition
cl_GT_Arguments.hpp:29
belfem::gastables::State::PrintBanner
@ PrintBanner
Definition
cl_GT_Arguments.hpp:28
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::real
double real
Definition
typedefs.hpp:36
typedefs.hpp
src
physics
gastables
cl_GT_Arguments.hpp
Generated by
1.18.0