126
126
#//Plane Surface( %(surface)i ) = { ILL + %(loopnumber)i };
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 + ') } )
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):
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;
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;
149
Background Field = IFI + 2;
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;
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;
150
//Background Field = IFI + 2;
151
152
// Dont extent the elements sizes from the boundary inside the domain
152
Mesh.CharacteristicLengthExtendFromBoundary = 0;
153
//Mesh.CharacteristicLengthExtendFromBoundary = 0;
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};
160
161
General.Trackball = 0 ;
161
162
General.RotationX = 180;