Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
common_io.cpp File Reference

Common IO implementation. More...

#include "common_io.h"
#include "common_typedef.h"

Functions

std::string endianness ()
 Return the endianness of the system for VTU file writing.
 
std::string vtk_float_type ()
 Return the VTK name for the floating point type.
 
uint32_t vtk_local_node (uint32_t n_nodes, uint32_t k)
 Local node of a cell at VTK (and XDMF) position k. Mallard prisms have the (0, 1, 2) normal pointing toward (3, 4, 5); VTK wedges point it away.
 

Detailed Description

Common IO implementation.

Author
Matthew Bonanni (mbona.nosp@m.nni0.nosp@m.01@gm.nosp@m.ail..nosp@m.com)
Version
0.1
Date
2024-01-09

Function Documentation

◆ endianness()

std::string endianness ( )

Return the endianness of the system for VTU file writing.

Returns
std::string

◆ vtk_float_type()

std::string vtk_float_type ( )

Return the VTK name for the floating point type.

Returns
std::string

◆ vtk_local_node()

uint32_t vtk_local_node ( uint32_t  n_nodes,
uint32_t  k 
)

Local node of a cell at VTK (and XDMF) position k. Mallard prisms have the (0, 1, 2) normal pointing toward (3, 4, 5); VTK wedges point it away.