Dear gmsh Community,
I am using the following executable downloaded today, 24/06/2018:
gmsh-3.0.6-Linux64/bin/gmsh
I copied and pasted the t1.geo from Prof. Geuzaine's gmesh Website which
is attached.
I seem to do a mistake as I get errors which are saved and attached here
in error.txt file.
In view of my other problems for which I have been asking your valuable
help, perhaps
I am doing some fundamental mistakes as I am a beginner but we would
like to use gmsh at our Institute.
Thank you very for reading.
Kind regards,
Zuheyr
--
Dr. Zuheyr Alsalihi
Senior Research Engineer
Turbomachinery and Propulsion, and
Aeronautics and Aerospace Departments
von Karman Institute for Fluid Dynamics
Waterloosesteenweg 72, B-1640 Sint-Genesius-Rode, Belgium
Direct Line: +32 (0)2 359 98 65
Fax: +32 (0)2 359 96 00
E-mail: alsal...@vki.ac.be
http://www.vki.ac.be
Info : -------------------------------------------------------
Info : Gmsh version : 3.0.6
Info : Build OS : Linux64
Info : Build options : 64Bit Ann Bamg Bfgs Blas(Generic) Blossom C++11
Chaco DIntegration Dlopen Fltk Gmm Jpeg(Fltk) Kbipack Lapack(Generic)
LinuxJoystick MathEx Med Mesh Metis Mmg3d Mpeg Netgen ONELAB ONELABMetamodel
OpenCASCADE OpenGL OptHom PETSc Parser Plugins Png(Fltk) Post SLEPc Solver
Taucs TetGen/BR Tetgen1.5 Voro3D Zlib
Info : Build date : 20171105
Info : Build host : gmsh.info
Info : Packager : gitlab-runner
Info : Executable :
/personnel/reseng_tu/alsalihi/gmsh-3.0.6-Linux64/bin/gmsh
Info : Home directory : /personnel/reseng_tu/alsalihi/
Info : Launch date : Sun Jun 24 18:30:40 2018
Info : Command line :
/personnel/reseng_tu/alsalihi/gmsh-3.0.6-Linux64/bin/gmsh
Info : -------------------------------------------------------
Info : Reading
'/personnel/reseng_tu/alsalihi/GM5-Deliverable2-LightWeighting/GM5-LightWeight-May17/Gmesh-Work-Old-Imp/Org/GmshDemos/t1.geo'...
.Error : '...GmshDemos/t1.geo', line 47 : Unknown variable 'Loop(.)'
.Error : '...GmshDemos/t1.geo', line 47 : syntax error (=)
.Error : Unknown line loop 1 in GEO face 1
.Error : ...GmshDemos/t1.geo', line 71 : syntax error (Curve)
.Error : ...GmshDemos/t1.geo', line 72 : syntax error (Curve)
.Error : ...GmshDemos/t1.geo', line 73 : syntax error (Curve)
Info : Done reading '...GmshDemos/t1.geo'
Info : Writing '...GmshDemos/error.txt'...
/*********************************************************************
*
* Gmsh tutorial 1
*
* Variables, elementary entities (points, curves, surfaces), physical
* entities (points, curves, surfaces)
*
*********************************************************************/
// The simplest construction in Gmsh's scripting language is the
// `affectation'. The following command defines a new variable `lc':
lc = 1e-2;
// This variable can then be used in the definition of Gmsh's simplest
// `elementary entity', a `Point'. A Point is defined by a list of four numbers:
// three coordinates (X, Y and Z), and a characteristic length (lc) that sets
// the target element size at the point:
Point(1) = {0, 0, 0, lc};
// The distribution of the mesh element sizes is then obtained by interpolation
// of these characteristic lengths throughout the geometry. Another method to
// specify characteristic lengths is to use general mesh size Fields (see
// `t10.geo'). A particular case is the use of a background mesh (see `t7.geo').
// We can then define some additional points as well as our first curve. Curves
// are Gmsh's second type of elementery entities, and, amongst curves, straight
// lines are the simplest. A straight line is defined by a list of point
// numbers. In the commands below, for example, the line 1 starts at point 1 and
// ends at point 2:
Point(2) = {.1, 0, 0, lc} ;
Point(3) = {.1, .3, 0, lc} ;
Point(4) = {0, .3, 0, lc} ;
Line(1) = {1,2} ;
Line(2) = {3,2} ;
Line(3) = {3,4} ;
Line(4) = {4,1} ;
// The third elementary entity is the surface. In order to define a simple
// rectangular surface from the four curves defined above, a curve loop has
first
// to be defined. A curve loop is a list of connected curves, a sign being
// associated with each curve (depending on the orientation of the curve):
Curve Loop(1) = {4,1,-2,3} ;
// We can then define the surface as a list of curve loops (only one here, since
// there are no holes--see `t4.geo'):
Plane Surface(1) = {1} ;
// At this level, Gmsh knows everything to display the rectangular surface 6 and
// to mesh it. An optional step is needed if we want to associate specific
// region numbers to the various elements in the mesh (e.g. to the line segments
// discretizing curves 1 to 4 or to the triangles discretizing surface 1). This
// is achieved by the definition of `physical entities'. Physical entities will
// group elements belonging to several elementary entities by giving them a
// common number (a region number).
// We can for example group the points 1 and 2 into the physical entity 1:
Physical Point(1) = {1,2} ;
// Consequently, two punctual elements will be saved in the output mesh file,
// both with the region number 1. The mechanism is identical for curve or
surface
// elements:
MY_CURVE = 2;
Physical Curve(MY_CURVE) = {1,2} ;
Physical Curve("My second curve (automatic physical tag)") = {3} ;
Physical Curve("My third curve (physical tag 5)", 5) = {4} ;
Physical Surface("My surface") = {1} ;
// All the line elements created during the meshing of curves 1 and 2 will be
// saved in the output mesh file with the physical tag 2. The elements from
curve
// 3 will be saved in the output mesh file with an automatic physical id,
// associated with the label "My second curve (automatic physical tag)". The
// elements from curve 4 will be saved with physical tag 5, associated with the
// label "My third curve (physical tag 5)". And finally, all the triangular
// elements resulting from the discretization of surface 6 will be given an
// automatic physical id associated with the label "My surface").
//
// Note that if no physical entities are defined, then all the elements in the
// mesh will be saved "as is", with their default orientation.
// Starting with Gmsh 3.0, models can also be built using constructive solid
// geometry. Instead of the built-in geometry kernel, you need to use the
// OpenCASCADE kernel:
//
// SetFactory("OpenCASCADE");
//
// In addition to the "bottom-up" geometry commands, you can now use "top-down"
// commands, like e.g.
//
// Rectangle(2) = {.2, 0, 0, 0.1, 0.3};
//
// See tutorial/t16.geo for an example, and demos/boolean for more.
_______________________________________________
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh