H5read_field reads an Express field out of an HDF5 file. H5read_time_field is similar to H5read_field except that it reads in all steps of a time-dependent field.
module H5read_time_field<need_objs="Mesh_Unif Mesh_Rect
Time_Mesh_Struct Time_Node_Data Time_Cell_Data"> {
string+Iparam filename;
string+read+IPort2 h5root = "/";
// components/variables
int+IPort2 nodeVars[]; // Node Data components
int+IPort2 cellVars[]; // Cell Data components
// crop parameters (arrays are ndim in size)
int+read+IPort2 min[];
int+read+IPort2 max[];
// downsize parameter
int+read+IPort2 factor[]; // (array is ndim in size)
// When you consider all the possible combinations, e.g.
// Time_Mesh+Node_Data, Mesh+Time_Node_Data, etc., its
// remarkable how minimal the greatest common denominator is.
Cells+Xform+Oparam &outFld {
int nspace;
int nnodes;
int nsteps;
double time[nsteps];
};
omethod+notify_val+notify_inst update<status=1> =
"HDF5read_time_field_update";
};
The basic field reading module. It reads an Express field out of an HDF5 file. Please note that the HDF5 file must be written using a specific set of Express conventions. This is not a tool for importing arbitrary HDF5 files written by 3rd-party applications.The downsize algorithm implemented in the reader is a bit simpler than DVdownsize so the results may not match exactly when comparing the integrated downsize to a seperate downsize module. For example given a dimension 6 points long, a downsize factor 2 will pick points 0,2,4 in the downsize integrated into the reader, but points 0,2,5 in DVdownsize. DVdownsize has some extra logic for picking the outer bounding points that this modulelacks. The crop/downsize parameters have no effect on unstructured fields.H5read_time_field is similar to H5read_field except that it reads in all steps of a time-dependent field. Conceptually the difference between H5read_field and H5read_time_field is in the output ports. H5read_field always ouputs a regular (non-time-dependent) field while H5read_time_field always outputs a time-dependent field.Inputs and Outputs are almost exactly the same as with H5read_field except there is no timeStep parameter and the outFld parameter will always be a time-dependent field.For code samples that show how to write an HDF5 file compatible with this reader see the directory src/hdf5/examp.
modules/advect.cUtility DVM macrosDVMadvect_param, Advect