Skip to content

Commit 3494d2d

Browse files
committed
duck example
1 parent dc520f1 commit 3494d2d

15 files changed

+1520759
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ To run a shape optimization and obtain the microstructure cell shape that corres
4141
cd scripts/
4242
python optimize.py 5000 \
4343
../inflator/data/patterns/2D/topologies/0105.obj \
44-
--no_tile --strain 0.25 --n_samples 4
44+
--no_tile --strain 0.2 --n_samples 3
4545

46-
where `5000` is the desired stress, the optimization will sample 4 strains from `10%` to `25%` and optimize the stress on those samples to match the desired stress.
46+
where `5000` is the desired stress, the optimization will sample 3 strains from `10%` to `20%` and optimize the stress on those samples to match the desired stress.
4747

4848
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.
4949

50-
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
50+
The above command creates a folder `result/0105_0.2_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
5151

5252
python optimize.py 5000 \
5353
../inflator/data/patterns/2D/topologies/0105.obj \
54-
--no_tile --strain 0.3 --n_samples 5 \
55-
--params ../result/0105_0.25_5000.0/sol.txt
54+
--no_tile --strain 0.25 --n_samples 4 \
55+
--params ../result/0105_0.2_5000.0/sol.txt
5656

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

0 commit comments

Comments
 (0)