~meshing/meshing/hasty_merge_in_of_documentation2

« back to all changes in this revision

Viewing changes to gmsh.py

  • Committer: Alexandros Avdis
  • Date: 2012-05-18 21:48:08 UTC
  • mfrom: (1.1.10 meshing)
  • Revision ID: a.avdis@imperial.ac.uk-20120518214808-vwiq5z4fbowmz0m1
Commit following merge from branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
#//Plane Surface( %(surface)i ) = { ILL + %(loopnumber)i };
127
127
  output.write('''
128
128
Plane Surface( %(surface)i ) = { %(boundary_list)s };
 
129
Physical Surface( %(surface)i ) = { %(surface)i };
129
130
''' % { 'loopnumber':index.path, 'surface':boundary.surface + 1, 'boundary_list':list_to_comma_separated(index.loops, prefix = 'ILL + ') } )
130
131
 
131
132
 
134
135
     some other options to the geo file, an operation that should probably be performed somewhere else.'''
135
136
  if (index.contour is not None):
136
137
    output.write('''
137
 
Printf("Assigning characteristic mesh sizes...");
138
 
Field[ IFI + 1] = Attractor;
139
 
Field[ IFI + 1].EdgesList = { 999999, %(boundary_list)s };
140
 
Field [ IFI + 1 ].NNodesByEdge = 5e4;
141
 
 
142
 
Field[ IFI + 2] = Threshold;
143
 
Field[ IFI + 2].DistMax = 2e6;
144
 
Field[ IFI + 2].DistMin = 3e4;
145
 
Field[ IFI + 2].IField = IFI + 1;
146
 
Field[ IFI + 2].LcMin = 5e4;
147
 
Field[ IFI + 2].LcMax = 2e5;
148
 
 
149
 
Background Field = IFI + 2;
150
 
 
 
138
//Printf("Assigning characteristic mesh sizes...");
 
139
//Field[ IFI + 1] = Attractor;
 
140
//Field[ IFI + 1].EdgesList = { 999999, %(boundary_list)s };
 
141
//Field [ IFI + 1 ].NNodesByEdge = 5e4;
 
142
//
 
143
//Field[ IFI + 2] = Threshold;
 
144
//Field[ IFI + 2].DistMax = 2e6;
 
145
//Field[ IFI + 2].DistMin = 3e4;
 
146
//Field[ IFI + 2].IField = IFI + 1;
 
147
//Field[ IFI + 2].LcMin = 5e4;
 
148
//Field[ IFI + 2].LcMax = 2e5;
 
149
//
 
150
//Background Field = IFI + 2;
 
151
//
151
152
// Dont extent the elements sizes from the boundary inside the domain
152
 
Mesh.CharacteristicLengthExtendFromBoundary = 0;
153
 
 
 
153
//Mesh.CharacteristicLengthExtendFromBoundary = 0;
 
154
//
154
155
//Set some options for better png output
155
 
General.Color.Background = {255,255,255};
156
 
General.Color.BackgroundGradient = {255,255,255};
157
 
General.Color.Foreground = Black;
158
 
Mesh.Color.Lines = {0,0,0};
 
156
//General.Color.Background = {255,255,255};
 
157
//General.Color.BackgroundGradient = {255,255,255};
 
158
//General.Color.Foreground = Black;
 
159
//Mesh.Color.Lines = {0,0,0};
159
160
 
160
161
General.Trackball = 0 ;
161
162
General.RotationX = 180;