Coder Social home page Coder Social logo

shahid718 / programming-phase-field-in-fortran Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 4.5 MB

The repository contains phase field codes using index array programming technique. The codes are 2D and are not optimized.

License: MIT License

Fortran 100.00%
phasefield fortran90 gnuplot dislin gfortran intel-fortran-compiler allen-cahn cahn-hilliard dendrite computational-materials-science

programming-phase-field-in-fortran's Introduction

Programming-Phase-field-in-Fortran

The repository shows the use of Fortran programming language for the phase-field methods โ€” model A, model B, and model C. The codes are 2D. Model A ( Allen-Cahn equation ), and Model B ( Cahn-Hilliard ) examples are given; solidification of a single component alloy is also provided.

Output


Significance

  • Sequential code.

  • Self-explanatory comments for each section.

  • Stand-alone codes.

  • Code description in README files.

  • Examples: FeCr alloy for model B; grain evolution for model A.

  • Some of the best programming practices .

    • if statement rather than if then construct
  • Demonstration of concurrent programming technique .

    • Model B example
  • File savings with newunit instrinsic function.

    • Model A example
  • Screen shots for each output code.

  • Data availability for each code.

  • Compiler comparison for further studies.

    • Model B README
  • Instructions for different operating systems.

  • Optimization options.

  • Integrated dislin graphical software in each code:

    • Single statement quick plots.

    • Routines for continuous animation.

    • Multiplot techniques.

  • gnuplot script for output files:

    • Customized color plots.

    • commands for continuous animation.

    • Multiplot approach.

Computational Tools

The simulations were performed on the system with the following details:

OS Compilers and versions Integrated graphics library Output graphics library
Linux (ubuntu 20.04) gfortran (12.1.0) Dislin ( 11.5 ) gnuplot ( 5.4 )
Windows (10, 64 bit) gfortran (12.1.0), intel (2021.6.0) Dislin ( 11.5 ) gnuplot ( 5.4 )

Future work

  • Whole array programming

  • Procedural programming

  • Modular programming

  • Object-oriented programming

  • Parallel programming with

    • Co-arrays
    • OpenMP
    • MPI
  • GPU programming with

    • CUDA Fortran
    • OpenACC

Contact

[email protected]

[email protected]

programming-phase-field-in-fortran's People

Contributors

shahid718 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

python406

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.