*/
const char *zone_name;
+ /**
+ * Solution time for each zone in a strand. This value must be non-negative,
+ * otherwise it will not be written to file. Do not assign any value for this
+ * in case of a static zone.
+ */
+ double solution_time;
+
+ /**
+ * A strand is a set of zones that represent the same region of the solution over time.
+ * <tt>strand_id</tt> is an integer value that uniquely identifies each strand.
+ */
+ int strand_id;
+
/**
* Constructor.
*/
TecplotFlags (const char *tecplot_binary_file_name = NULL,
- const char *zone_name = NULL);
+ const char *zone_name = NULL,
+ const double solution_time = -1.0,
+ const int strand_id = 1);
/**
* Return an estimate for the memory consumption, in bytes, of this
TecplotFlags::
TecplotFlags (const char *tecplot_binary_file_name,
- const char *zone_name)
+ const char *zone_name,
+ const double solution_time,
+ const int strand_id)
:
tecplot_binary_file_name(tecplot_binary_file_name),
- zone_name(zone_name)
- {}
+ zone_name(zone_name),
+ solution_time (solution_time),
+ strand_id (strand_id)
+
+ {
+ Assert (strand_id >= 1,
+ ExcMessage("For transient data, strand_id must be > 0"));
+ }
if (flags.zone_name)
out << "t=\"" << flags.zone_name << "\" ";
+ if (flags.solution_time >= 0.0)
+ out << "strandid=" << flags.strand_id << ", solutiontime=" << flags.solution_time <<", ";
+
out << "f=feblock, n=" << n_nodes << ", e=" << n_cells
<< ", et=" << tecplot_cell_type[dim] << '\n';
}