Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jitinnair1/hello-again-phasefield
simple implementation of classical diffusion equation and spinodal decomposition solvers in C
https://github.com/jitinnair1/hello-again-phasefield
c cahn-hilliard phase-field vtk
Last synced: about 2 months ago
JSON representation
simple implementation of classical diffusion equation and spinodal decomposition solvers in C
- Host: GitHub
- URL: https://github.com/jitinnair1/hello-again-phasefield
- Owner: jitinnair1
- License: mit
- Created: 2019-07-04T17:18:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T16:38:18.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T19:36:00.536Z (3 months ago)
- Topics: c, cahn-hilliard, phase-field, vtk
- Language: C
- Homepage:
- Size: 162 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This repo has simple implementations of classical diffusion equation and spinodal decomposition solvers in C. For examples implemented in MATLAB, [check out this repo](https://github.com/jitinnair1/hello-phasefield)I have learned a lot looking at other people's code. I am posting my code here so that somebody starting out could use this as a template to build upon or to tinker around to understand what is happening.
# Build and Use Instructions
Use the following commands in your terminal:```bash
git clone [email protected]:jitinnair1/hello-again-phasefield.git
cd hello-again-phasefield && mkdir build && cd build
cmake ..
make
```Once the project is built, you will find the excutables under the `bin` folder. To run the executable use `./` followed by the name of the executable like:
```bash
./diffusion_eqn_explicit
```This will generate an output folder with `.vtk` files which can be opened using [ParaView](https://www.paraview.org/download/)
# a word of caution
This code was written at a time when I had just started learning C. So this code is not optimised for performance. Please create an issue if you encountered errors or unexpected behavior.