5
Inside the freefem++ script load "iovtk" //load library of vtk savevtk("stream_line"+i+".vtk", th, [u1, u2,0], p); // saves vtk file for each iteration. Next with Paraview Open vtk file. Apply

Insidethe’freefem++’script’ savevtk(stream line+i+.vtk,’th ...+/uploads/Main/paraview_freefem_english.pdf · ParaView 3.14.1 32-bit File Edit View Sources Filters Tools Macros

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Insidethe’freefem++’script’ savevtk(stream line+i+.vtk,’th ...+/uploads/Main/paraview_freefem_english.pdf · ParaView 3.14.1 32-bit File Edit View Sources Filters Tools Macros

Inside  the  freefem++  script  

load  "iovtk"                  //load    library  of  vtk    

savevtk("stream_line"+i+".vtk",  th,  [u1,  u2,0],  p);    //  saves    vtk  file  for  each  iteration.  

 

Next  with  Paraview  

Open  vtk  file.  

 

Apply  

 

Page 2: Insidethe’freefem++’script’ savevtk(stream line+i+.vtk,’th ...+/uploads/Main/paraview_freefem_english.pdf · ParaView 3.14.1 32-bit File Edit View Sources Filters Tools Macros

 

filter  by  “cell  data  point  data”  

 

Apply,  press  now    stream  tracer  icon,  to  generate  the  stream  lines.  

Page 3: Insidethe’freefem++’script’ savevtk(stream line+i+.vtk,’th ...+/uploads/Main/paraview_freefem_english.pdf · ParaView 3.14.1 32-bit File Edit View Sources Filters Tools Macros

 

ends  up  like:  

 

Select  now  source  as  line  instead  of  a  point  (deffect  choice)    

Page 4: Insidethe’freefem++’script’ savevtk(stream line+i+.vtk,’th ...+/uploads/Main/paraview_freefem_english.pdf · ParaView 3.14.1 32-bit File Edit View Sources Filters Tools Macros

 

Shows  the  line  trough  which  it  computes  the  stream  lines  

 

 apply.  

Page 5: Insidethe’freefem++’script’ savevtk(stream line+i+.vtk,’th ...+/uploads/Main/paraview_freefem_english.pdf · ParaView 3.14.1 32-bit File Edit View Sources Filters Tools Macros

 

Next  “play”  and  reproduce  the  steps.