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

wall with rips

parent 973adb6c
This diff is collapsed.
//+
SetFactory("OpenCASCADE");
Box(1) = {0, 0, 0, 5, .2, 2};
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.3; dist = 0.75;
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.75-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.5-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {2.25-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {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}; 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.05;
Mesh.SaveAll = 1;
Mesh.ElementOrder = 2;
Mesh 3;
Save "wall.msh";
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
SetFactory("OpenCASCADE");
length = 3; height = 1.5; t_w = 0.02;
t_r = 0.02; l_r = 0.1; 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_0.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 = 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_1.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 = 0.6;
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.6-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.2-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {1.7999999999999998-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {2.4-t_r/2, 0, 0, t_r, l_r, height};
Box(7) = {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}; 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_10.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 = 0.6;
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.6-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.2-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {1.7999999999999998-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {2.4-t_r/2, 0, 0, t_r, l_r, height};
Box(7) = {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}; 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_11.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 = 0.6;
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.6-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.2-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {1.7999999999999998-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {2.4-t_r/2, 0, 0, t_r, l_r, height};
Box(7) = {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}; 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_12.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 = 0.6;
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.6-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.2-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {1.7999999999999998-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {2.4-t_r/2, 0, 0, t_r, l_r, height};
Box(7) = {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}; 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_13.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 = 0.6;
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.6-t_r/2, 0, 0, t_r, l_r, height};
Box(4) = {1.2-t_r/2, 0, 0, t_r, l_r, height};
Box(5) = {1.7999999999999998-t_r/2, 0, 0, t_r, l_r, height};
Box(6) = {2.4-t_r/2, 0, 0, t_r, l_r, height};
Box(7) = {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}; 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_14.msh";
\ No newline at end of file
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