VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
Utilities.h File Reference
#include <basics/StringUtilities/StringUtil.h>
#include <basics/DataTypes.h>
#include <filesystem>
#include <fstream>
#include <ios>
#include <stdexcept>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  vf
 
namespace  vf::gpu
 

Functions

template<typename T >
std::string vf::gpu::nameComponent (const std::string &name, T value)
 
std::string vf::gpu::makeParallelFileName (const std::string &probeName, int id, int t)
 
std::string vf::gpu::makeGridFileName (const std::string &probeName, int level, int id, int t, uint part)
 
std::string vf::gpu::makeTimeseriesFileName (const std::string &probeName, int level, int id)
 
template<typename T >
constexpr T vf::gpu::computeNewTimeAverage (T oldAverage, T newValue, uint numberOfTimesteps)
 
void vf::gpu::writeTimeseriesFileHeader (const std::string &fileName, int numberOfPoints, std::vector< std::string > &variableNames, const real *coordsX, const real *coordsY, const real *coordsZ)
 
void vf::gpu::appendDataToTimeseriesFile (const std::string &fileName, std::vector< std::vector< real > > &data)
 Write data to timeseries file, that can be read by TimeseriesFileReader. Layout of the file is: TimeseriesOutput Quantities: Quant1 Quant2 Quant3 Positions: point1.x, point1.y, point1.z point2.x, point2.y, point2.z ... t0 point1.quant1 point2.quant1 ... point1.quant2 point2.quant2 ... t1 point1.quant1 point2.quant1 ... point1.quant2 point2.quant2 ...