
[Sponsors] 
June 4, 2014, 09:50 

#21 
New Member
wen long
Join Date: May 2012
Posts: 29
Rep Power: 13 
Open mat2tecplot.m in a text editor, search for "magic number"
which is the version number, change to earlier version Wen 

June 4, 2014, 11:26 
mat2tecplot.m

#22 
New Member
nacera
Join Date: Feb 2014
Posts: 4
Rep Power: 12 
Hi wen,
I have a tecplot version 10, what is the earlier version of TDV that I will add it. Thanks 

June 4, 2014, 12:32 

#23 
New Member
wen long
Join Date: May 2012
Posts: 29
Rep Power: 13 
Try TDV010 or TDV100


June 4, 2014, 13:04 

#24 
New Member
nacera
Join Date: Feb 2014
Posts: 4
Rep Power: 12 
I have another problem when I put TDV100 and TDV010. The TDV100 give error as : "out of space while allocating var names" and /invalid header in binary datafile" and "unable to read binary datafile header.
The TDV010 give error as: unexpected end of file in datafile header 

June 4, 2014, 13:28 

#25 
New Member
wen long
Join Date: May 2012
Posts: 29
Rep Power: 13 
Oops, that means you would have to experiment a bit, the binary file format may have been changed from 10.0 to 11.0.
not sure what exactly your line of the magic number looks like unless you post it also try "#!TDV101" which means 10.1 or "!TDV75 " for version 7.5 notice there is a space after 75 

June 4, 2014, 14:29 

#26 
New Member
nacera
Join Date: Feb 2014
Posts: 4
Rep Power: 12 
I've tested (TDV101 and TDV75 ), but they give the same error as TDV100. all older versions TDV105 give the same error


June 5, 2014, 11:53 

#27 
Senior Member
Scott Rumage
Join Date: May 2009
Location: Seattle, WA
Posts: 152
Rep Power: 16 
I do believe you will need to upgrade your Tecplot license to the new version, as the option to use “Preplot” does not apply to the mat2tecplot.m application.
Preplot is used to convert Tecplot ASCII formatted data to Tecplot binary formatted data – which is not the situation for the use of mat2tecplot.m Here is a link to the product page on Preplot (and TecIO) if you want to learn more about this application: http://www.tecplot.com/downloads/teciolibrary/ . BTW – Preplot is already installed on your computer in the Tecplot 360 “bin” folder. Contact Tecplot via the email  sales at Tecplot dot com  to get your license upgraded. Scott 

July 30, 2014, 17:43 

#28 
Senior Member
Scott Rumage
Join Date: May 2009
Location: Seattle, WA
Posts: 152
Rep Power: 16 
Tecplot intern Devon Simpson has written a blog that provides a script and data showing how to use Wen Long’s Mat2Tecplot.m converter. The blog is located here: http://www.tecplot.com/blog/2014/07/28/createtecplotformatfilesmatlabdata/ .
Regards, Scott 

December 12, 2014, 10:38 

#29 
Member
amine
Join Date: Jun 2012
Posts: 65
Rep Power: 13 
Hello Sarah,
i have data which is updating (iterating method) as isotherms computing in matlab(its updating until we reach the convergence creteria) my question is : how to get the last image in tecplot file (.plt)??? Thank you so much 

December 12, 2014, 16:05 
What version of Tecplot are you using

#30 
Member

Hi nacera,
What version of Tecplot are you using? Durrell 

December 30, 2014, 12:36 
how can i visualize isotherms and streamlines using this way?

#31 
Member
amine
Join Date: Jun 2012
Posts: 65
Rep Power: 13 
Hello,
Could any one tell us how to use this way to visualize isotherms and streamlines in 2Dimensions. Thank you 

December 30, 2014, 12:51 
Check out the videos at the link below

#32  
Member

Quote:
Isotherms can be produced via our contour groups and using a surface contour. Check out some the videos on using Tecplot here http://www.tecplot.com/products/tecp...deotutorials/ Best Durrell 

February 2, 2015, 08:38 
Superpose two matlab figures or more in one figure like these

#33 
Member
amine
Join Date: Jun 2012
Posts: 65
Rep Power: 13 
Hello and thank you so much for your quick reply
what i am intresting in is how to put many contours on the same matlab's figure? like these below: look to one of these figures ,please let's choose the first one on the left, did you observe that on the first contour (dashed lines), there's another one but with (solid lines). how can i make the same thing??? NB: no way to imagesc them at the same time on the matlab code, we obtain these contours one by one .... so i thinking about export them (2 contours or more) together to tecplot wishing make the necessary postprocessing treatment in order to get the same result Thanks 

