Skip to content
Snippets Groups Projects
Commit 2c9b54ac authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

better

parent 6b809076
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ DefineConstant[ ...@@ -4,6 +4,7 @@ DefineConstant[
w = {0.05, Name "Width"} w = {0.05, Name "Width"}
N = {10, Name "Number of disks"} N = {10, Name "Number of disks"}
R = {0.002, Name "Disk radius"} R = {0.002, Name "Disk radius"}
spacing = {0, Min 0, Max R, Step R/10, Name "Disk spacing"}
]; ];
Rectangle(1) = {-3*w, w, 0, 6*w, w, 0}; Rectangle(1) = {-3*w, w, 0, 6*w, w, 0};
...@@ -16,7 +17,7 @@ Rectangle(6) = {-6*w, 0, 0, 12*w, 5*w, 0}; ...@@ -16,7 +17,7 @@ Rectangle(6) = {-6*w, 0, 0, 12*w, 5*w, 0};
b() = {}; b() = {};
For i In {1:N} For i In {1:N}
s = news; b() += s; Disk(s) = {-w-R, 2*R*i, 0, R}; s = news; b() += s; Disk(s) = {-w-R-spacing, (2*R+spacing)*i, 0, R};
EndFor EndFor
Printf("disk tags: ", b()); Printf("disk tags: ", b());
......
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