chombo-discharge
Loading...
Searching...
No Matches
CD_DataParser.H
Go to the documentation of this file.
1/* chombo-discharge
2 * Copyright © 2021 SINTEF Energy Research.
3 * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4 */
5
12#ifndef CD_DataParser_H
13#define CD_DataParser_H
14
15// Chombo includes
16#include <List.H>
17
18// Our includes
19#include <CD_PointParticle.H>
20#include <CD_LookupTable.H>
21#include <CD_NamespaceHeader.H>
22
26namespace DataParser {
27
41 const int a_xColumn = 0,
42 const int a_yColumn = 1,
43 const std::vector<char> a_ignoreChars = {'#', '/'});
44
62 const int a_xColumn = 0,
63 const int a_yColumn = 1,
64 const std::vector<char> a_ignoreChars = {'#', '/'});
65
80 const unsigned int a_xColumn = 0,
81 const unsigned int a_yColumn = 1,
82 const unsigned int a_zColumn = 2,
83 const unsigned int a_wColumn = 3,
84 const std::vector<char> a_ignoreChars = {'#', '/'});
85
86} // namespace DataParser
87
88#include <CD_NamespaceFooter.H>
89
90#endif
Declaration of a table for looking up coefficients etc.
Declaration of a computational point particle.
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:25
Class for simple data parsing from IO files.
Definition CD_DataParser.H:26
LookupTable1D< Real, 1 > simpleFileReadASCII(const std::string a_fileName, const int a_xColumn=0, const int a_yColumn=1, const std::vector< char > a_ignoreChars={'#', '/'})
Simple file parser which reads a file and puts the data into two columns (a lookup table).
Definition CD_DataParser.cpp:25
List< PointParticle > readPointParticlesASCII(const std::string a_fileName, const unsigned int a_xColumn=0, const unsigned int a_yColumn=1, const unsigned int a_zColumn=2, const unsigned int a_wColumn=3, const std::vector< char > a_ignoreChars={'#', '/'})
Simple file parser which will read particles (position/weight) from an ASCII file.
Definition CD_DataParser.cpp:147
LookupTable1D< Real, 1 > fractionalFileReadASCII(const std::string a_fileName, const std::string a_startRead, const std::string a_stopRead, const int a_xColumn=0, const int a_yColumn=1, const std::vector< char > a_ignoreChars={'#', '/'})
Simple ASCII file parser which reads a file and puts the data into two columns (a lookup table)
Definition CD_DataParser.cpp:81