Log an octree to a .vtk file. More...
#include <OctreeLogger.h>
Public Member Functions | |
| OctreeLogger ()=default | |
| Constructor. | |
| ~OctreeLogger ()=default | |
| Destructor. | |
| void | logTree (OctreeNodeWrapper< Particle_T > *wrapper) |
| Write the octree below the wrapper to a .vtk file. | |
| void | logTree (OctreeNodeInterface< Particle_T > *root) |
| This function writes the octree to a .vtk file. | |
Static Public Member Functions | |
| static FILE * | leavesToJSON (FILE *out, std::vector< OctreeLeafNode< Particle_T > * > &leaves) |
| Convert a list of octree leaves to JSON and write it to an output file. | |
| static FILE * | particlesToJSON (FILE *out, OctreeNodeInterface< Particle_T > *root) |
| Print a list of particle positions to a file as JSON. | |
| static void | octreeToJSON (OctreeNodeInterface< Particle_T > *owned, OctreeNodeInterface< Particle_T > *halo, std::vector< OctreeLeafNode< Particle_T > * > &ownedLeaves, std::vector< OctreeLeafNode< Particle_T > * > &haloLeaves) |
| Log the octree to JSON files understandable by https://github.com/AutoPas/OctreeVisualization. | |
Log an octree to a .vtk file.
| Particle_T | The enclosed particle type |
|
inlinestatic |
Convert a list of octree leaves to JSON and write it to an output file.
The output list consists of JSON objects containing the following fields:
"minmax""fn""fnl""en""enl""vn""vnl"| out | A FILE pointer to the file that should contain the JSON data after the operation |
| leaves | A list of octree leaves that are echoed into the JSON file |
|
inline |
This function writes the octree to a .vtk file.
| root | A pointer to the octree root node |
|
inline |
Write the octree below the wrapper to a .vtk file.
| wrapper | A pointer to the octree node wrapper |
|
inlinestatic |
Log the octree to JSON files understandable by https://github.com/AutoPas/OctreeVisualization.
| owned | A pointer to the root node of the owned octree |
| halo | A pointer to the root node of the halo octree |
| ownedLeaves | A list of leaf nodes from the owned octree |
| haloLeaves | A list of leaf nodes from the halo octree |
|
inlinestatic |
Print a list of particle positions to a file as JSON.
The list is obtained from the octree root node.
| out | The FILE pointer to write the JSON to |
| root | The root from which the particles should be obtained |