This page is a little different respect to the others of this wiki;
It is meant to collect software that I developed for certain general or specific purposes, and that can be useful
to others working in similar fields.

You can download, use, modify the source codes under the GNU General Public Licence.
I wrote these codes with certain goals in mind, and I cannot guarantee that they will work
at all times and without problems.


  • 3D HEXA and WEDGE Mesh generator (for volumes with topography).
  • This is the first version. More options will be added with time.

  1. Download from: mmesh3d.wikispaces.com/

  • A simple grid generator for structured grids (HEXA and WEDGE) with topography on the lower surface.
  • It prints 2 output files: as follows
  • 3Dstructured_mesh.vtk for plotting with a VTK reader
  • 3Dstructured_mesh.msh with the structure shown below



spain_HEXA_4kmres.jpg
lower surface of the meshed volume


prism_onion_peal.jpg
world.jpg

south-easternUSAbottomView.jpg

ELEMENTS
 iel node1 node2 node3 node4 node5 node6 node7 node8
...
END_ELEMENTS
COORDINATES
 icoord Xi Yi Zi
END_COORDINATES




  • 2D_structured_rectangular_gridGen: Mesh generator:
  • A very simple grid generator for structured grids (QUADS and TRI):
  • It prints 2 output files: as follows
  • 2Dstructured_mesh.vtk for plotting with a VTK reader
  • 2Dstructured_mesh.msh with the structure shown below

ELEMENTS
 iel node1 node2 node3 node4
...
END_ELEMENTS
COORDINATES
 icoord Xi Yi
END_COORDINATES
 




  • mesh_RCM: Library to renumber a computational mesh with the Reverse Cuthill-McKee algorithm:
  • Based on the library in C++ by Prof. John Burkardt, this is the C-version of the orginial triangulation_rcm.C
  • and quad_mesh_rcm.C (you can find the C++ and Matlab originals here ).
  • "[[file/view/Quad_RCM_Cversion.tar.gz|Quad_RCM_Cversion.tar.gz]]" and "[[file/view/Triangulation_RCM_Cversion.tar.gz|Triangulation_RCM_Cversion.tar.gz]]" are written in ansi C.

Usage:
1) Have the connectivity and coordinate files within the working directory.
 They must be named with a common prefix followed by a lower dash
 (e.g. quad_conn.txt and quad_coords.txt). The executable accepts the prefix string
 in argument ("quad") only.
 




  • "gir2vtk" : simple translator from the output format of Dr. Giraldo's 2D unstructured mesh generator to VTK
  • The code is written in C and can be compiled following the README file instructions.
  • gir2VTK.tar.gz


  • NEW 3D extension! "meteoIni V1.0" : 3D Meteorological Initialization Tool:
  • Ask me for the source code. I am still adjusting certain issues but the basic is ready to go.

bolita3d_20000.jpg bolita3d_10000.jpg




"meteoIni" is a simple software written for the initialization of the thermodynamic fields that standard benchmarks in Numerical Weather Prediction testing use.
  • When testing a new dynamic core, standard tests are to be run and results compared against the literature or existing models; the initialization can be done, provided that the user has its own computational mesh available, with meteoIni.

  • I wrote the code for my own research, but I hope others can take advantage of this "recompilation" of initial fields for their own solver.

  • A user guide comes with the package (*.tar.gz below) and can also be found at:
  • http://upc.academia.edu/SimoneMarras/Papers

  • The source can be downloaded also from
  • http://upc.academia.edu/SimoneMarras/Teaching


  • - NEWS on meteoIni: with the updated version V1.1 there will be the ability to read an input_sounding file with a predefined field
  • - NEWS on meteoIni: Version 1.1 Development:
  • "meteoIni V1.1 Development version" (still under enhancement but read for sounding reading)
  • MeteoIni_1.1Dev.tar.gz



  • "BIBGENERATOR: this code is a command-line tool to append a new bibtex entry to your bibtex file (*.bib) without having to enter each entry by hand."



The entries are standard:
@article{john2002,
   author = {{John},V.},
   title = {Higher order finite element methods and multigrid solvers in a benchmark problem for the 3D Navier-Stokes equations},
   journal = {Int. J. Numer. Meth. Fluids},
   year  = {2002},
   volume  = {40},
   pages  = {775-798},
},
 
@book{liepmannRoshko,
   author = {{Liepmann},H. and {Roshko},A.},
   title = {Elements of Gasdynamics},
   publisher = {Dover Publications Inc.},
   edition  = {2nd},
   year  = {2001},
},
 
etc.
See README inside the directory for instructions.


  • Bash scripts for CDO (Climate Data Operator): for data analysis using CDO 1.0.8
  • CDOroutines.tar.gz

The bash scripts downloadable here are a collections of scripts that use the software CDO to analyze atmospheric data from NetCDF files.
These scripts were written for version 1.0.8 of CDO; the following versions renamed certain functions that would be in conflict with these routines. You may try them to see if they still work with newer versions (I didn't try that).

Unfortunately, I don't have a user manual or an explanation of these scripts, however, every scripts can be run (command-line) without arguments, and
information on its use should be printed on screen (see example below).I apologize for the incompleteness of this.

Ex. on information about the use of a certain script:
 >> ./select_region
 
! ##################################################
! # IMPORTANT NOTE:
! # This script extracts the region that you want to
! # analize.
! #
! # All your dated files must me merged into a single one
! # That will be your input file
! ##################################################
!
! Syntax error. Correct syntax:
! > select_region [inputfile] [region]
!
! where:
! - [inputfile] = input file. N.B. Is one single file with
!                   all the data and time steps in it.
! - [region] = choose among:
!    * all (in case you want to compute all in one execution)
!     * world
!     * north_atlantic
!     * europe
!    * NEE (North Eastern Europe)
!    * NEU (Northern Europe and Scandinavia)
!     * mediterranean
!     * USA
!       * ...
!-----------------------------------------------------
 
When I wrote them I wasn't thinking of use from others. I still think they may be useful to someone using an old version of CDO.









Applicable to all software downloadable from this page:
 
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.