VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
vf::gpu::FilePartCalculator Class Reference

calculations needed for writing the simulation's output into multiple file parts More...

#include <FilePartCalculator.h>

Static Public Member Functions

static uint calculateNumberOfParts (uint numberOfNodes)
 calculate how many output vtk-files are created for one timestep of the given grid level
 
static uint calculateNumberOfNodesInPart (uint numberOfNodes, uint indexOfFilePart)
 calculate how many grid nodes are written to the file with the given index
 
static uint calculateStartingPostionOfPart (uint indexOfPart)
 

Static Public Attributes

static const uint limitOfNodesForVTK = 30e6
 limits how many grid nodes are written into a single vtk file
 

Detailed Description

calculations needed for writing the simulation's output into multiple file parts

To prevent output files from becoming to large, they are split into multiple part files. For this process some calculations are needed.

Definition at line 44 of file FilePartCalculator.h.

Member Function Documentation

◆ calculateNumberOfNodesInPart()

uint vf::gpu::FilePartCalculator::calculateNumberOfNodesInPart ( uint  numberOfNodes,
uint  indexOfFilePart 
)
static

calculate how many grid nodes are written to the file with the given index

Definition at line 39 of file FilePartCalculator.cpp.

◆ calculateNumberOfParts()

uint vf::gpu::FilePartCalculator::calculateNumberOfParts ( uint  numberOfNodes)
static

calculate how many output vtk-files are created for one timestep of the given grid level

Definition at line 50 of file FilePartCalculator.cpp.

◆ calculateStartingPostionOfPart()

uint vf::gpu::FilePartCalculator::calculateStartingPostionOfPart ( uint  indexOfPart)
static
Returns
index of the first node in this file part

Definition at line 55 of file FilePartCalculator.cpp.

Member Data Documentation

◆ limitOfNodesForVTK

const uint vf::gpu::FilePartCalculator::limitOfNodesForVTK = 30e6
static

limits how many grid nodes are written into a single vtk file

Definition at line 55 of file FilePartCalculator.h.


The documentation for this class was generated from the following files: