Commit 2f2ec880 authored by florez's avatar florez
Browse files

wall with rips

parent 973adb6c
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.9000000000000001; dist = 0.3333333333333333;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {0.3333333333333333-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {0.6666666666666666-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {1.3333333333333333-t_r/2, 0, 0, t_r, l_r, height};
Box(7) = {1.6666666666666665-t_r/2, 0, 0, t_r, l_r, height};
Box(8) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(9) = {2.333333333333333-t_r/2, 0, 0, t_r, l_r, height};
Box(10) = {2.6666666666666665-t_r/2, 0, 0, t_r, l_r, height};
Box(11) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Volume{6}; Volume{7}; Volume{8}; Volume{9}; Volume{10}; Volume{11}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_24.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.7000000000000001; dist = 3.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_3.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.9000000000000001; dist = 3.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_4.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.1; dist = 1.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_5.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.30000000000000004; dist = 1.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_6.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.5000000000000001; dist = 1.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_7.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.7000000000000001; dist = 1.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_8.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.9000000000000001; dist = 1.0;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(3) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Volume{4}; Volume{5}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("front") = {1};
Physical Surface("bottom") = {2};
Physical Point("fixpoint") = {1};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.2;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_opt_9.msh";
\ No newline at end of file
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1; t_w = 0.05;
t_r = 0.05; l_r = 0.8; dist = 0.5; d_sym = 0.5;
Box(1) = {0, 0, 0, length, t_w, height};
Box(2) = {-t_w/2, 0, 0, t_w, -d_sym, height};
Box(3) = {length-t_w/2, 0, 0, t_w, -d_sym, height};
BooleanUnion { Volume{1}; Delete; } { Volume{2}; Volume{3}; Delete; };
v_rip_1 = newv;
Box(v_rip_1+0) = {0.0-t_r/2, 0, 0, t_r, l_r, height};
Box(v_rip_1+1) = {0.5-t_r/2, 0, 0, t_r, l_r, height};
Box(v_rip_1+2) = {1.0-t_r/2, 0, 0, t_r, l_r, height};
Box(v_rip_1+3) = {1.5-t_r/2, 0, 0, t_r, l_r, height};
Box(v_rip_1+4) = {2.0-t_r/2, 0, 0, t_r, l_r, height};
Box(v_rip_1+5) = {2.5-t_r/2, 0, 0, t_r, l_r, height};
Box(v_rip_1+6) = {3.0-t_r/2, 0, 0, t_r, l_r, height};
vol[] = BooleanUnion { Volume{1}; Delete; } { Volume{v_rip_1+0}; Volume{v_rip_1+1}; Volume{v_rip_1+2}; Volume{v_rip_1+3}; Volume{v_rip_1+4}; Volume{v_rip_1+5}; Volume{v_rip_1+6}; Delete; };
Printf('%g', vol[0]);
Physical Volume("Volume") = {vol[0]};
Physical Surface("inside") = {6, 7, 31};
Physical Surface("bottom") = {9};
Physical Point("fixpoint") = {42};
Physical Surface("Symmetry") = {8, 34};
Mesh.MeshSizeMin = 0.02;
Mesh.MeshSizeMax = 0.1;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall_symmetry.msh";
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment