Output data field in binary serial XML-VTK UnstructuredGrid format.
basename is a string containing the base-name of the (vtu) file where the data will be saved.
mesh is a PDE-tool like mesh, like the ones generated by the "msh" package.
nodedata and celldata are (Ndata x 2) cell arrays containing respectively <PointData> and <CellData> representing scalars or vectors:
Example:
%% generate msh1, node centered field nc1, cell centered field cc1 fpl_vtk_b64_write_field ("example", msh1, {nc1, "temperature"}, {cc1, "density"}); %% generate msh2, node centered field nc2 fpl_vtk_b64_write_field ("example", msh2, {nc2, "temperature"}, {});
The difference between fpl_vtk_write_field
and fpl_vtk_b64_write_field
is that the former saves data in ASCII format while the latter uses base64-encoded
binary format. To save data in un-encoded binary format use fpl_vtk_raw_write_field
.
See also: fpl_dx_write_field, fpl_dx_write_series, fpl_vtk_assemble_series, fpl_vtk_write_field, fpl_vtk_raw_write_field.
Package: fpl