<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello<br>
<br>
I don't know how to make this with a command line, but you may read
your ASCII file, then use the menu File->Save Data, select the
VTK file type, and you will have a popup window with some options:<br>
- Data mode: ascii, binary or appended (default).<br>
- Compressor: None (default) or Zlib<br>
<br>
May be this could be automated with a Python script. Browse the
mailing list: there are several subject about converting ascii to
binary.<br>
<br>
Also you make look here for Python vtk writers :
<a class="moz-txt-link-freetext" href="http://certik.github.com/visit_writer/">http://certik.github.com/visit_writer/</a><br>
<br>
Richard<br>
<br>
Le 20/08/2012 20:53, Beichuan Yan a écrit :
<blockquote
cite="mid:D67303F39678724DA65819E042CB36986F8CB105EE@EXC2.ad.colorado.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">Hi
Richard,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">Thank
you for your feedback. While we are hoping that Paraview
developers resolve this problem and accomplish a usable
Tecplot reader, I may rewrite a code to output my data as
legacy .vtk ASCII files.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">May
I ask you a question? it is probably simple: how to convert
a legacy .vtk ASCII file to a binary file. Tecplot provides
such a command line tool, preplot, which compresses data
greatly before loading into Tecplot, otherwise uncompressed
data could eat up all the memory quickly. For my own large
scale simulation of particles, one snapshot generates as
much as 14GB data for Tecplot, and preplot shrinks them to
2GB! I will run Paraview in parallel processing mode, but it
is always optimal to compress ASCII data into binary before
loading them into Paraview.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext">Beichuan
Yan<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:14.0pt;font-family:"Calibri","sans-serif";color:windowtext"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
Richard GRENON [<a class="moz-txt-link-freetext" href="mailto:richard.grenon@onera.fr">mailto:richard.grenon@onera.fr</a>] <br>
<b>Sent:</b> Monday, August 20, 2012 2:52 AM<br>
<b>To:</b> Beichuan Yan; <a class="moz-txt-link-abbreviated" href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] Paraview 3.14.1 Tecplot
Reader Errors<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello.<br>
<br>
Sorry, I made a mistake in my previous mail: I see in the
Tecplot reader help that it should be able to read
unstructured:<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal"><span class="apple-converted-space"><span
style="font-size:13.5pt;font-family:"Arial","sans-serif""> </span></span><span
class="apple-style-span"><span
style="font-size:13.5pt;font-family:"Arial","sans-serif"">The
output of the reader is a vtkMultiBlockDataset, of which
each block is either a vtkStructuredGrid or a
vtkUnstructuredGrid.</span></span><span
class="apple-converted-space"><span
style="font-size:13.5pt;font-family:"Arial","sans-serif""> </span></span><o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
But I never succeeded in reading my own Tecplot unstructured
grids with triangle elements, so I can't help you for this
type of file.<br>
<br>
Also, I had some problems in reading some structured grids
because some Tecplot options in the ZONE card are not
recognized by the reader, and I had to suppress it. The
Tecplot reader should still be improved.<br>
<br>
But if you try again Tecplot files with Structured or
Unstructure grids, don't forget the two header lines for title
and variables.<br>
<br>
Richard.<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre> Richard GRENON<o:p></o:p></pre>
<pre> ONERA<o:p></o:p></pre>
<pre> Departement d'Aerodynamique Appliquee - DAAP/ACI<o:p></o:p></pre>
<pre> 8 rue des Vertugadins<o:p></o:p></pre>
<pre> 92190 MEUDON - FRANCE<o:p></o:p></pre>
<pre> phone : +33 1 46 73 42 17<o:p></o:p></pre>
<pre> fax : +33 1 46 73 41 46<o:p></o:p></pre>
<pre> <a moz-do-not-send="true" href="mailto:Richard.Grenon@onera.fr">mailto:Richard.Grenon@onera.fr</a><o:p></o:p></pre>
<pre> <a moz-do-not-send="true" href="http://www.onera.fr">http://www.onera.fr</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Richard GRENON
ONERA
Departement d'Aerodynamique Appliquee - DAAP/ACI
8 rue des Vertugadins
92190 MEUDON - FRANCE
phone : +33 1 46 73 42 17
fax : +33 1 46 73 41 46
<a class="moz-txt-link-freetext" href="mailto:Richard.Grenon@onera.fr">mailto:Richard.Grenon@onera.fr</a>
<a class="moz-txt-link-freetext" href="http://www.onera.fr">http://www.onera.fr</a>
</pre>
</body>
</html>