26 double operator*()
const
46 :
Export(participantName, location,
mesh, kind, frequency, rank, size) {};
76 const bool is3d = (
_mesh->getDimensions() == 3);
79 outFile <<
"PosX;PosY";
84 for (
const auto &data :
_mesh->data()) {
85 if (data->timeStepsStorage().empty()) {
88 auto dataName = data->getName();
89 auto dim = data->getDimensions();
90 outFile <<
';' << dataName;
92 outFile <<
"X;" << dataName <<
'Y';
93 }
else if (dim == 3) {
94 outFile <<
"X;" << dataName <<
"Y;" << dataName <<
'Z';
101 for (
const auto &data :
_mesh->data()) {
102 if (data->timeStepsStorage().empty()) {
105 auto dim = data->getDimensions();
106 double const *values = data->timeStepsStorage().last().sample.values.data();
107 for (
int i = 0; i < dim; ++i) {
114 const auto size =
_mesh->nVertices();
116 const auto &vertex =
_mesh->vertex(vid);
117 outFile << vertex.coord(0) <<
';';
118 outFile << vertex.coord(1);
120 outFile <<
";" << vertex.coord(2);
123 for (
auto &dc : dataColumns) {
124 outFile <<
';' << *dc;
#define PRECICE_TRACE(...)
#define PRECICE_ASSERT(...)
ExportCSV(std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
void doExport(int index, double time) final override
Export the mesh and writes files.
void exportSeries() const final override
Export(std::string_view participantName, std::string_view location, const mesh::Mesh &mesh, ExportKind kind, int frequency, int rank, int size)
std::string _participantName
const mesh::Mesh *const _mesh
bool keepExport(int index) const
std::string formatIndex(int index) const
Container and creator for meshes.
T create_directories(T... args)
provides Import and Export of the coupling mesh and data.
provides Mesh, Data and primitives.
contains the time interpolation logic.