chombo-discharge
Loading...
Searching...
No Matches
CD_DataParser.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_DATAPARSER_H
14#define CD_DATAPARSER_H
15
16// Chombo includes
17#include <List.H>
18
19// Our includes
20#include <CD_PointParticle.H>
21#include <CD_LookupTable.H>
22#include <CD_Triangle.H>
23#include <CD_NamespaceHeader.H>
24
28namespace DataParser {
29
44 const int a_xColumn = 0,
45 const int a_yColumn = 1,
46 const std::vector<char>& a_ignoreChars = {'#', '/'});
47
66 const int a_xColumn = 0,
67 const int a_yColumn = 1,
68 const std::vector<char>& a_ignoreChars = {'#', '/'});
69
85 const unsigned int a_xColumn = 0,
86 const unsigned int a_yColumn = 1,
87 const unsigned int a_zColumn = 2,
88 const unsigned int a_wColumn = 3,
89 const std::vector<char>& a_ignoreChars = {'#', '/'});
90
109
110} // namespace DataParser
111
112#include <CD_NamespaceFooter.H>
113
114#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:38
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:26
Class for simple data parsing from IO files.
Definition CD_DataParser.H:28
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:27
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:149
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:83
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:221