A Python Implementation of combining Exponential Time Differencing and Pseudo-spectral Methods for Phase-Field Model Equation
Project description
spectralETD
spectralETD is a Python library which combines Exponential Time Differencing and Pseudo-spectral Methods for Phase-Field Model Equation in three dimensions in a GPU-accelerated framework.
Requirements
- Python 3.10 or later
- NumPy is the fundamental package for scientific computing with Python.
- SciPy is a collection of fundamental algorithms for scientific computing in Python.
- Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
- PyTorch is a high-level library for machine learning, with multidimensional tensors that can also be operated on a CUDA-capable NVIDIA GPU.
Optional
- SciencePlots is a Matplotlib styles complement for scientific figures
Time Integration Methods
'IMEX': implicit-explicit Euler method;'IF': Integrating Factor method'ETD': Exponential Time Differencing
Installation
The easiest way to install spectralETD is by using pip:
pip install spectralETD
To install the development version:
pip install git+https://github.com/elvissoares/spectralETD.git
or
git clone https://github.com/elvissoares/spectralETD
cd spectralETD
pip install -e .
Examples
- 1D Advection-Diffusion equation (
DiffusionAdvection1d.ipynb); - 1D Burgers equations (
Burgers1d.ipynb); - 2D Cahn-Hilliard equation (
CH2d.ipynb); - 3D Cahn-Hilliard equation (
CH3d.ipynb);
You can also see some plots and movies of the examples in the examples's folder in the github repository.
Citing spectralETD
If you use spectralETD in your work, please consider to cite it using the following reference:
Soares, E. do A., Barreto, A. G. & Tavares, F. W. Exponential Integrators for Phase-Field Equations using Pseudo-spectral Methods: A Python Implementation. 1–12 (2023). ArXiv: 2305.08998
Bibtex:
@article{Soares2023,
archivePrefix = {arXiv},
arxivId = {2305.08998},
author = {Soares, Elvis do A. and Barreto, Amaro G. and Tavares, Frederico W},
eprint = {2305.08998},
month = {may},
pages = {1--12},
title = {{Exponential Integrators for Phase-Field Equations using Pseudo-spectral Methods: A Python Implementation}},
url = {http://arxiv.org/abs/2305.08998},
year = {2023}
}
Contact
Prof. Elvis do A. Soares
e-mail: elvis@peq.coppe.ufrj.br
Chemical Engineering Program - COPPE
Universidade Federal do Rio de janeiro (UFRJ)
Brazil
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spectraletd-0.0.4.tar.gz.
File metadata
- Download URL: spectraletd-0.0.4.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e0261ef4dbe2400b0d663e2cdc54b51f786d8fc390911f9070c3fbea9936a2e
|
|
| MD5 |
d0da385147daea4d75ab12dc54e7342f
|
|
| BLAKE2b-256 |
c02c67680852cd395faa4cdd983296b91b44dc94d497566550f86d11dda05e5e
|
File details
Details for the file spectraletd-0.0.4-py3-none-any.whl.
File metadata
- Download URL: spectraletd-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9470c8c426df5dd8e2dab5a12d60042c6faec61fe0f07964e027968fa68714d
|
|
| MD5 |
8e47b8317d995bed9509f43b4e68641a
|
|
| BLAKE2b-256 |
eba9d7cf0ce795e7e0d29b37c2435ef14024bc6fbfab88a6086f9f0dd5ae11c9
|