Field Convert Tecplot Data Format
Hello, I would like to import the output of Nektar++ to numpy array to do some post processing. I was thinking to convert the output to tecplot readable files and then import the results in numpy array format. The problem I'm facing is that the output generated by FieldConvert seems not to be in the classical DATAPACKING=POINT that makes the import straightforward. Do you know if there is any possibility to convert the output in that format or do you have any suggestion to solve my issue? Many Thanks and have a nice weekend! Regards, Riccardo
Hi Riccardo, You could try the Tecplot (or Paraview) Python API. Tecplot has a very good documentation of how to set it up. You would than do something like: import tecplot tecplot.new_layout() dataset=tecplot.data.load_tecplot(filename) At this point you would have the dataset and could do what you want. Best, Stan On pią, 2018-04-20 at 12:57 +0000, Rubini R. wrote:
Hello,
I would like to import the output of Nektar++ to numpy array to do some post processing. I was thinking to convert the output to tecplot readable files and then import the results in numpy array format.
The problem I'm facing is that the output generated by FieldConvert seems not to be in the classical DATAPACKING=POINT that makes the import straightforward.
Do you know if there is any possibility to convert the output in that format or do you have any suggestion to solve my issue?
Many Thanks and have a nice weekend!
Regards, Riccardo _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
Hi Riccardo, in case you are only interested in the plain point data without connectivity information, you can also use FieldConvert to export the data to .csv files at the quadrature points directly: FieldConvert-g case.xml case.fld case.csv The resulting csv files are already formatted to be read by numpy, e.g. np.genfromtxt(fname=fn, names=True, delimiter=',' ) Cheers, Kilian Am Freitag, 20. April 2018, 15:09:02 CEST schrieb Stanisław Gepner:
Hi Riccardo,
You could try the Tecplot (or Paraview) Python API. Tecplot has a very good documentation of how to set it up.
You would than do something like:
import tecplot tecplot.new_layout() dataset=tecplot.data.load_tecplot(filename)
At this point you would have the dataset and could do what you want.
Best, Stan
On pią, 2018-04-20 at 12:57 +0000, Rubini R. wrote:
Hello,
I would like to import the output of Nektar++ to numpy array to do some post processing. I was thinking to convert the output to tecplot readable files and then import the results in numpy array format.
The problem I'm facing is that the output generated by FieldConvert seems not to be in the classical DATAPACKING=POINT that makes the import straightforward.
Do you know if there is any possibility to convert the output in that format or do you have any suggestion to solve my issue?
Many Thanks and have a nice weekend!
Regards, Riccardo _______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
_______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
-- Kilian Lackhove, M.Sc. Fachgebiet für Energie- und Kraftwerkstechnik L1|08 114 Technische Universität Darmstadt Otto-Berndt-Straße 3 D-64287 Darmstadt Germany Tel.: +49 6151 16 - 28915 Fax: +49 6151 16 - 6555 e-mail: lackhove@ekt.tu-darmstadt.de
participants (3)
- 
                
                Kilian Lackhove
- 
                
                Rubini R.
- 
                
                Stanisław Gepner