Skip to content
Snippets Groups Projects
Commit f088d7e4 authored by samuel.hayden's avatar samuel.hayden
Browse files

Added explaination of input file format

parent 8857baed
No related branches found
No related tags found
No related merge requests found
# LatticeDehomogenization
This project dehomogenizes a domain defined by a distribution of call radii. This is typically what can be obtained from topology optimization.
## Getting Started
### Prerequisites
......@@ -9,7 +10,29 @@ This project requires OpenCascade. The .lib files have been built for the debug
2. To build this project, open the generated .sln file, selected the configuration (debug or release) and build.
## Usage
Some example files are included to generate simple lattice structures. These can be found in the LatticeDehomogenization/res/examples folder. These files can be used to generate simple lattice structures.
Some example files are included to generate simple lattice structures. These can be found in the LatticeDehomogenization/res/examples folder. These files can be used to generate simple lattice structures. Each file must contain some necessary information. Below is a list of possible options.
* Cells nx ny nz (defines the number of cells in each direction)
* Size dx dy dz (defines the size of a unit cell)
* Radii nRadii
* If `nRadii == 1` then a simple lattice is generated where unit cell has the same strut radius
* If `nRadii != 1` then the number define must correspond to the number of cells in the lattice
* A list of doubles with a length nRadii then follows this line to define each cell radius
* Positions nCells
* A list of positions of the form `dx dy dz` then follows this line to define the position of node1 of the each unit cell.
Example File.
```
Size 5 5 5 (Must be included)
Cells 10 10 5 (Either "Positions" or "Cells" must be included)
Radii 1 (Number can either equal nx*ny*nz or 1. This example has each unit cell equal)
0.9
Positions 500
0.0 0.0 0.0
5.0 0.0 0.0
| | |
| | |
50.0 50.0 25.0
```
Currently the only option is to modify the main.cpp file. In main.cpp, the string in "ParseInputFile" can be modified to select your input file.
......@@ -27,9 +50,9 @@ LatticeDehomogenization.exe -bounds <yourboundingbox.step>
```
## Roadmap
- [ ] Add command line arguement -input
- [ ] Add command line arguement -bounds
- [ ] Add command line arguements to generate simple lattice structures directly without the need of an input file
- [ ] Add command line argument -input
- [ ] Add command line argument -bounds
- [ ] Add command line arguments to generate simple lattice structures directly without the need of an input file
## Contributing
### Creating new unit cells
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment