[Gmsh] Different domains in a geometry

edmundo.santolaria at gmail.com edmundo.santolaria at gmail.com
Thu Nov 28 19:04:57 CET 2013


Dear,
I am a Phd student and I started use GMSH for few months.
I want to generate four different domains for a  2D experiment.
But I only managed to generate a single mesh in the full geometry or 
superimposed meshes.
Is there any way to define the 4 domains separated by lines in the 
following code?

I much appreciate any help or example to answer this question and to use 
gmsh practice in the future.

// Gmsh project created on Thu Nov 21 12:43:48 2013
lc = 1;
ld = 20;

Dt=1;
Db=2;
R1=10;
R2=R1+Dt;
R3=R1+Dt+Db;
XY=25;
Z=50;
Zt=20;
Zba=Zt+2*Dt;
Zb=Zt+2*Dt+Db;


Point(1) = {0.0,0.0,0.0,lc};
Point(2) = {R2,0.0,0.0,lc};
Point(3) = {R3,0,0.0,lc};
Point(4) = {XY,0,0.0,ld};

Point(5) = {0.0,(-Dt),0.0,lc};
Point(6) = {R1,(-Dt),0.0,lc};

Point(7) = {0.0,-(Zt+Dt),0.0,lc};
Point(8) = {R1,-(Zt+Dt),0.0,lc};

Point(9) = {0.0,-Zba,0.0,lc};
Point(10) = {R2,-Zba,0.0,lc};

Point(11) = {0.0,-Zb,0.0,lc};
Point(12) = {R3,-Zb,0.0,lc};

Point(13) = {0.0,-Z,0.0,ld};
Point(14) = {XY,-Z,0.0,ld};


Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,14};
Line(5) = {14,13};
Line(6) = {13,11};
Line(7) = {11,9};
Line(8) = {9,7};
Line(9) = {7,5};
Line(10) = {5,1};


Line(11) = {3,12};
Line(12) = {12,11};


Line(13) = {2,10};
Line(14) = {10,9};


Line(15) = {5,6};
Line(16) = {6,8};
Line(17) = {8,7};
///

// define the domains

// fluid[]={15,-16,17,9};

//  casing[]={1,-13,14,8,17,16,15,10}

//  backfill[]={2,-11,12,7,14,13}

//  bedrock[]={3,-4,5,6,12,11}

Line Loop(19)={15,16,17,9};
Plane Surface(21) = {19};


Line Loop(22) = {1,2,3,4,5,6,7,8,9,10};
Plane Surface(23) = {22};


Best regards,


-- 
Edmundo Santolaria Canales
PalMA Research Group ( http://www.palma-ucm.es/  <http://www.palma-ucm.es/>)
Dpt. of Earth Sciences,
Astronomy and Astrophysics
Faculty of Physical Sciences
Universidad Complutense de Madrid
Ciudad Universitaria
28040, Madrid, Spain
tel:    +34 913945195  
email:  edmundo.santolaria at fis.ucm.es <vrath at fis.ucm.es>
skype:  edmundo_santolaria_canales
mobile  +34 617283133





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20131128/02d3dbca/attachment.html>