Hello all,
The code in the (
http://basilisk.fr/sandbox/hiroumi/tecplot/) is using the "tecio" library if I am not mistaken. For a simpler data output (ASCII) in Tecplot, I just put everything in the center of the cell. Then, I use a simple header file,
variables = x, y, f, u, v, ...
ZONE
N = [point numbers], E = [cell numbers]
DATAPACKING = BLOCK, ZONETYPE = FEQUADRILATERAL
VARLOCATION = (NODAL, NODAL, CELLCENTERED, CELLCENTERED, ...) \\ only x and y are NODAL, others are CELLCENTERED
SOLUTIONTIME = [time of the solution]
The [point numbers] will be the [cell numbers] multiply by 4 (N=4*E). In this sense, you will have a cell connectivity itself and do not need to engage the complexity of VTK format. For each cell there will be 4 points; thus, if it is doing in order the connectivity will be
1 2 3 4
5 6 7 8
...
Note that I use BLOCK format here, so we shall have separate loops for each variable.
And, lastly, for the "vof" interface finding I did these steps:
2. Find the interface points based on [n] and [alpha]. At the same time, find the number of intersection edges.
3. The header will be
variables = x, y
ZONE
N = 3*[number of intersection edges], E = [number of intersection edges], DATAPACKING = BLOCK, ZONETYPE = FETRIANGLE
PASSIVEVARLIST = [3-10]
SOLUTIONTIME = [time of the solution]
4. Then, for each element, the first point, then the second point and then the first point again should be written to close the element for Tecplot.
5. The connectivity is the easy part,
1 2 3
4 5 6
...
Best to all
Regards
Hossain