Creating Binary File, Problems with Fortran
Hey all,
i try to create my own simple Tecplot binary .plt files with my own Fortran Code. But i face some problems. First of all my Data is just simple ones like this below. Code:
Variables="xdir", "ydir", "zdir", "rel", "mass" Hope you can give me a hint. Here is my Fortran Code as far. The data vector is just for writing and testint the code. Code:
program tecbinary Greetings |
Solution
Ok i solved my problem with "reverse engineering".
i produced a simple .plt file as mentioned in code 1 and converted it with preplot. Then i used a hex editor to compare the produced and my own .plt file. So then i could append my Header to the correct input. Here is my code just for your information, inf anyone other has the same problems. Code:
program binary |
At last i have 1 more problem. As i get my data over loops, with each loop i get for 1 variable 1 value. Binary files need to write all values by variable after each one. I have to try if my Code or writting time will explode when i have to save my data in arrays first.
Otherwise is there any Tecplot function to "inverse" the data matrix or tell it that the data for each variable is not in a row but in a column? (weird difference between ASCII and binary files) Greetings --------- Solution Binary files in Tecplot`s format are not meant to be written POINTwise (=DATAPACKING). |
All times are GMT -4. The time now is 01:55. |