I would like to mesh a “T” type of geometry as follows:

How can I mesh it using structured triangular type of mesh?

Can the command “square” be used to mesh the above “T” type of geometry?

I would like to mesh a “T” type of geometry as follows:

How can I mesh it using structured triangular type of mesh?

Can the command “square” be used to mesh the above “T” type of geometry?

If you insist on having a structured mesh, you can glue 2 rectangles

mesh Th1 = square(30,10,[3* x,y]);

mesh Th2 = square(10,30,[x+1,2* y-2]);

mesh Th=Th1+Th2;

plot(Th,fill=1);

but you’ll have to choose carefully the number of points so the the vertices on the common edge coincide…

Ok. But what are the numbers of the boundaries? It is required for assigning boundary conditions.

Hi D_N_Sarkar, can you see: