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_Triangle.H>
22#include <CD_NamespaceHeader.H>
23
27namespace DataParser {
28
42 const int a_xColumn = 0,
43 const int a_yColumn = 1,
44 const std::vector<char> a_ignoreChars = {'#', '/'});
45
63 const int a_xColumn = 0,
64 const int a_yColumn = 1,
65 const std::vector<char> a_ignoreChars = {'#', '/'});
66
81 const unsigned int a_xColumn = 0,
82 const unsigned int a_yColumn = 1,
83 const unsigned int a_zColumn = 2,
84 const unsigned int a_wColumn = 3,
85 const std::vector<char> a_ignoreChars = {'#', '/'});
86
105
106} // namespace DataParser
107
108#include <CD_NamespaceFooter.H>
109
110#endif
Declaration of a table for looking up coefficients etc.
Declaration of a computational point particle.
Header file for a simple Triangle class.
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:27
std::vector< std::shared_ptr< Triangle > > readTriangles(const std::string a_filename, const std::string a_vertexDataIdentifier)
Read a PLY or VTK triangle mesh file and return a list of Triangle objects.
Definition CD_DataParser.cpp:220
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:26
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:148
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:82