Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Huangzizhou committed Oct 10, 2024
1 parent 9f6adcf commit f0369b1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ where `5000` is the desired stress, the optimization will sample 4 strains from

All 105 topologies used in the paper are in folder `inflator/data/patterns/2D/topologies/0105.obj`, one can provide a new `.obj` edge mesh to run the optimization on a custom cell topology. The edge mesh has to fit into the unit cube and be periodic in both directions.

The above command creates a folder `result/0105_0.3_5000.0` and set up the JSON files needed to run PolyFEM.
The above command creates a folder `result/0105_0.25_5000.0` and set up the JSON files needed to run PolyFEM. Once the optimization finishes successfully, one can further optimize the cell shape for wider flat region by

python optimize.py 5000 \
../inflator/data/patterns/2D/topologies/0105.obj \
--no_tile --strain 0.3 --n_samples 5 \
--params ../result/0105_0.25_5000.0/sol.txt

which adds one more sample strain, and uses the previous optimized shape parameters as a starting point.

Documentation
-------------
Expand Down

0 comments on commit f0369b1

Please sign in to comment.