exporting all time steps

Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

exporting all time steps

somotono
I am performing CFD analysis of blood vessels using the Navier-Stokes model in FEATool with time-dependent (transient) simulations.
I would like to visualize the simulation results in ParaView. However, when exporting from the GUI, only a single time step (e.g., the final one) is written in VTK format. I would like to export all time steps so I can examine the full transient solution in ParaView.
Could you kindly let me know how to export all time steps in VTK format, or if there is a way to enable this option in FEATool?
Thank you very much in advance.
Reply | Threaded
Open this post in threaded view
|

Re: exporting all time steps

Precise Simulation
Administrator
The toolbox currently only supports output/export in the VTK Legacy file format which doesn't seem to support time (multiple) solutions. So at present you will have to export one file for every time step, which is most efficiently done at the command line (or as an equivalent Matlab script) after exporting the simulation data (using Export Model Data Struct to MATLAB from the File menu)

expr = fea.dvar;  % Cell array of string expressions to export (here the dependent variables).

for i_sol=1:length(fea.sol.t)
  filename = sprintf( 'path_to_file_%04d.vtk', i_sol );
  impexp_vtk( filename, 'export', fea, expr, i_sol );
end

https://www.featool.com/doc/impexp__vtk_8m

We hope we can support export of time varying data directly from the toolbox GUI also in the future.