[Nek5000-users] Read Nek output in Matlab

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Nov 2 09:20:57 CDT 2016


Alessandro,

Set, in usrdat2 in your .usr file the following lines:

      param(66)=0
      param(67)=0

this will give you an ascii file output.  blah.fld01  blah.fld02 etc

You can edit these files or write a short script to take off the header or
whatever and then load the data into matlab.

Usual data lay out (for 2D) is:

x y u v p T

for fld01

and 

u v p T

for all other fields.

Paul

________________________________________
From: nek5000-users-bounces at lists.mcs.anl.gov [nek5000-users-bounces at lists.mcs.anl.gov] on behalf of nek5000-users at lists.mcs.anl.gov [nek5000-users at lists.mcs.anl.gov]
Sent: Wednesday, November 02, 2016 7:44 AM
To: nek5000-users at lists.mcs.anl.gov
Subject: [Nek5000-users] Read Nek output in Matlab

Hi Neks,

I would like to make some postprocessing with the Nek output. Can I read
that files in Matlab (or C)?

Just to make it clear: If my .rea file is called whatever.rea and the
output is whatever0.f00****

I would like to read whatever0.f00**** and make some postprocessing. It
will be also very helpful to learn how to extrapolate the mesh so that I
can plot combinations of the solutions for instance.

Thank you so much,

Alessandro


--
Dr Alessandro Alla

Florida State University
Department of Scienfitic Computing
400 Dirac Science Library
Tallahassee FL 32306-4120

Room:   462
Phone:  +1 8506441010

E-Mail: aalla at fsu.edu
Skype: alessandro.alla
www.alessandroalla.com

_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users


More information about the Nek5000-users mailing list