rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Toggle main menu visibility
Loading...
Searching...
No Matches
TransientPlasmaChannelSolver.h
Go to the documentation of this file.
1
// TransientPlasmaChannelSolver: assembles [Empty1D, PlasmaChannel1D, Empty1D]
2
// into a Sim1D and advances it with implicit Backward-Euler, recording the
3
// radial profiles at a chosen cadence. Returns flat numeric arrays.
4
5
#ifndef RIZER_TRANSIENT_PLASMA_CHANNEL_SOLVER_H
6
#define RIZER_TRANSIENT_PLASMA_CHANNEL_SOLVER_H
7
8
#include "
PlasmaChannel1D.h
"
9
10
#include <string>
11
#include <vector>
12
#include <cstddef>
13
14
namespace
rizer
{
15
16
struct
ChannelOptions
{
17
PlasmaChannelConfig
cfg
;
18
double
dt
= 1.0e-9;
19
std::size_t
n_steps
= 1000;
21
std::size_t
record_every
= 1;
22
int
loglevel
= 0;
30
std::string
integrator
=
"newton"
;
31
};
32
33
struct
ChannelHistory
{
34
std::vector<double>
t
;
35
std::vector<double>
r
;
36
std::vector<double>
Tg
;
38
std::vector<double>
Te
;
40
std::vector<double>
ne
;
42
std::vector<double>
Y
;
44
std::vector<std::string>
species
;
46
std::size_t
nframes
= 0;
47
std::size_t
npts
= 0;
48
std::size_t
nsp
= 0;
49
};
50
59
ChannelHistory
solveChannelTransient
(
const
ChannelOptions
& opts);
60
61
}
// namespace rizer
62
63
#endif
PlasmaChannel1D.h
rizer
Definition
CollisionModel.cpp:7
rizer::solveChannelTransient
ChannelHistory solveChannelTransient(const ChannelOptions &opts)
Build a PlasmaChannel1D from opts.cfg, advance it from t=0 to [s] with the requested backend (opts....
Definition
TransientPlasmaChannelSolver.cpp:115
rizer::ChannelHistory
Definition
TransientPlasmaChannelSolver.h:33
rizer::ChannelHistory::ne
std::vector< double > ne
Electron number density [1/m^3], row-major [nframes, npts].
Definition
TransientPlasmaChannelSolver.h:40
rizer::ChannelHistory::npts
std::size_t npts
Number of radial grid points [-].
Definition
TransientPlasmaChannelSolver.h:47
rizer::ChannelHistory::t
std::vector< double > t
Recorded times [s], length nframes.
Definition
TransientPlasmaChannelSolver.h:34
rizer::ChannelHistory::species
std::vector< std::string > species
Species names, length nsp (order matches the Y axis).
Definition
TransientPlasmaChannelSolver.h:44
rizer::ChannelHistory::nsp
std::size_t nsp
Number of species [-].
Definition
TransientPlasmaChannelSolver.h:48
rizer::ChannelHistory::Y
std::vector< double > Y
Species mass fractions [-], row-major [nframes, npts, nsp].
Definition
TransientPlasmaChannelSolver.h:42
rizer::ChannelHistory::r
std::vector< double > r
Radial grid [m], length npts.
Definition
TransientPlasmaChannelSolver.h:35
rizer::ChannelHistory::nframes
std::size_t nframes
Number of recorded time frames [-].
Definition
TransientPlasmaChannelSolver.h:46
rizer::ChannelHistory::Tg
std::vector< double > Tg
Gas temperature [K], row-major [nframes, npts].
Definition
TransientPlasmaChannelSolver.h:36
rizer::ChannelHistory::Te
std::vector< double > Te
Electron temperature [K], row-major [nframes, npts].
Definition
TransientPlasmaChannelSolver.h:38
rizer::ChannelOptions
Definition
TransientPlasmaChannelSolver.h:16
rizer::ChannelOptions::loglevel
int loglevel
Diagnostic verbosity [-] (0 = silent; >0 prints progress).
Definition
TransientPlasmaChannelSolver.h:22
rizer::ChannelOptions::integrator
std::string integrator
Time-integration backend:
Definition
TransientPlasmaChannelSolver.h:30
rizer::ChannelOptions::n_steps
std::size_t n_steps
Number of output steps [-] (dt*n_steps = total time [s]).
Definition
TransientPlasmaChannelSolver.h:19
rizer::ChannelOptions::cfg
PlasmaChannelConfig cfg
Domain physics + initial/boundary state.
Definition
TransientPlasmaChannelSolver.h:17
rizer::ChannelOptions::dt
double dt
Output cadence / initial step [s].
Definition
TransientPlasmaChannelSolver.h:18
rizer::ChannelOptions::record_every
std::size_t record_every
Record a frame every N output steps [-].
Definition
TransientPlasmaChannelSolver.h:21
rizer::PlasmaChannelConfig
Definition
PlasmaChannel1D.h:108
rizer
cantera_ext
src
TransientPlasmaChannelSolver.h
Generated by
1.17.0