EasyFEA 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- EasyFEA-0.0.0/LICENSE +21 -0
- EasyFEA-0.0.0/PKG-INFO +7 -0
- EasyFEA-0.0.0/README.md +82 -0
- EasyFEA-0.0.0/pyproject.toml +14 -0
- EasyFEA-0.0.0/setup.cfg +4 -0
- EasyFEA-0.0.0/setup.py +2 -0
- EasyFEA-0.0.0/src/EasyFEA/__init__.py +0 -0
- EasyFEA-0.0.0/src/EasyFEA.egg-info/PKG-INFO +7 -0
- EasyFEA-0.0.0/src/EasyFEA.egg-info/SOURCES.txt +9 -0
- EasyFEA-0.0.0/src/EasyFEA.egg-info/dependency_links.txt +1 -0
- EasyFEA-0.0.0/src/EasyFEA.egg-info/top_level.txt +1 -0
EasyFEA-0.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-2024 Matthieu Noel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files, to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
EasyFEA-0.0.0/PKG-INFO
ADDED
EasyFEA-0.0.0/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# EasyFEA - Easy Finite Element Analysis
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
EasyFEA is a user-friendly Python library that simplifies finite element simulations. It is flexible and supports different types of simulation without requiring users to handle complex PDE formulations. The library currently supports four specific types of simulation:
|
|
6
|
+
|
|
7
|
+
1. **Elastic (static and dynamic):** Examples in `/codes/Elasticity` and `/codes/Dynamic`.
|
|
8
|
+
2. **Beam structure (static Euler-Bernoulli):** Examples in `/codes/Beam`.
|
|
9
|
+
3. **Thermal (stationary and transient):** Examples in `/codes/Thermal`.
|
|
10
|
+
4. **Damage (quasi-static phase field):** Examples in `/codes/PhaseField`.
|
|
11
|
+
|
|
12
|
+
For each simulation, users create a mesh and a model. Once the simulation is set up, defining boundary conditions, solving the problem, and visualizing the results is straightforward.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Step 1 - Install Python Libraries:
|
|
17
|
+
|
|
18
|
+
Ensure that your Python version is between 3.9 and 3.11.
|
|
19
|
+
|
|
20
|
+
The following libraries are required:
|
|
21
|
+
|
|
22
|
+
- `numpy`
|
|
23
|
+
- `scipy`
|
|
24
|
+
- `matplotlib`
|
|
25
|
+
- `gmsh` >= 4.12.0
|
|
26
|
+
- `numba` (3.5.x <= Python < 3.12)
|
|
27
|
+
- `pandas` (3.9 <= Python <= 3.12)
|
|
28
|
+
|
|
29
|
+
For detailed information on installing `numba`, refer to the [Numba Installation Guide](https://numba.readthedocs.io/en/stable/user/installing.html#numba-support-info).
|
|
30
|
+
|
|
31
|
+
Optional Libraries (Recommended for improved resolution time):
|
|
32
|
+
|
|
33
|
+
- `pypardiso` (Python > 3.8 & Intel oneAPI)
|
|
34
|
+
- `petsc` and `petsc4py`
|
|
35
|
+
- `mumps` and `mpi4py`
|
|
36
|
+
- `scikit-umfpack` (Python >= 3.9)
|
|
37
|
+
- `scikits-sparse` (3.6 <= Python <= 3.12)
|
|
38
|
+
|
|
39
|
+
### Step 2 - Add the EasyFEA Modules to Python Path:
|
|
40
|
+
|
|
41
|
+
#### On macOS:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
export PYTHONPATH="$PYTHONPATH:folder/EasyFEA/modules" # Add this to .zprofile
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### On Linux:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
export PYTHONPATH=$PYTHONPATH:folder/EasyFEA/modules # Add this to .bash_aliases
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### On Windows:
|
|
54
|
+
|
|
55
|
+
- Modify system variables -> environment variables -> user variables
|
|
56
|
+
- Add `folder/EasyFEA/modules` to PYTHONPATH.
|
|
57
|
+
|
|
58
|
+
Note: Replace "folder" with the directory where EasyFEA is installed.
|
|
59
|
+
|
|
60
|
+
### Optional: Build Gmsh Yourself
|
|
61
|
+
|
|
62
|
+
If you need to build Gmsh yourself, follow these steps:
|
|
63
|
+
|
|
64
|
+
1. Install OpenCascade: `sudo port install opencascade`.
|
|
65
|
+
2. Install FLTK: `sudo port install fltk`.
|
|
66
|
+
3. Clone the Gmsh project from [https://gitlab.onelab.info/gmsh/gmsh](https://gitlab.onelab.info/gmsh/gmsh).
|
|
67
|
+
4. Build Gmsh:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
cd gmsh
|
|
71
|
+
mkdir build
|
|
72
|
+
cd build
|
|
73
|
+
cmake -DCMAKE_INSTALL_PREFIX=/Applications/gmsh-install -DENABLE_BUILD_DYNAMIC=1 ..
|
|
74
|
+
make
|
|
75
|
+
make install
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
5. Add the path to `gmsh.py`:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
export PYTHONPATH="$PYTHONPATH:/Applications/gmsh-install/lib"
|
|
82
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ['setuptools']
|
|
3
|
+
build-backend = 'setuptools.build_meta'
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "EasyFEA"
|
|
7
|
+
version = "0.0.0"
|
|
8
|
+
description = "Coming soon"
|
|
9
|
+
authors = [
|
|
10
|
+
{name = "Matthieu Noel", email = "matthieu.noel7@gmail.com"},
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
[project.urls]
|
|
14
|
+
Homepage = "https://github.com/matnoel/EasyFEA"
|
EasyFEA-0.0.0/setup.cfg
ADDED
EasyFEA-0.0.0/setup.py
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
EasyFEA
|