[Gmsh] excluding internal volume from mesh

Louis Gagnon louis.gagnon.10 at ulaval.ca
Mon Feb 2 22:48:09 CET 2009


Hi,

I am trying to exclude a volume from meshing because it is actually a
hole inside a bigger box. I tried to delete the volume but since it
comes from a *.stp file I receive the error message saying function is
not implemented yet. I manage to generate a *.msh file without the said
volume by relying on physical groups but I would like to be able to
exclude it completely from meshing since the characteristic lengths at
the outer edges of that "hole" are very small and thus make the meshing
operation much longer.

Any suggestions?

thanks for your help,


-Louis
-------------- next part --------------
Merge "/home/louis/Desktop/LACIE/alerion/coque_aero_orig_rescale.stp";

//General.ScaleX=0.001;
//General.ScaleY=0.001;
//General.ScaleZ=0.001;

Mesh.CharacteristicLengthFactor=0.04;
Mesh.CharacteristicLengthFromCurvature=0;
Mesh.CharacteristicLengthMin=0.6;
Mesh.CharacteristicLengthMax=0.8;






Point(8001) = {0.4, 0.65, 2.1, 1};
Point(8002) = {-0.4, 0.65, 2.1, 1};
Point(8003) = {-0.4, -0.07, 2.1, 1};
Point(8004) = {0.4, -0.07, 2.1, 1};

Line(9001) = {8001,8002};
Line(9002) = {8002, 8003};
Line(9003) = {8003, 8004};
Line(9004) = {8004, 8001};


Point(8005) = {0.4, 0.65, -0.95, 1};
Point(8006) = {-0.4, 0.65, -0.95, 1};
Point(8007) = {-0.4, -0.07, -0.95, 1};
Point(8008) = {0.4, -0.07, -0.95, 1};

Line(9005) = {8005,8006};
Line(9006) = {8006, 8007};
Line(9007) = {8007, 8008};
Line(9008) = {8008, 8005};






Line(9009) = {8005, 8001};
Line(9010) = {8008, 8004};
Line(9011) = {8006, 8002};
Line(9012) = {8007, 8003};








Line Loop(9013) = {9009, 9001, -9011, -9005};
Plane Surface(9014) = {9013};
Line Loop(9015) = {9011, 9002, -9012, -9006};
Plane Surface(9016) = {9015};
Line Loop(9017) = {9005, 9006, 9007, 9008};
Plane Surface(9018) = {9017};
Line Loop(9019) = {9003, 9004, 9001, 9002};
Plane Surface(9020) = {9019};
Line Loop(9021) = {9012, 9003, -9010, -9007};
Plane Surface(9022) = {9021};
Line Loop(9023) = {9004, -9009, -9008, 9010};
Plane Surface(9024) = {9023};






Surface Loop(9028) = {9014, 9024, 9020, 9022, 9016, 9018};
Surface Loop(9029) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 25, 20, 21, 23, 24, 22, 28, 27, 29, 26, 30};
Volume(9030) = {9028, 9029};




Physical Surface("fixedWalls") = {23, 24, 21, 20, 22, 18, 19, 25, 17, 16, 14, 15, 12, 26, 11, 10, 29, 27, 9, 13, 30, 28, 1, 8, 4, 5, 2, 7, 3, 6};
Physical Surface(9031) = {9014, 9018, 9024, 9016, 9022, 9020};
Physical Volume(9032) = {9030};




Delete {
  Volume{1};
}