Menu

octant Log in to Edit

moghimis

Octant Installation:

A. download:
Download octant:
svn checkout http://octant.googlecode.com/svn/trunk/ octant-read-only

Download latest version of gridgen:
svn checkout http://gridgen-c.googlecode.com/svn/gridgen gridgen

Download latest version of gridutils:
svn checkout http://gridutils-c.googlecode.com/svn/ gridutils

Download latest version of csa:
svn checkout http://csa-c.googlecode.com/svn/ csa

Download latest version of nn:
svn checkout http://nn-c.googlecode.com/svn/ nn

B. Compile

Do not forget to set all compiler stuff to gcc,g++,gfortran and ...

rename and replace them with old external subs in Octant

  1. make "nn"
    cd nn
    ./configure
    make
    sudo make install

  2. make "csa"
    cd csa
    ./configure
    make
    sudo make install

  3. make "gridutils"
    ./configure
    make
    sudo make install

  4. install newly downloaded gridgen by
    ./configure
    make
    make lib
    make shlib
    sudo make install

check to see the shared lib is there!
e.g. by: ls /usr/local/lib/libgrid*
Inside Octant directory change two things (thanks to Peter Holtermann):

  1. in file grid.py:

self._libgridgen = np.ctypeslib.load_library('_gridgen', octant.path[0])

to below according to the place of the library:

self._libgridgen = np.ctypeslib.load_library('libgridgen', '/usr/local/lib') <

  1. in file csa.py:

_csa = np.ctypeslib.load_library('_csa', octant.path[0])

to below according to the place of the library:

_csa = np.ctypeslib.load_library('_csa','/usr/local/lib/python2.6/dist-packages/octant/')

Compile and install octant
cd ..
cd octant-read-only/
python setup.py build
sudo python setup.py install

C. To Use:
Try Peter nice example from:
http://code.google.com/p/octant/wiki/SimpleSetup

1.Gridgen likes start from upper left corner.
2.End with upper right corner
3.flowing the line trun left beta=1 (counter clockwise)
4.flowing the line trun right beta=-1 (counter clockwise)
5. at interactive grid tools
press:
t : toggle visibility of verticies
d : delete a vertex
i : insert a vertex at a point on the polygon line

    p : set vertex as beta=1 (a Positive turn, marked with green triangle)
    m : set vertex as beta=1 (a Negative turn, marked with red triangle)
    z : set vertex as beta=0 (no corner, marked with a black dot)

    G : generate grid from the current boundary using gridgen
    T : toggle visibility of the current grid

saeed Moghimi
moghimis@gmail.com
Fri 09 Dec 2011 06:43:12 AM CET


Related

Wiki: GETM Utils

Discussion

Anonymous
Anonymous

Add attachments
Cancel