VAPOR3 3.9.4
AdvectionIO.h
Go to the documentation of this file.
1/*
2 * Define input/output operations given an Advection.
3 * Specifically, it can read a list of seeds for the advection class to start with,
4 * and also output the trajectory of advectios to a text file.
5 */
6
7#ifndef ADVECTION_IO_H
8#define ADVECTION_IO_H
9
10#include <iostream>
11#include "vapor/Advection.h"
12
13namespace flow {
14// Output a certain number of steps from an advection.
15// When `append == false`, a header will also be output; otherwise, only trajectories are output.
16FLOW_API auto OutputFlowlinesNumSteps(const Advection *adv, const char *filename, size_t numStep, const std::string &proj4string, bool append) -> int;
17
18// Output trajectory to a maximum time.
19// When `append == false`, a header will also be output; otherwise, only trajectories are output.
20FLOW_API auto OutputFlowlinesMaxTime(const Advection *adv, const char *filename, double maxTime, const std::string &proj4string, bool append) -> int;
21
22// Input a list of seeds from lines of CSVs.
23// In case of any error occurs, it returns an empty list.
24FLOW_API auto InputSeedsCSV(const std::string &filename) -> std::vector<flow::Particle>;
25
26}; // namespace flow
27#endif
#define FLOW_API
Definition: common.h:75
Definition: Advection.h:15
FLOW_API auto InputSeedsCSV(const std::string &filename) -> std::vector< flow::Particle >
FLOW_API auto OutputFlowlinesMaxTime(const Advection *adv, const char *filename, double maxTime, const std::string &proj4string, bool append) -> int
FLOW_API auto OutputFlowlinesNumSteps(const Advection *adv, const char *filename, size_t numStep, const std::string &proj4string, bool append) -> int