Git Product home page Git Product logo

lib_vtk_io's Introduction

Note: This is a fork from Lib_VTK_IO, made by Stefano Zaghi. The main purpose of this fork is to add reading capabilities to the library by taking as starting point the previous work of Francisco Pena.

Lib_VTK_IO GitHub tag

License

Status Build Status

Lib_VTK_IO, VTK IO in pure Fortran (2003+)

A KISS pure Fortran Library to IO data conforming the VTK standard

  • Lib_VTK_IO is a pure Fortran library to write and read data conforming the VTK standard;
  • Lib_VTK_IO is Fortran 2003+ standard compliant;
  • Lib_VTK_IO supports parallel architectures by means OpenMP and MPI paradigms;
  • Lib_VTK_IO supports ascii, binary and base64 file formats;
  • Lib_VTK_IO is a Free, Open Source Project.

Issues

GitHub issues Ready in backlog In Progress Open bugs

Compiler Support

Compiler

Compiler

Compiler

Compiler

Compiler

Compiler

Copyrights

The Lib_VTK_IO is an open source project, it is distributed under a dual licensing system: the GPL v3 and the MIT licenses. Anyone is interest to use, to develop or to contribute to Lib_VTK_IO is welcome: you are free to select the GPL license for FOSS projects or the MIT one for commercial softwares.

Go to Top

Documentation

Lib_VTK_IO has a comprehensive wiki. Moreover, the API is well documented, on the GitHub pages of the project.

Go to Top

A taste of Lib_VTK_IO

Let us assume our aim being to save our pure Fortran data into a VTK structured grid file in binary XML form. This is simple as

USE Lib_VTK_IO
...
! dataset dimensions
integer, parameter:: nx1=0,nx2=9,ny1=0,ny2=5,nz1=0,nz2=5
integer, parameter:: nn=(nx2-nx1+1)*(ny2-ny1+1)*(nz2-nz1+1)
! grid coordinates
real, dimension(nx1:nx2,ny1:ny2,nz1:nz2):: x,y,z
! variables associated at grid nodes
real, dimension(nx1:nx2,ny1:ny2,nz1:nz2):: v_R
! auxiliary variables
integer:: E_IO
...
E_IO = VTK_INI_XML(output_format='binary',filename='XML_STRG.vts',mesh_topology='StructuredGrid',nx1=nx1,nx2=nx2,ny1=ny1,ny2=ny2,nz1=nz1,nz2=nz2)
E_IO = VTK_GEO_XML(nx1=nx1,nx2=nx2,ny1=ny1,ny2=ny2,nz1=nz1,nz2=nz2,NN=nn,X=x,Y=y,Z=z)
E_IO = VTK_DAT_XML(var_location='node',var_block_action='open')
E_IO = VTK_VAR_XML(NC_NN=nn,varname='real scalar',var=v_R)
E_IO = VTK_DAT_XML(var_location='node',var_block_action='close')
E_IO = VTK_GEO_XML()
E_IO = VTK_END_XML()

Note that all Lib_VTK_IO functions return an error code (E_IO) that can be used for sophisticated error trapping algorithms.

lib_vtk_io's People

Contributors

femparadmin avatar szaghi avatar zhulianhua avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.