README.md 991 Bytes
Newer Older
Andreas Zilian's avatar
Andreas Zilian committed
1
2
3
# mafe
Educational MATLAB framework for finite element analysis of structures

Andreas Zilian's avatar
Andreas Zilian committed
4
5
6
- static linear analysis
- dynamic linear analysis in frequency and time domain

Andreas Zilian's avatar
Andreas Zilian committed
7
8
9
10
## Installation

Download the ZIP archive and simply extract it to a location of your choice.

Andreas Zilian's avatar
Andreas Zilian committed
11
12
Start MATLAB (required minimum version is R2015a), change to one of the 
subfolders in `mafe/examples` folder and run an example:
Andreas Zilian's avatar
Andreas Zilian committed
13
14
15
16
17
18
19
20

```
cd mafe/examples/statics/beams
example_static_beam1a
```

## Setting paths correctly

Andreas Zilian's avatar
Andreas Zilian committed
21
22
As demonstrated in the example files, you have to set the path to `mafe`'s 
sub-packages correctly:
Andreas Zilian's avatar
Andreas Zilian committed
23
24
25
26
27

```
addpath([ '..' filesep '..' filesep '..' filesep ]);
```

Andreas Zilian's avatar
Andreas Zilian committed
28
29
30
The above line assumes that your current script file `my_structure.m` is located 
relative to the location of `mafe`-related packages within the 2-level folder 
hierarchy `my_work_folder/my_case_folder/`:
Andreas Zilian's avatar
Andreas Zilian committed
31
32
33
34
35
36
37
38
39
40
41

```
- mafe/
  - +mafe
  - +mgen
  - examples
  - ...
  - my_work_folder/
  	- ...
  	- my_case_folder/
  	- ...
Andreas Zilian's avatar
Andreas Zilian committed
42
  	- my_structure.m
Andreas Zilian's avatar
Andreas Zilian committed
43
44
45
  	- ...
```