CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

export to Paraview own solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 12, 2006, 11:26
Default export to Paraview own solver
  #1
Nico
Guest
 
Posts: n/a
What format should i use to export to Paraview? I am developing my own solver and i am looking for the best format to use. Paraview has native VTK files, but i could also use Ensight or others. What would be the best choice?

Regards,

Nico
  Reply With Quote

Old   October 12, 2006, 11:44
Default Re: export to Paraview own solver
  #2
Renato.
Guest
 
Posts: n/a
In my opinion, Ensight's format is the easiest to understand, implement and use (even for parallel post-processing). I've put some ParaView stuffs, including the Fortran routines I use to export Ensight's file, available in http://www.nacad.ufrj.br/~rnelias/paraview/

Cheers

Renato.

  Reply With Quote

Old   October 12, 2006, 17:22
Default Re: export to Paraview own solver
  #3
zxaar
Guest
 
Posts: n/a
Where can we find the details of Ensights format, could you provide some links. My solver exports in fieldview, i wish to add more exports to it.
  Reply With Quote

Old   October 12, 2006, 18:59
Default Re: export to Paraview own solver
  #4
Renato.
Guest
 
Posts: n/a
I included the Ensight's format description in the http://www.nacad.ufrj.br/~rnelias/pa...htRoutines.zip file. Take a look ;o)

Regards

Renato.

  Reply With Quote

Old   October 12, 2006, 20:16
Default Re: export to Paraview own solver
  #5
zxaar
Guest
 
Posts: n/a
obrigado pela sua ajuda.
  Reply With Quote

Old   October 13, 2006, 21:08
Default Re: export to Paraview own solver
  #6
phsieh2005
Guest
 
Posts: n/a
Hi Renato,

I would like to export elmer data to VTK format so that I can use paraview to view the results. I have no idea of VTK format. Do you have any fortran code to show how to export data to VTK format? Thanks!

phsieh2005
  Reply With Quote

Old   October 19, 2006, 13:10
Default Re: export to Paraview own solver
  #7
Nico
Guest
 
Posts: n/a
Any ideas why this is not working?, the ascii version is working fine, but when i try binary its crashing paraview.

Regards, Nicolas

integer::vac (1:nct,0:8) Character*80 :: buffer integer::i,j real*4,dimension(,allocatable :: xv,yv,zv allocate(xv(1:nvt),yv(1:nvt),zv(1:nvt) )

!---Write geometry file. engold.geo

ensight_geometry='engold.geo';

Open(1,file=ensight_geometry,form='binary');

buffer='Fortran Binary'; Write(1) buffer;

buffer='Exported from Solver'; Write(1) buffer;

buffer='Nicolas ROUSSELON 2006'; Write(1) buffer;

buffer='node id assign';Write(1) buffer;

buffer='element id assign'; Write(1) buffer;

buffer='part'; Write(1) buffer; i=1; Write(1) i;

buffer='fluid'; Write(1) buffer;

buffer='coordinates'; Write(1) buffer;

!NODES

Write(1) nvt;

Write(1) (xv(i), i=1,nvt)

Write(1) (yv(i), i=1,nvt)

Write(1) (zv(i), i=1,nvt)

!ELEMENTS

buffer='hexa8';Write(1) buffer;

Write(1) nct;

Do j=1,nct

Write(1) (vac(j,i),i=1,vac(j,0)),8

EndDo close(1)
  Reply With Quote

Old   January 17, 2013, 14:51
Default
  #8
New Member
 
Bart Paarhuis
Join Date: Jan 2013
Location: Netherlands
Posts: 2
Rep Power: 0
Bart Paarhuis is on a distinguished road
Hi Renato,

I compiled and ran your testprogram 'fortran_ensight_test' using CVF on Windows XP. But paraview crashes reading the binary files. I tried all available numeric formats for unformatted data (compiler option). But it won't help.

What compiler/system combination did you use?

Thanks,

Bart
Bart Paarhuis is offline   Reply With Quote

Old   January 17, 2013, 16:12
Default
  #9
New Member
 
Bart Paarhuis
Join Date: Jan 2013
Location: Netherlands
Posts: 2
Rep Power: 0
Bart Paarhuis is on a distinguished road
After a lot of trial and error, I finally got the ensight binary files to work with the CVF compiler:
- open(...,form='binary',convert='BIG_ENDIAN') for the geometry and result files instead of open(...,form='unformatted')
- and using 'C Binary' instead of 'Fortran Binary' as the first line in the geometry file
Bart Paarhuis is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCL linear solver for OpenFoam 1.7 (alpha) will come out very soon qinmaple OpenFOAM Announcements from Other Sources 4 August 10, 2012 11:00
different results between serial solver and parallel solver wlt_1985 FLUENT 10 April 11, 2012 15:25
[ICEM] Export mesh for IDEAS solver loic ANSYS Meshing & Geometry 2 July 29, 2011 17:08
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Getting too many iterations by velocity solving (aborting). Changing U - Solver? suitup OpenFOAM Running, Solving & CFD 0 January 20, 2010 08:45


All times are GMT -4. The time now is 16:30.