[Gmsh] Create mesh for 1D geometry

Jeremy Theler jeremy at seamplex.com
Thu Feb 6 19:24:30 CET 2020


delx = 0.5;
xend = 20;
Point(1) = {0, 0, 0, delx};
Point(2) = {xend, 0, 0, delx};

Line(1) = {1, 2};

Physical Point("left") = {1};
Physical Point("right") = {2};
Physical Line("bulk") = {1};

On Thu, 2020-02-06 at 23:11 +0530, Deepa wrote:
> > 
> > I am a beginner here.
> > 
> > I'm looking for ways of creating a mesh for a 2D geometry. It's a
> > straight line, the nodes have to be positioned along the x
> > directions and all y-coordinates have to be zero.
> > 
> > Example: 0 : delx : xend, where delx =0.5, xend = 20.
> > 
> > I have to create the input file in a format that will be compatible
> > for importing in COMSOL.
> > 
> > Any suggestions on how to proceed will be really helpful
> > 
> > Thanks,
> > Deepa
> > 
> > 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> 
> http://onelab.info/mailman/listinfo/gmsh
> 
> 




More information about the gmsh mailing list