<commit_before># 2D-Finite Element Analysis with Python

This _repo_ contains a simple finite element analysis code for 2D elasticity problems. The code uses as input data simple-to-create text files containing nodal, element, material and load data.

The _repo_ contains 3 folders:

1. `MAIN/` stores the python scripts divided in

  - `SOLIDS_ISO.py` (the main program),
  - `PREPROCESOR.py` (model input subroutines),
  - `ASSEMUTILS.py` (assembly subroutines), FEMUTIL.py(general finite element method subroutines),
  - `UELUTIL.py` (local matrix subroutines for different elements),
  - `POSTPROCESOR.py` (results handling subroutines);

2. `MESHES/` contains input files and meshes in `.msh` format corresponding to different examples and

3. `MESHUTILS/` stores programs to conduct pre-processing and post-processing from and to GMESH. Since the code has been created for academic purposes it gives as main results the displacement vector corresponding to the nodal points of the domain. These vectors are used, together with the Python function griddata to interpolate and plot the displacement solution all over the domain. Post-processing to compute strain and stress values is left for students projects.


## Authors
- [<NAME>](http://www.eafit.edu.co/docentes-investigadores/Paginas/juan-gomez.aspx), Professor at Universidad EAFIT.
- [<NAME>](https://github.com/jvergar2), PhD Student at Universidad EAFIT.
- [<NAME>](https://github.com/nicoguaro), PhD Student at Purdue University.

## Instructionsto 
The code is written in Python 2 dialect (we believe that it will work in Python 3 but we have not tested yet) and it depends on `numpy`, `scipy` and `sympy`. To use it clone the repo with 

   git clone https://github.com/jgomezc1/FEM_PYTHON.git
   
uncompress the zip folder an run the main file in the Python console of your preference.


To run the files in `MESHUTILS` you will need to have `gfortran` and run the following `make` instructions

    make --file="CONTOUR Makefile"
    make --file="MESHER Makefile"


## License
This project is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).<commit_msg>Fix typo in readme file<commit_after># 2D-Finite Element Analysis with Python

This _repo_ contains a simple finite element analysis code for 2D elasticity problems. The code uses as input data simple-to-create text files containing nodal, element, material and load data.

The _repo_ contains 3 folders:

1. `MAIN/` stores the python scripts divided in

  - `SOLIDS_ISO.py` (the main program),
  - `PREPROCESOR.py` (model input subroutines),
  - `ASSEMUTILS.py` (assembly subroutines), FEMUTIL.py(general finite element method subroutines),
  - `UELUTIL.py` (local matrix subroutines for different elements),
  - `POSTPROCESOR.py` (results handling subroutines);

2. `MESHES/` contains input files and meshes in `.msh` format corresponding to different examples and

3. `MESHUTILS/` stores programs to conduct pre-processing and post-processing from and to GMESH. Since the code has been created for academic purposes it gives as main results the displacement vector corresponding to the nodal points of the domain. These vectors are used, together with the Python function griddata to interpolate and plot the displacement solution all over the domain. Post-processing to compute strain and stress values is left for students projects.


## Authors
- [<NAME>](http://www.eafit.edu.co/docentes-investigadores/Paginas/juan-gomez.aspx), Professor at Universidad EAFIT.
- [<NAME>](https://github.com/jvergar2), PhD Student at Universidad EAFIT.
- [<NAME>](https://github.com/nicoguaro), PhD Student at Purdue University.

## Instructions
The code is written in Python 2 dialect (we believe that it will work in Python 3 but we have not tested yet) and it depends on `numpy`, `scipy` and `sympy`. To use it clone the repo with 

    git clone https://github.com/jgomezc1/FEM_PYTHON.git
   
uncompress the zip folder an run the main file in the Python console of your preference.


To run the files in `MESHUTILS` you will need to have `gfortran` and run the following `make` instructions

    make --file="CONTOUR Makefile"
    make --file="MESHER Makefile"


## License
This project is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).
{'fraction_non_alphanumeric': 0.08120649651972157, 'fraction_numerical': 0.004640371229698376, 'mean_word_length': 4.409033877038896, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2508239', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1205, 'n_words': 543}