Coder Social home page Coder Social logo

cfd-institute / euler2d-kfvs Goto Github PK

View Code? Open in Web Editor NEW
26.0 2.0 12.0 1.36 MB

2D solver for Euler equations in quadrilateral grid, using kinetic flux vector splitting scheme, written in OOP F2003

Home Page: https://github.com/truongd8593/euler2D-kfvs-Fortran2003/wiki

License: MIT License

Fortran 97.76% Makefile 2.24%
modern-fortran fortran2003 oop cfd numerical-methods finite-volume-methods solver scheme euler-equations

euler2d-kfvs's Introduction

euler2D-kfvs-Fortran2003

Euler2D-kfvs-Fortran2003 is a compressible Euler equations solver using kinetic flux vector splitting (KFVS) scheme. It is the successor of my Fortran 95 code euler-2D-kfvs

Some features:

  • Cell centered finite volume method.

  • Unstructured quadrilateral meshes.

  • Kinetic flux vector splitting (KFVS) scheme.

  • Written in Modern Fortran (Fortran 2003). Object-oriented programming has been implemented, mainly in the mesh reader. The solver is kept in Fortran 95 now, to retain its execution speed, which is the major advantage of the Fortran programming language. For further development, maybe I will upgrade the solver to Fortran 2003, in order to integrate new numerical schemes.

  • My code makes use of GMSH as its mesh generator (quadridlateral grid). You need to read the mesh reader of the code (msh_read_gmsh.f90) to understand how to generate a mesh which is suitable for my code.

Euler2D-kfvs-Fortran2003 is inspired by the structured finite volume solver of Prof. Luc Mieussens

More details

Donations:

If you think that any information you obtained here is worth of some money and are willing to pay for it, feel free to send any amount through paypal.

paypal

euler2d-kfvs's People

Contributors

truong-pham-dang 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

Watchers

 avatar  avatar

euler2d-kfvs's Issues

Build errors

Truong,

I am trying to compile the code using the PGI 18.7 compilers and I'm running into an error. I use pgfortran as the compiler and get the following output:

make
pgfortran -c mod_vector_algebra.f90
pgfortran -c mod_read_gmsh.f90
pgfortran -c mod_point_util.f90
pgfortran -c mod_cell_2D.f90
pgfortran -c mod_detect_nearest_neighbor.f90
PGF90-S-0155-detect_neighbor is use associated and cannot be redeclared (mod_detect_nearest_neighbor.f90: 7)
0 inform, 0 warnings, 1 severes, 0 fatal for detect_neighbor
make: *** [mod_detect_nearest_neighbor.o] Error 2

It looks like mod_cell_2D.f90 and mod_detect_nearest_neighbor.f90 both have subroutines "detect_neighbor":

grep detect_neighbor *.f90
mod_cell_2D.f90: procedure :: find_neighbor => detect_neighbor
mod_cell_2D.f90: subroutine detect_neighbor(this)
mod_detect_nearest_neighbor.f90: subroutine detect_neighbor

Is this a bug in the code?

Thank you!

Jeff Layton

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.