37#include <cuda_runtime.h>
38#include <helper_cuda.h>
69 for (
unsigned int it = 0;
it < para->
getParH(
lev)->geometryBC.numberOfBCnodes;
it++)
82 para->
getParH(
lev)->DragLiftVectorInXdirection.push_back(
CDX);
83 para->
getParH(
lev)->DragLiftVectorInYdirection.push_back(
CDY);
84 para->
getParH(
lev)->DragLiftVectorInZdirection.push_back(
CDZ);
100 printf(
"\n number of elements for drag and lift = %d \n", para->
getParH(
lev)->geometryBC.numberOfBCnodes);
112 std::string
ffname = para->
getFName()+StringUtil::toString<int>(para->
getMyProcessID())+
"_"+StringUtil::toString<int>(timestep)+
"_DragLift.txt";
113 const char* fname =
ffname.c_str();
122 for (
size_t i = 0;
i < para->
getParH(
lev)->DragLiftVectorInXdirection.size();
i++)
void cudaAllocDragLift(int lev, int numofelem)
void cudaFreeDragLift(int lev)
void cudaCopyDragLift(int lev, int numofelem)
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
unsigned int getTimestepEnd() const
std::shared_ptr< T > SPtr
void calcDragLift(Parameter *para, CudaMemoryManager *cudaMemoryManager, int lev)
Calculate drag and lift for a geometry.
void printDragLift(Parameter *para, CudaMemoryManager *cudaMemoryManager, int timestep)
void allocDragLift(Parameter *para, CudaMemoryManager *cudaMemoryManager)