This generates lattice structures from unit lattice meshes (.msh or ANSYS ASCII nodes + elements in .txt format)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them
GMSH can be installed from the link here. After you extract it, the direcctory must be added to the path.
Numpy and Progressbar can be installed by calling:
pip install numpy
pip install progressbar2
in the command-line.
Run Lattice Generation by running in the project directory:
python app.py
input the model you want to multiply 45
or 90
, followed by the dimensions of the volume x,y,z
.
Output files are placed in lattice\output in .stl and .msh format
Go to the directory and run:
python unit_test.py
To test different values, change the x,y,z values in individual_test()
.
To run a general set of unit tests, replace individual_test(...)
with unitTest(nodes, elements, displacement_factor)
.
All test outputs are written in output\test_output.txt
- Timothy Lu - timothylu
- Antony Hwang - AntonyHwang