export

<< Click to Display Table of Contents >>

Navigation:  Sample Problems > Usage > Import_Export >

export

Previous pageReturn to chapter overviewNext page

{ EXPORT.PDE  

 

 This sample demonstrates the use of several forms of data export selectors.

 All exports use the default file naming conventions, which append modifiers  

 to the problem name.

 

 A heat flow problem is solved on a square for example purposes.

 

}  

 

title "Demonstrate forms of export"  

 

 

variables  

   Temp                  

 

definitions  

   K = 1                        

   source = 4                    

   Texact = 1-x^2-y^2      

   flux=magnitude(K*grad(Temp))  

 

Initial values  

   Temp = 0                      

 

equations  

   Temp: div(K*grad(Temp)) + source = 0    

 

boundaries                        

  Region 1                      

      start "BDRY" (-1,-1)      

      value(Temp)=Texact        

      line to (1,-1)                

            to (1,1)  

            to (-1,1)  

            to close                

 

monitors  

  contour(Temp)              

 

plots                            

  { this contour plot exports graphic images in five formats: }  

  contour(Temp) EMF EPS SVG PNG JPEG

  { export temperature and flux in NetCDF format }

  cdf(temp,flux)

  { export FlexPDE TABLE format }  

  table(temp)  

  { export temperature and flux in TecPlot format }  

  tecplot(temp,flux)  

  { export temperature and flux in linearized VTK format }  

  vtklin(temp,flux)  

 

 

end