February 27, 2015, 21:39 

#34  
New Member
Join Date: Feb 2010
Posts: 5
Rep Power: 16 
Quote:
I have tried to do as you but unfortunately, it failed to generate the tecplot file. My code as following: tdata=[]; tdata.Nvar=5; %number of variables tdata.vformat = 2*ones(1,tdata.Nvar); %Double precision for each variable (optional) tdata.varnames={'X','Y','Z','TEMP','TEMP_GRADIENT_ NON_UNITY'}; tdata.cubes(1).zonename='TEMP_GRADIENT_NON_UNITY'; %any name %tdata.cubes(1).zonename=eval('TEMP_GRADIENT_NON_U NITY'); %any name tdata.cubes(1).x=X; tdata.cubes(1).y=Y; tdata.cubes(1).z=Z; tdata.cubes(1).v(1,:,:,: )=TEMP; tdata.cubes(1).v(2,:,:,: )=TEMP_GRADIENT_NON_UNITY; mat2tecplot(tdata,'TEMP_GRADIENT_NON_UNITY.plt') I have gotten the following error: Error : cube 1 v 2nd, 3rd, 4th dimension must be of the same size as x, y, z To your knwledge, my domain is 201*201*201 

February 28, 2015, 14:45 

#35  
New Member
Join Date: Feb 2013
Posts: 4
Rep Power: 13 
Quote:
It seems that the sizes of your arrays are not the same. Here is the error display lines in the script: if(Imax_v~=Imax  Jmax_v~=Jmax  Kmax_v ~= Kmax) s=1; display(['Error : cube ' int2str(icube) ' v 2nd, 3rd, 4th dimension']); display([' must be of the same size as x, y, z']); Are you sure that your arrays (including x, y, z) are all 3D with the same size? 

March 1, 2015, 02:47 

#36  
New Member
Join Date: Feb 2010
Posts: 5
Rep Power: 16 
Quote:
%TEMP_GRADIENT_NON_UNITY = strcat(outputAddress,TEMP_GRADIENT_NON_UNITY_name) ; %The output name and address tdata=[]; tdata.Nvar=5; %number of variables tdata.vformat = 2*ones(1,tdata.Nvar); %Double precision for each variable (optional) tdata.varnames={'X','Y','Z','TEMP','TEMP_GRADIENT_ NON_UNITY'}; tdata.cubes(1).zonename='TEMP_GRADIENT_NON_UNITY'; %any name %tdata.cubes(1).zonename=eval('TEMP_GRADIENT_NON_U NITY'); %any name tdata.cubes(1).x=X; tdata.cubes(1).y=Y; tdata.cubes(1).z=Z; tdata.cubes(1).v(1,:,:,=TEMP; tdata.cubes(1).v(2,:,:,=TEMP_GRADIENT_NON_UNITY; mat2tecplot(tdata,'TEMP_GRADIENT_NON_UNITY.plt') 

March 1, 2015, 10:14 

#37 
New Member
Join Date: Feb 2013
Posts: 4
Rep Power: 13 
What I see here is that X, Y, Z are 201*1, you need them to be 201*201*201 like TEMP. First, use "meshgrid" function to convert X, Y, Z to rectangular grid. It should work then.


March 1, 2015, 14:52 

#38 
New Member
Join Date: Feb 2010
Posts: 5
Rep Power: 16 

March 24, 2015, 16:21 
error in this line: function name(inputs)

#39  
Member
amine
Join Date: Jun 2012
Posts: 65
Rep Power: 13 
Hello,
Thank you for the good explanation! i tried this but did'nt work!!! function name(inputs) > error in this could you show us a program as an example, where did you write this part of program in your code??? Thank you again. Quote:


April 9, 2015, 16:14 

#40 
New Member
wen long
Join Date: May 2012
Posts: 29
Rep Power: 13 
lbmagis
You seem to not understanding that: tecplot data file does not contain information about "contours", it is designed to have the data that the contours should be based on. So instead of trying to put "contours" into the data file, just put in the original data. Contours are viewable once you have the data file in .plt format and open it in tecplot software. Plus: post your code directly so that we can help Wen 

Thread Tools  Search this Thread 
Display Modes  

