35#include <cuda_runtime.h>
36#include <helper_cuda.h>
115 for (
unsigned int i = 0;
i < para->
getParH(
lev)->numberOfNodes;
i++) {
141 std::vector<real *> data = { para->
getParH(
lev)->turbulenceIntensity.data() };
142 std::vector<std::string> datanames = {
"ti" };
151 std::vector<std::string> datanames = {
"vxx",
"vyy",
"vzz" };
158 std::vector<real *> data = { para->
getParH(
lev)->vx_mean,
161 std::vector<std::string> datanames = {
"vx_mean",
"vy_mean",
"vz_mean" };
169 std::vector<real *> data = { para->
getParH(
lev)->vxx,
175 para->
getParH(
lev)->turbulenceIntensity.data() };
176 std::vector<std::string> datanames = {
"vxx",
"vyy",
"vzz",
"vx_mean",
"vy_mean",
"vz_mean",
"ti" };
182 std::vector<std::string> &datanames)
187 std::for_each(datanames.begin(), datanames.end(), [&names](
const std::string &
s) { return names +=
"_" + s; });
189 StringUtil::toString<int>(timestep) + names +
"_ti.txt";
190 const char *fname =
ffname.c_str();
200 for (
auto name : datanames)
ostr <<
"\t" << name;
void cudaFreeTurbulenceIntensity(int lev)
void cudaCopyTurbulenceIntensityHD(int lev, uint size)
void cudaCopyTurbulenceIntensityDH(int lev, uint size)
void cudaAllocTurbulenceIntensity(int lev, uint size)
Class for LBM-parameter management.
int getMyProcessID() const
std::shared_ptr< LBMSimulationParameter > getParH(int level) const
Pointer to instance of LBMSimulationParameter - stored on Host System.
std::string getFName() const
std::shared_ptr< T > SPtr
void writeTurbulenceIntensityToFile(Parameter *para, uint timestep)
void writeTiStuffToFile(Parameter *para, uint timestep, unsigned long long sizeOfTiArray, std::vector< real * > &data, std::vector< std::string > &datanames)
void calcVelocityAndFluctuations(Parameter *para, CudaMemoryManager *cudaMemoryManager, uint tdiff)
void calcTurbulenceIntensity(Parameter *para, CudaMemoryManager *cudaMemoryManager, uint tdiff)
void writeVeloMeansToFile(Parameter *para, uint timestep)
void allocTurbulenceIntensity(Parameter *para, CudaMemoryManager *cudaMemoryManager)
void writeAllTiDatafToFile(Parameter *para, uint timestep)
void resetVelocityFluctuationsAndMeans(Parameter *para, CudaMemoryManager *cudaMemoryManager)
void writeVeloFluctuationToFile(Parameter *para, uint timestep)
void cudaFreeTurbulenceIntensityArrays(Parameter *para, CudaMemoryManager *cudaMemoryManager)