Git Product home page Git Product logo

fluid2d's Introduction

Fluid2d

Fluid2d is a versatile Python-Fortran CFD code that solves a large class of 2D flows. It is designed to be used easily by Students learning Fluid Mechanics or Geophysical Fluid Dynamics and by their professors willing to illustrate their course and to organize numerical practicals. The idea is to visualize flows on the fly, as they are computed. The effect of parameter changes can be seen immediately. The key quantity of fluid2D is the vorticity. If you feel weak on vorticity dynamics, this code is for you. You should rapidly become as expert as the experts.

You can learn how basic processes work because of the power of animations. It is quite easy to go beyond textbooks and to reach research questions.

Install

Fluid2d installation does not rely on the standard pip install Fluid2d. The procedure is a bit more convoluted

  1. git clone Fluid2d. To copy-paste from your computer to the virtual desktop, use the copy-paste interactive window on the left

git clone https://github.com/pvthinker/Fluid2d.git

  1. create the conda environment (this step may fail in that case, execute the next step). It takes a few minutes to download everything. It’s a bit a shame to have to download all these packages in your $HOME but that’s how it works.

cd Fluid2d

conda create --name fluid2d --file requirements.txt

if conda create fails

conda init bash

then close the terminal, reopen a new one, module load anaconda3 and repeat the conda

create --name fluid2d --file requirements.txt

That should work.

  1. activate this environment

conda activate fluid2d

  1. you can now build Fluid2d

./install.sh

  1. last step, make Python aware of where Fluid2d is

source ~/.fluid2d/activate.sh

you’re good to run Fluid2d

  1. run your first experiment

cd myexp/Vortex

python vortex.py

Run an experiment

Once the code is installed, you don't need to repeat stage 4).

What you need to do though, every time you run Fluid2d in a new terminal is to repeat stages 3) and 5), then do something like 6) but with another experiment.

fluid2d's People

Contributors

kegelkugel avatar markusreinert avatar pvthinker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fluid2d's Issues

Fortran compilation error on Windows

Sorry, i have problems running the code. If you have some time could you try to help me to fix this problem. I attached the error, which basically occurs when my fortran compiler tries to run fortran_advection.f90. The final output is: "fatal error LNK1112". Any ideas?
Cattura

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.