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

Avoid very long lines
parent 97731ec2
No related branches found
No related tags found
No related merge requests found
$Id: VERSIONS,v 1.139 2003-04-02 05:56:15 geuzaine Exp $
$Id: VERSIONS,v 1.140 2003-04-11 22:17:06 geuzaine Exp $
New in 1.44: added support for PNG output;
......@@ -185,10 +185,10 @@ Corrected several bugs for pixel output and enhanced GIF output
(dithering, transparency); slightly changed the post-processing file
format to allow both single and double precision numbers.
New in 0.999: added JPEG output and easy MPEG generation (see t8.geo in the
tutorial); clean up of export functions; small fixes; Linux versions
are now compiled with gcc 2.95.2, which should fix the problems
encountered with Mandrake 7.2;
New in 0.999: added JPEG output and easy MPEG generation (see t8.geo
in the tutorial); clean up of export functions; small fixes; Linux
versions are now compiled with gcc 2.95.2, which should fix the
problems encountered with Mandrake 7.2;
New in 0.998: corrected bug introduced in 0.997 in the generation of
the initial 3D mesh;
......
\input texinfo.tex @c -*-texinfo-*-
@c $Id: gmsh.texi,v 1.7 2003-04-11 01:26:17 geuzaine Exp $
@c $Id: gmsh.texi,v 1.8 2003-04-11 22:17:06 geuzaine Exp $
@c
@c Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
@c
......@@ -187,6 +187,18 @@ General tools
* General commands::
* Option database::
Tutorial
* t1.geo::
* t2.geo::
* t3.geo::
* t4.geo::
* t5.geo::
* t6.geo::
* t7.geo::
* t8.geo::
* t9.geo::
Bugs, versions and contributors
* Bugs::
......@@ -1235,14 +1247,96 @@ XXX
@cindex Short examples
@cindex Examples, short
@c -------------------------------------------------------------------------
@c t1.geo
@c -------------------------------------------------------------------------
@menu
* t1.geo::
* t2.geo::
* t3.geo::
* t4.geo::
* t5.geo::
* t6.geo::
* t7.geo::
* t8.geo::
* t9.geo::
@end menu
@node t1.geo, t2.geo, Tutorial, Tutorial
@section t1.geo
@include t1.geo
@c -------------------------------------------------------------------------
@c t2.geo
@c -------------------------------------------------------------------------
@node t2.geo, t3.geo, t1.geo, Tutorial
@section t2.geo
@include t2.geo
@c -------------------------------------------------------------------------
@c t3.geo
@c -------------------------------------------------------------------------
@node t3.geo, t4.geo, t2.geo, Tutorial
@section t3.geo
@include t3.geo
@c -------------------------------------------------------------------------
@c t4.geo
@c -------------------------------------------------------------------------
@node t4.geo, t5.geo, t3.geo, Tutorial
@section t4.geo
@include t4.geo
@c -------------------------------------------------------------------------
@c t5.geo
@c -------------------------------------------------------------------------
@node t5.geo, t6.geo, t4.geo, Tutorial
@section t5.geo
@include t5.geo
@c -------------------------------------------------------------------------
@c t6.geo
@c -------------------------------------------------------------------------
@node t6.geo, t7.geo, t5.geo, Tutorial
@section t6.geo
@include t6.geo
@c -------------------------------------------------------------------------
@c t7.geo
@c -------------------------------------------------------------------------
@node t7.geo, t8.geo, t6.geo, Tutorial
@section t7.geo
@include t7.geo
@c -------------------------------------------------------------------------
@c t8.geo
@c -------------------------------------------------------------------------
@node t8.geo, t9.geo, t7.geo, Tutorial
@section t8.geo
@include t8.geo
@c -------------------------------------------------------------------------
@c t9.geo
@c -------------------------------------------------------------------------
@node t9.geo, , t8.geo, Tutorial
@section t9.geo
@include t9.geo
@c =========================================================================
......
......@@ -12,7 +12,7 @@
lcar1 = .1;
lcar2 = .0005;
lcar3 = .075;
lcar3 = .055;
// In order to change these lengths globally (without changing the
// file), a global scaling factor for all characteristic lengths can
......@@ -117,7 +117,8 @@ Function CheeseHole
theloops[t] = newreg ;
Surface Loop(theloops[t]) = @{l8+1, l5+1, l1+1, l2+1, -(l3+1), -(l7+1), l6+1, l4+1@};
Surface Loop(theloops[t]) = @{l8+1, l5+1, l1+1, l2+1, -(l3+1), -(l7+1),
l6+1, l4+1@};
thehole = newreg ;
Volume(thehole) = theloops[t] ;
......@@ -147,7 +148,7 @@ For t In @{1:5@}
// The Printf function permits to print the value of variables on the
// terminal, in a way similar to the 'printf' C function:
Printf("The cheese hole %g (center = @{%g,%g,%g@}, radius = %g) has number %g!",
Printf("Hole %g (center = @{%g,%g,%g@}, radius = %g) has number %g!",
t, x, y, z, r, thehole) ;
// Note: All Gmsh variables are treated internally as double precision
......
......@@ -42,11 +42,14 @@ Point(16) = @{r_int/2, 0, r_int/2, lc2@} ;
Point(17) = @{r_int/2*Cos(phi1), r_int/2*Sin(phi1), r_int/2, lc2@} ;
Point(18) = @{0, 0, r_int/2, lc2@} ;
Point(19) = @{r_int*Cos(angl), 0, r_int*Sin(angl), lc2@} ;
Point(20) = @{r_int*Cos(angl)*Cos(phi1), r_int*Cos(angl)*Sin(phi1), r_int*Sin(angl), lc2@} ;
Point(20) = @{r_int*Cos(angl)*Cos(phi1), r_int*Cos(angl)*Sin(phi1),
r_int*Sin(angl), lc2@} ;
Point(21) = @{r_ext*Cos(angl), 0, r_ext*Sin(angl), lc2@} ;
Point(22) = @{r_ext*Cos(angl)*Cos(phi1), r_ext*Cos(angl)*Sin(phi1), r_ext*Sin(angl), lc2@} ;
Point(22) = @{r_ext*Cos(angl)*Cos(phi1), r_ext*Cos(angl)*Sin(phi1),
r_ext*Sin(angl), lc2@} ;
Point(23) = @{r_far*Cos(angl), 0, r_far*Sin(angl), lc2@} ;
Point(24) = @{r_far*Cos(angl)*Cos(phi1), r_far*Cos(angl)*Sin(phi1), r_far*Sin(angl), lc2@} ;
Point(24) = @{r_far*Cos(angl)*Cos(phi1), r_far*Cos(angl)*Sin(phi1),
r_far*Sin(angl), lc2@} ;
Point(25) = @{r_inf, 0, r_inf, lc2@} ;
Point(26) = @{r_inf*Cos(phi1), r_inf*Sin(phi1), r_inf, lc2@} ;
......@@ -60,14 +63,16 @@ Circle(17) = @{19,1,20@}; Circle(18) = @{21,1,22@}; Circle(19) = @{23,1,24@};
Circle(20)= @{25,1,26@}; Circle(21)= @{2,1,10@}; Circle(22) = @{3,1,11@};
Circle(23)= @{4,1,12@}; Circle(24)= @{5,1,13@};
Line(25) = @{1,14@}; Line(26) = @{14,2@}; Line(27) = @{2,3@}; Line(28) = @{3,4@};
Line(29) = @{4,5@}; Line(30) = @{1,15@}; Line(31) = @{15,10@}; Line(32) = @{10,11@};
Line(33) = @{11,12@}; Line(34) = @{12,13@}; Line(35) = @{14,15@}; Line(36) = @{14,16@};
Line(37) = @{15,17@}; Line(38) = @{16,17@}; Line(39) = @{18,16@}; Line(40) = @{18,17@};
Line(41) = @{1,18@}; Line(42) = @{18,6@}; Line(43) = @{6,7@}; Line(44) = @{16,19@};
Line(45) = @{19,21@}; Line(46) = @{21,23@}; Line(47) = @{23,25@}; Line(48) = @{17,20@};
Line(49) = @{20,22@}; Line(50) = @{22,24@}; Line(51) = @{24,26@}; Line(52) = @{7,8@};
Line(53) = @{8,9@};
Line(25) = @{1,14@}; Line(26) = @{14,2@}; Line(27) = @{2,3@};
Line(28) = @{3,4@}; Line(29) = @{4,5@}; Line(30) = @{1,15@};
Line(31) = @{15,10@}; Line(32) = @{10,11@}; Line(33) = @{11,12@};
Line(34) = @{12,13@}; Line(35) = @{14,15@}; Line(36) = @{14,16@};
Line(37) = @{15,17@}; Line(38) = @{16,17@}; Line(39) = @{18,16@};
Line(40) = @{18,17@}; Line(41) = @{1,18@}; Line(42) = @{18,6@};
Line(43) = @{6,7@}; Line(44) = @{16,19@}; Line(45) = @{19,21@};
Line(46) = @{21,23@}; Line(47) = @{23,25@}; Line(48) = @{17,20@};
Line(49) = @{20,22@}; Line(50) = @{22,24@}; Line(51) = @{24,26@};
Line(52) = @{7,8@}; Line(53) = @{8,9@};
Line Loop(54) = @{39,-36,-25,41@}; Ruled Surface(55) = @{54@};
Line Loop(56) = @{44,-1,-26,36@}; Ruled Surface(57) = @{56@};
......@@ -107,15 +112,24 @@ Line Loop(122) = @{32,-22,-27,21@}; Ruled Surface(123) = @{122@};
Line Loop(124) = @{33,-23,-28,22@}; Ruled Surface(125) = @{124@};
Line Loop(126) = @{34,-24,-29,23@}; Ruled Surface(127) = @{126@};
Surface Loop(128) = @{93,-73,-55,95,-91@}; Volume(129) = @{128@}; // int
Surface Loop(130) = @{107,-75,-97,95,57,121@}; Volume(131) = @{130@}; // int b
Surface Loop(132) = @{105,-65,-97,-83,-93@}; Volume(133) = @{132@}; // int h
Surface Loop(134) = @{99,-111,77,123,59,107@}; Volume(135) = @{134@}; // shell b
Surface Loop(136) = @{99,-109,67,105,85@}; Volume(137) = @{136@}; // shell h
Surface Loop(138) = @{113,79,-101,-111,-125,-61@}; Volume(139) = @{138@}; // ext b
Surface Loop(140) = @{115,-69,-101,-87,-109@}; Volume(141) = @{140@}; // ext h
Surface Loop(142) = @{103,-117,-81,113,127,63@}; Volume(143) = @{142@}; // inf b
Surface Loop(144) = @{89,-119,71,103,115@}; Volume(145) = @{144@}; // inf h
Surface Loop(128) = @{93,-73,-55,95,-91@};
Volume(129) = @{128@}; // int
Surface Loop(130) = @{107,-75,-97,95,57,121@};
Volume(131) = @{130@}; // int b
Surface Loop(132) = @{105,-65,-97,-83,-93@};
Volume(133) = @{132@}; // int h
Surface Loop(134) = @{99,-111,77,123,59,107@};
Volume(135) = @{134@}; // shell b
Surface Loop(136) = @{99,-109,67,105,85@};
Volume(137) = @{136@}; // shell h
Surface Loop(138) = @{113,79,-101,-111,-125,-61@};
Volume(139) = @{138@}; // ext b
Surface Loop(140) = @{115,-69,-101,-87,-109@};
Volume(141) = @{140@}; // ext h
Surface Loop(142) = @{103,-117,-81,113,127,63@};
Volume(143) = @{142@}; // inf b
Surface Loop(144) = @{89,-119,71,103,115@};
Volume(145) = @{144@}; // inf h
// Transfinite line commands explicitly specify the number of points
// and their distribution. 'Progression 2' means that each line
......
......@@ -115,7 +115,8 @@ Function CheeseHole
theloops[t] = newreg ;
Surface Loop(theloops[t]) = {l8+1, l5+1, l1+1, l2+1, -(l3+1), -(l7+1), l6+1, l4+1};
Surface Loop(theloops[t]) = {l8+1, l5+1, l1+1, l2+1, -(l3+1), -(l7+1),
l6+1, l4+1};
thehole = newreg ;
Volume(thehole) = theloops[t] ;
......@@ -145,7 +146,7 @@ For t In {1:5}
// The Printf function permits to print the value of variables on the
// terminal, in a way similar to the 'printf' C function:
Printf("The cheese hole %g (center = {%g,%g,%g}, radius = %g) has number %g!",
Printf("Hole %g (center = {%g,%g,%g}, radius = %g) has number %g!",
t, x, y, z, r, thehole) ;
// Note: All Gmsh variables are treated internally as double precision
......
......@@ -40,11 +40,14 @@ Point(16) = {r_int/2, 0, r_int/2, lc2} ;
Point(17) = {r_int/2*Cos(phi1), r_int/2*Sin(phi1), r_int/2, lc2} ;
Point(18) = {0, 0, r_int/2, lc2} ;
Point(19) = {r_int*Cos(angl), 0, r_int*Sin(angl), lc2} ;
Point(20) = {r_int*Cos(angl)*Cos(phi1), r_int*Cos(angl)*Sin(phi1), r_int*Sin(angl), lc2} ;
Point(20) = {r_int*Cos(angl)*Cos(phi1), r_int*Cos(angl)*Sin(phi1),
r_int*Sin(angl), lc2} ;
Point(21) = {r_ext*Cos(angl), 0, r_ext*Sin(angl), lc2} ;
Point(22) = {r_ext*Cos(angl)*Cos(phi1), r_ext*Cos(angl)*Sin(phi1), r_ext*Sin(angl), lc2} ;
Point(22) = {r_ext*Cos(angl)*Cos(phi1), r_ext*Cos(angl)*Sin(phi1),
r_ext*Sin(angl), lc2} ;
Point(23) = {r_far*Cos(angl), 0, r_far*Sin(angl), lc2} ;
Point(24) = {r_far*Cos(angl)*Cos(phi1), r_far*Cos(angl)*Sin(phi1), r_far*Sin(angl), lc2} ;
Point(24) = {r_far*Cos(angl)*Cos(phi1), r_far*Cos(angl)*Sin(phi1),
r_far*Sin(angl), lc2} ;
Point(25) = {r_inf, 0, r_inf, lc2} ;
Point(26) = {r_inf*Cos(phi1), r_inf*Sin(phi1), r_inf, lc2} ;
......@@ -58,14 +61,16 @@ Circle(17) = {19,1,20}; Circle(18) = {21,1,22}; Circle(19) = {23,1,24};
Circle(20)= {25,1,26}; Circle(21)= {2,1,10}; Circle(22) = {3,1,11};
Circle(23)= {4,1,12}; Circle(24)= {5,1,13};
Line(25) = {1,14}; Line(26) = {14,2}; Line(27) = {2,3}; Line(28) = {3,4};
Line(29) = {4,5}; Line(30) = {1,15}; Line(31) = {15,10}; Line(32) = {10,11};
Line(33) = {11,12}; Line(34) = {12,13}; Line(35) = {14,15}; Line(36) = {14,16};
Line(37) = {15,17}; Line(38) = {16,17}; Line(39) = {18,16}; Line(40) = {18,17};
Line(41) = {1,18}; Line(42) = {18,6}; Line(43) = {6,7}; Line(44) = {16,19};
Line(45) = {19,21}; Line(46) = {21,23}; Line(47) = {23,25}; Line(48) = {17,20};
Line(49) = {20,22}; Line(50) = {22,24}; Line(51) = {24,26}; Line(52) = {7,8};
Line(53) = {8,9};
Line(25) = {1,14}; Line(26) = {14,2}; Line(27) = {2,3};
Line(28) = {3,4}; Line(29) = {4,5}; Line(30) = {1,15};
Line(31) = {15,10}; Line(32) = {10,11}; Line(33) = {11,12};
Line(34) = {12,13}; Line(35) = {14,15}; Line(36) = {14,16};
Line(37) = {15,17}; Line(38) = {16,17}; Line(39) = {18,16};
Line(40) = {18,17}; Line(41) = {1,18}; Line(42) = {18,6};
Line(43) = {6,7}; Line(44) = {16,19}; Line(45) = {19,21};
Line(46) = {21,23}; Line(47) = {23,25}; Line(48) = {17,20};
Line(49) = {20,22}; Line(50) = {22,24}; Line(51) = {24,26};
Line(52) = {7,8}; Line(53) = {8,9};
Line Loop(54) = {39,-36,-25,41}; Ruled Surface(55) = {54};
Line Loop(56) = {44,-1,-26,36}; Ruled Surface(57) = {56};
......@@ -105,15 +110,24 @@ Line Loop(122) = {32,-22,-27,21}; Ruled Surface(123) = {122};
Line Loop(124) = {33,-23,-28,22}; Ruled Surface(125) = {124};
Line Loop(126) = {34,-24,-29,23}; Ruled Surface(127) = {126};
Surface Loop(128) = {93,-73,-55,95,-91}; Volume(129) = {128}; // int
Surface Loop(130) = {107,-75,-97,95,57,121}; Volume(131) = {130}; // int b
Surface Loop(132) = {105,-65,-97,-83,-93}; Volume(133) = {132}; // int h
Surface Loop(134) = {99,-111,77,123,59,107}; Volume(135) = {134}; // shell b
Surface Loop(136) = {99,-109,67,105,85}; Volume(137) = {136}; // shell h
Surface Loop(138) = {113,79,-101,-111,-125,-61}; Volume(139) = {138}; // ext b
Surface Loop(140) = {115,-69,-101,-87,-109}; Volume(141) = {140}; // ext h
Surface Loop(142) = {103,-117,-81,113,127,63}; Volume(143) = {142}; // inf b
Surface Loop(144) = {89,-119,71,103,115}; Volume(145) = {144}; // inf h
Surface Loop(128) = {93,-73,-55,95,-91};
Volume(129) = {128}; // int
Surface Loop(130) = {107,-75,-97,95,57,121};
Volume(131) = {130}; // int b
Surface Loop(132) = {105,-65,-97,-83,-93};
Volume(133) = {132}; // int h
Surface Loop(134) = {99,-111,77,123,59,107};
Volume(135) = {134}; // shell b
Surface Loop(136) = {99,-109,67,105,85};
Volume(137) = {136}; // shell h
Surface Loop(138) = {113,79,-101,-111,-125,-61};
Volume(139) = {138}; // ext b
Surface Loop(140) = {115,-69,-101,-87,-109};
Volume(141) = {140}; // ext h
Surface Loop(142) = {103,-117,-81,113,127,63};
Volume(143) = {142}; // inf b
Surface Loop(144) = {89,-119,71,103,115};
Volume(145) = {144}; // inf h
// Transfinite line commands explicitly specify the number of points
// and their distribution. 'Progression 2' means that each line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment