FiberBundleHDF5  FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
Loading...
Searching...
No Matches
F5B.h File Reference
#include "hdf5inc.h"
#include "F5types.h"
#include "F5Bchart.h"
#include "F5F.h"
#include <time.h>
#include "F5WinDLLApi.h"

Go to the source code of this file.

Data Structures

struct  _F5_TimeParameter
struct  _TimeTableEntry

Macros

#define F5_TIMESLICE_NAME_LENGTH   (64-8)

Typedefs

typedef struct _F5_TimeParameter F5_TimeParameter
typedef struct _TimeTableEntry TimeTableEntry

Enumerations

enum  F5_TimeSemantics {
  UNSPECIFIED , UNITLESS , NANOSECONDS , MICROSECONDS ,
  MILLISECONDS , SECONDS , MINUTES , HOURS ,
  DAYS , YEARS , MEGAYEARS , ELECTRONVOLTS ,
  METRES
}

Functions

F5_API hid_t F5Bcreate_timetable_type (void)
F5_API hsize_t F5Bappend_timetable (hid_t loc_id, hid_t timetable_type_location_id, const TimeTableEntry *TTE, hsize_t append_dims)
F5_API hsize_t F5Bget_timetable_size (hid_t loc_id)
hsize_t F5Bread_timetable (hid_t loc_id, TimeTableEntry *TTE, hsize_t table_size)
F5_API F5_TimeParameterF5BnewTimeParameter (void)
F5_API void F5deleteTimeParameter (F5_TimeParameter **)
F5_API int F5setTimeUnit (hid_t file_id, const F5_TimeParameter *)
F5_API int F5getTimeUnit (hid_t file_id, F5_TimeParameter *)
F5_API char * F5I_timegroup (const double *time, char *destbuf, size_t len)
F5_API hid_t F5Bappend_timeslice (hid_t file_id, const F5_TimeParameter *time)
F5_API hid_t F5Bappend_slice (hid_t file_id, const double *time)
F5_API F5PathF5Binitialize_path (hid_t File_id)
F5_API hid_t F5BgetMostRecentSlice (double *t, hid_t FileID, const char **time_attrib_names)
F5_API hid_t F5BgetMostRecentFileSlice (double t, const char *filename)
F5_API hid_t F5BgetGridVertexData (hid_t SliceID, const char *gridname, const char *chartname, const char *fieldname)
F5_API void F5Bswap_dims (int dimensions, const hsize_t *in, hsize_t *out)
 Swap from C array order to Fortran array order and back.

Variables

F5_API const char * F5_default_time_attrib_names []

Macro Definition Documentation

◆ F5_TIMESLICE_NAME_LENGTH

#define F5_TIMESLICE_NAME_LENGTH   (64-8)

Definition at line 67 of file F5B.h.

Referenced by F5Bcreate_timetable_type(), and F5I_add_grid().

Typedef Documentation

◆ F5_TimeParameter

Definition at line 65 of file F5B.h.

Enumeration Type Documentation

◆ F5_TimeSemantics

Enumerator
UNSPECIFIED 

No specification at all for time

UNITLESS 

The time is in free units, i.e. all units involved can be scaled freely

NANOSECONDS 
MICROSECONDS 
MILLISECONDS 
SECONDS 
MINUTES 
HOURS 
DAYS 
YEARS 
MEGAYEARS 
ELECTRONVOLTS 
METRES 

The time unit is the duration that it takes light to travel one meter

Definition at line 21 of file F5B.h.

22{
23 /** No specification at all for time */
25 /** The time is in free units, i.e. all units involved can be scaled freely */
30 SECONDS,
31 MINUTES,
32 HOURS,
33 DAYS,
34 YEARS,
37
38 /** The time unit is the duration that it takes light to travel one meter */
39 METRES
40
F5_TimeSemantics
Definition F5B.h:22
@ MILLISECONDS
Definition F5B.h:29
@ NANOSECONDS
Definition F5B.h:27
@ METRES
Definition F5B.h:39
@ MINUTES
Definition F5B.h:31
@ HOURS
Definition F5B.h:32
@ YEARS
Definition F5B.h:34
@ SECONDS
Definition F5B.h:30
@ UNSPECIFIED
Definition F5B.h:24
@ UNITLESS
Definition F5B.h:26
@ MICROSECONDS
Definition F5B.h:28
@ MEGAYEARS
Definition F5B.h:35
@ DAYS
Definition F5B.h:33
@ ELECTRONVOLTS
Definition F5B.h:36

Function Documentation

◆ F5Bswap_dims()

F5_API void F5Bswap_dims ( int dimensions,
const hsize_t * in,
hsize_t * out )

Swap from C array order to Fortran array order and back.

Parameters
dimensionsNumber of dimensions.
inInput vector.
outOutput vector.

Use it like

hsize_t c_dims[FIBER_MAX_RANK];
F5order_swap (3, dims, c_dims);
id = F5Screate_simple (...);
#define FIBER_MAX_RANK
Definition F5defs.h:105

Definition at line 230 of file F5B.c.

231{
232int i;
233
234 for (i = 0; i < dimensions; i++) {
235 out[i] = in[dimensions - 1 - i];
236 }
237}

Variable Documentation

◆ F5_default_time_attrib_names

F5_API const char* F5_default_time_attrib_names[]
extern

Definition at line 10 of file F5Bslice.c.

10 { "time", "Time", "TIME", 0 };

Referenced by F5BgetMostRecentFileSlice().