Giter Site home page Giter Site logo

flo2d's Introduction

The flo solver requires GMRES library. Get double precision version from here

http://www.cerfacs.fr/algor/Softs/GMRES/

Put the file dPackgmres.f in directory flo2d/gmres

You also need Tapenade to compile the code. Get it from here

http://www-sop.inria.fr/tropics/tapenade/downloading.html

Set the variable TAPENADE_HOME to point to your Tapenade installation.

Compile the flo solver

cd src-flo
make flo2d

Compile the adjoint solver

cd src-flo
make adj2d

Compile deformation code

cd src-utl
make
-------------------------------------------------------------------------------
Grid file format

<No of points>   <No of triangles>   <No of boundary edges>
1    x1    y1
.    .     .
.    .     .
.    .     .
.    .     .
1    a1    b1   c1
.    .     .    .
.    .     .    .
.    .     .    .
.    .     .    .
.    .     .    .
1    a1    b1   typ1
.    .     .    .
.    .     .    .
.    .     .    .

Node numbering starts from one (fortran style)

In each triangle, the nodes (a1,b1,c1) are ordered counter-clockwise.

For each boundary edge, when you move from node a1 to node b1, the computational domain lies to your left.

Boundary edge types:

Solid wall = 3
farfield   = 5
-------------------------------------------------------------------------------
Running the code

Setup flo.in file with all parameters.
Copy flo.gnu to the directory where you want to run the code.
Run the flo2d

$ /path/to/flo2d flo.in
-------------------------------------------------------------------------------
Post processing

View domain and grid

$ gnuplot grid.gnu

The file flo.png is updated with some result as the code is running.

gnuplot> set size ratio -1
gnuplot> p 'FLO.P' w l,'BD.DAT' w l
gnuplot> p 'FLO.M' w l,'BD.DAT' w l

View FLO.vtk in mayavi/visit/paraview.

There is a mayavi python script: plot_mayavi.py

flo2d's People

Stargazers

 avatar

Watchers

 avatar

Forkers

liujiamingustc

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.