-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.dat
728 lines (496 loc) · 20.7 KB
/
start.dat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
//--------------------------------------------------------------------
//---------------- UNIVERSIDADE FEDERAL DE PERNAMBUCO ----------------
//---------------- CENTRO DE TECNOLOGIA E GEOCIENCIAS ----------------
//---------- PROGRAMA DE POS GRADUACAO EM ENGENHARIA CIVIL -----------
//--------------------------------------------------------------------
//Work developed by: Marcio Souza , Luiz E. Queiroz e Artur Castiel
//Advisor Professors: Paulo Lyra & Darlan Carvalho
//Create date: 13/12/2011
//--------------------------------------------------------------------
//------------------- PREPROCESSOR INITIALIZATION --------------------
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//-------------------------- Set Benchmark ---------------------------
//--------------------------------------------------------------------
//Do you want to run a benchmark case? [y] ==> "yes"; [n] ==> "no".
n
//If [y], write below the path where where you want to store the
//results (vtk, images, tables):
//***OBS.: Even if you chose [n], write below both the path and
//folder's name where you want to store your results:
/home/arturcastiel/projetos/mscv/resultados
//Write below either a number or any other key word to feature the
//folder where the results will be stored:
//***OBS.: If you set "0", the folder "Results" and other will be
//created into folder set above:
Teste123
//--------------------------------------------------------------------
//------------------------ Solver Properties -------------------------
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//Type of Simulation
//Write below the type of simulation:
//[0] ==> "Only Hyperbolic Equation";
//[1] ==> "One Phase-Flow";
//[2] ==> "Two Phase-Flow".
1
//--------------------------------------------------------------------
//Coordinate System (only 2D application)
//Write below the Coordinate System:
//[xy] ==> "Cartesian Coordinate System";
//[rz] ==> "Polar Coordinate System";
xy
//If you chose [rz], write below the minimum radius and, immediately
//below, the vector which define the symmetry axe:
//IMPORTANT: Avoid type "0" for define the "minimum radius". Instead,
//type a very low number (1e-10, for example)
1e-8
0 1 0
//--------------------------------------------------------------------
//MultiScale Properties
//Do you want to run Multi-Scale Finite Volume Method?
//[y] ==> "yes"; [n] ==> "no".
y
//If [y], write below the Coarsening Ratio. Set two values for the
//"x" and "y" direction:
2 2
// Coarse Cell Center for Coarse Cells on the Boundary
// [1] - Olav Moyner's Center Condition
// [2] - Lorena's Center Condition
1
//--------------------------------------------------------------------
//Type of Solver for the Eliptic Equation (Pressure Equation)
//Write below the type of Solver for the Eliptic Equation:
//[tpfa] ==> "Two-Point Flux Approximation" (Traditional Scheme);
//[mpfao] ==> "Multi-Point Flux Approximation" (type O);
//[mpfad] ==> "Multi-Point Flux Approximation" (type Diamond);
tpfa
//If you chose [fps] or [mpfae], write below the auxiliary control
//volume factor. It defines the auxiliary control volume size.
0.2
//If you chose [mpfad], [nlfv] or [gmnl], you must set additional
//parameters:
//Write below the type of nodal interpolation:
//[id] ==> "Inverse Distance Interpolation";
//[li] ==> "Linear Interpolation";
//[hpi] ==> "Harmonic Point Interpolation" (Only for [gmnl]);
//[lpew1] ==> "Linear Preserving Explicit Weighted" (type 1);
//[lpew2] ==> "Linear Preserving Explicit Weighted" (type 2).
lpew2
//If you chose a non-linear scheme, [nlfv] or [gmnl], you must set
//both Tolerance and Maximum Iteraction:
//Write below the Tolerance for the non-linear system solution:
1e-10
//Write below the Maximum Number of Iteraction allowed for the
//non-linear system solution:
500
//--------------------------------------------------------------------
//Type of Solver for the Hyperbolic Equation (Saturation Equation)
//Write below the type of Solver for the Hyperbolic Equation:
//[stdr] ==> "Standard Schemes";
//[mwec] ==> "Mass Weighted with Explicit Coefficient" (MultiD);
//[mwic] ==> "Mass Weighted with Implicit Coefficient" (Kozdon);
//[goef] ==> "Goe Free Scheme" (Eymard et al., 2011).
stdr
//--------------------------------------------------------------------
//Truly MultiDimensional Parameters
//If you chose either [mwec] or [mwic], write below the type of
//weight for the convex combination:
//[1] ==> "TMU" (Tight Multidimensional Upstream);
//[2] ==> "SMU" (Smooth Multidimensional Upstream);
//[3] ==> "SMU2" (A Smooth Multidimensional Upstream Variation).
1
//Additionaly, write below where the multidimensionality occurs:
//[1] ==> "into Water Saturation";
//[2] ==> "into Fractional Flux".
1
//If you chose [goef], write below the value for the weight "w" and
//the parameter "ni". It must be written as a row vector ("w" "ni"):
0.1 0.3
//--------------------------------------------------------------------
//Orders for the Approximations (space and time)
//Write below the Order for the Hyperbolic Operator approximation.
//It must be up to 6th order:
1
//Write below the type of approximation for the time term:
//[1] ==> "Forward Euler";
//[2] ==> "Runge-Kutta 2";
//[3] ==> "Runge-Kutta 3";
//[4] ==> "Runge-Kutta 4".
1
//--------------------------------------------------------------------
//Strategies for the Variable Reconstruction
//***OBS.: It works only for order bigger than 1.
//Choose which type of recovery strategy do you want:
//[tse] ==> "Taylor Serie Expansion";
//[cpr] ==> "Correction Procedure via Reconstruction";
//[ggg] ==> "Green-Gauss Gradient" (Durlofsky et al., 1992).
tse
//-------------------------
//Least Squares Parameters:
//If you chose [tse], define the type of vicinity for the Least
//Squares reconstruction:
//[1] ==> "Face Neighboring";
//[2] ==> "Full Neighboring" (face and vertices).
1
//***OBS.: It works up to third order reconstruction. For the bigger
//orders, Full Neighboring is mandatory.
//If you chose [tse] and want to use weights for the Least Squares
//procedure, set a value for the inverse distance exponent. Setting
//"0" means NO Weighted Least Squares.
1
//--------------------------------------------------------------------
//Limiting Strategies and Greek Correction
//***OBS.: It is not necessary for One-Phase Flow applications.
//-------------------
//Edge-based Limiter:
//Is there an Edge-based Limiter? [y] ==> "yes"; [n] ==> "no".
n
//If [y], choose among the Edge-Based limiters below:
//[mm] ==> "MinMod";
//[sb] ==> "SuperBee";
//[bj] ==> "Barth-Jespersen";
//[va1] ==> "vanAlbada 1" (see vanAlbada et al., 1982);
//[va2] ==> "vanAlbada 2" (see L�hner, 2001);
//[vl1] ==> "vanLeer 1";
//[vl2] ==> "vanLeer 2" (see Berger, 2005);
//[nl2] ==> "new Limiter type 2" (see Mandal, 2008);
//[nl3] ==> "new Limiter type 3" (see Mandal, 2008).
va2
//Write below the type of Gradient Interpolation (Blasek, 2001):
//[-1] ==> "Higher Order Upwind"; [0] ==> "Centered Scheme".
0.333333
//--------------------
//Patch-based Limiter:
//Is there a Patch-based Limiter? [y] ==> "yes"; [n] ==> "no"
n
//If [y], choose among the Patch-Based limiters below:
//[wf] ==> "Woodfield Strategy";
//[mlp] ==> "Multidimensional Limiting Process";
//[mlp_vk] ==> "MLP, type Venkathakrishnen (see Park and Kim, 2012).
mlp_vk
//If you chose [wf], write below the additional parameter ("delta"):
0.2
//-----------------
//Greek Correction:
//Do you want to turn the Greek Correction on? (Delis and Nikolos,
//2012) [y] ==> "yes"; [n] ==> "no"
n
//--------------
//MOOD Strategy:
//Do you want to turn the MOOD on? [y] ==> "yes"; [n] ==> "no".
n
//If [y], write below the type of the MOOD strategy (see Clain et
//al., 2012):
//[1] ==> "Minimum order value between those sharing the face";
//[2] ==> "Minimum order value among those ones suronding the CV".
1
//--------------------------------------------------------------------
//------------------- Geometry and Mesh Properties -------------------
//--------------------------------------------------------------------
//Do you have a mesh file? [y] ==> "yes"; [n] ==> "no".
y
//If [y], write below the path where the mesh file is:
/home/arturcastiel/projetos/mscv/grids
//Write below the name of the mesh file. Use the extension *.msh:
speH.msh
//If [n], write below the path where the geometry file is:
C:\pesquisa\input\geo\
//Write below the name of the geometry file. Use the extension *.geo.
malha5_33_3.geo
//--------------------------------------------------------------------
//----------------- General Options (Configure gmsh) -----------------
//--------------------------------------------------------------------
//The name of file to be used to configure gmsh in the current
//simulation (*.opt) will be the same attributed to *.geo.
//OBS.: If the *.msh already exists this section is unecessary.
//--------------------------------------------------------------------
//Type of mesh:
//Is your mesh structured? [y] ==> "yes"; [n] ==> "no".
y
//If [y] enter with the informations in the "STRUCTURED MESH":
//If [n] enter with the informations in the "UNSTRUCTURED MESH":
//----------------
//STRUCTURED MESH:
//Write below the follow sequence in both directions "x" and "y":
//1. The number of statments to be applyed in each direction;
//2. In other row put in sequence (same row) the number of points
//which will divide each direction, the growth rate and geometric
//tag which will receive this parameters:
//Direction "x" (number of statments, number of points, growth rate
//and two geometric tag)
1
40 1 1 3
//Direction "y" (number of statments, number of points, growth rate
//and two geometric tag)
1
40 1 2 4
//------------------
//UNSTRUCTURED MESH:
//Write below the average size for the control volumes:
//[1] ==> "DEFAULT value"
0.1
//Write below the maximum size admissible for the control volumes:
//[1e22] ==> "DEFAULT Option"
1e22
//Write below the minimum size admissible for the control volumes:
//[0] ==> "DEFAULT Option"
0
//--------------------------------------------------------------------
//Type of element (applyed to both structured or unstructured):
//Set the type of control volume that you want. It is valid for both
//structured and unstructured mesh:
//[0] ==> "Triangles";
//[1] ==> "Quadrangles";
//[2] ==> "Both".
1
//OBS.:
//The option "Both" does not work when the mesh is structured.
//In this case, the mesh can be constituted of either triangles
//[0] or quadrangles [1].
//--------------------------------------------------------------------
//Type of algorithm used to construct the mesh:
//Set the type of algorithm for construct the mesh:
//[1] ==> "MeshAdapt";
//[5] ==> "Delaunay";
//[6] ==> "Frontal."
1
//--------------------------------------------------------------------
//Parameters related to mesh refinement
//Set the type of remeshing algorithm:
//[0] ==> "No split"; [1] ==> "Automatic"
0
//How many times do you want to refine, uniformily, your mesh?
//[0] ==> "Not refine"; [n] ==> "Refine n times".
0
//Do you want to apply a scale factor in all element sizes?
//If you want, write below the scale factor or leave "DEFAULT"
//[1] ==> "DEFAULT Option".
1
//--------------------------------------------------------------------
//View of mesh generated:
//Do you want to open the gmsh user interface after mesh genaration?
//[y] ==> "yes"; [n] ==> "no".
n
//--------------------------------------------------------------------
//----------------------- Physical Parameters ------------------------
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//Density of fluid(s):
//Is the DENSITY a function of pressure field?
//[y] ==> "yes"; [n] ==> "no".
n
//If [y], a file reporting pressure and DENSITY (of water and oil)
//must contain, preferencialy, three columns as follows:
//1. pressure range; 2. water DENSITY; oil DENSITY.
//The name of table file must be written below:
densitytable.dat
//If [n] the values of DENSITY are written below as follows:
//1. The first number means the amount of phases considered;
//2. In a row below, the value(s) is(are) associed to DENSITY of
//the fluid(s) considered. Water and oil must be the order.
2
1 0.8
//--------------------------------------------------------------------
//Viscosity of fluids considered (cP):
//Is the VISCOSITY a function of pressure field?
//[y] ==> "yes"; [n] ==> "no".
n
//If [y], a file reporting pressure and VISCOSITY (of water and oil)
//must contain, preferencialy, three columns as follows:
//1. pressure range; 2. water VISCOSITY; oil VISCOSITY.
//The name of table file must be written below:
viscositytable.dat
//If [n] the values of VISCOSITY are written below as follows:
//1. The first number means the amount of phases considered;
//2. In a row below, the value(s) is(are) associed to VISCOSITY of
//the fluid(s) considered. Water and oil must be the order.
2
0.2 1
//--------------------------------------------------------------------
//Unredutible water sat. (Swr) and residual oil sat. (Sor):
//***OBS.: It is necessary only for two-phase flow applications.
//Write below the value of unredutible water saturation (Swr) and,
//in sequence, the value of residual oil saturation (Sor):
0 0
//--------------------------------------------------------------------
//Distribution of permeability tensor k (Darcy):
//Is your media highly heterogeneous?
//[r] ==> "yes with random value";
//[y] ==> "yes" (each control volume has a permeability value);
//[n] ==> "no" (the permeability value is attributed to layer(s)).
n
//If [r], the matlab generates a randomic distribution with the
//component values variating between the minimum and maximum values.
//Once you chose [r] you have to write below these values:
//Write firstly the min and, after that, the max (use one row).
1 100
//If [y], the permeability values are obtained from a file *.dat.
//Write below the path to this file (with the file's name).
//***OBS.: If you do not have a file and the permeability field
//is given by a function, for example, write "0" instead:
0
//If [n], each tensor will be associated with a layer considered
//and it will be constant through it.
//Its values will be read from distribution below:
//Write below the amount of layers considered:
1
//In sequence, a number (1,2,...,n) is associated with the physical
//group where the permeability distribution is valid (for example: 1
//is related to first region, 2 is related with the second one, n is
//related to nth region).
//The four subsequent numbers are the cartesian components of a
//tensor written as a 2x2 matrix - (row1 xx xy; row2 yx yy).
//***OBS.: The number of each layer will apear in "elem" matrix
//(5th column).
//IMPORTANT: the order applyed to physical groups must be the same
//used to "draw" the surfaces during CAD building. (*.geo).
1
1 0
0 1
//--------------------------------------------------------------------
//Distribution of porosity:
//Do you have a media with CONSTANT porosity (by layer)?
//[y] ==> "yes"; [n] ==> "no".
y
//If [y], each layer will receive a constant value of porosity.
//Write them below as follows:
//1. In the first row write the amount of layers that will receive
//different values of porosity;
//2. In a row below, the sequence of porosity values in a row vector
//(each one must be associated to its layer).
1
1
//If [n], each control volume will have a different value of porosity
//Get it from an external file. Write below both the path and name of
//the file:
porosity.dat
//--------------------------------------------------------------------
//Gravity and Capilarity:
//Do you want turn GRAVITY on in your Mathematic Model?
//[y] ==> "yes"; [n] ==> "no".
n
//If [y], write below the gravity vector (in the same row: gx gy gz):
-10 0 0
//Do you want turn CAPILARITY on in your Mathematic Model?
//[y] ==> "yes"; [n] ==> "no".
n
//If [y], write below the Corey Model Exponent:
0
//--------------------------------------------------------------------
//------------------------ Boundary Condition ------------------------
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//Treatment of Boundary Faces:
//Use the following nomenclature to classify the type of BC:
//[101 to 200] ==> "Dirichlet Boundary Condition";
//[201 to 300] ==> "Neumann Boundary Condition";
//[601 to 700] ==> "Periodic Boundary Condition" (only hyperbolic).
//For a general attribution, write the sequense below:
//1. The amount of boundary condition statment;
//2. In another row, write the type of boundary condition
//(Dirichlet, Neumann or Periodic);
//3. In the same row, put the algebric value of this BC.
1
201 0
//--------------------------------------------------------------------
//Treatment of Boundary Points
//For to attribute boundary condition in each point of geometry you
//must write below as follows:
//1. The amount of boundary condition statment (for geometric POINT);
//2. In another row, the sequence of codes to be associated with
//each point group.
1
201
//--------------------------------------------------------------------
//----------------------- Convergence Criteria -----------------------
//--------------------------------------------------------------------
//Some parameters must be set in order to control the convergence
//procedure. The Courant number and the total simulation time are,
//some examples.
//--------------------------------------------------------------------
//Courant Number
//The Courant number will be used as a stability parameter of the
//hyperbolic saturation equation. Write below the Courant number:
0.6
//--------------------------------------------------------------------
//Unity for Time (only for Two-Phase Simulation):
//Write below the time unity for the simulation:
//[s] ==> "to dimentional time" (seconds, days, etc);
//[pvi] ==> "to non-dmentional time" (Pore Volume Injected).
pvi
//--------------------------------------------------------------------
//Total time of simulation (days) or PVI's value (adm)
//This parameter denots either the time of simulation or the value
//of Pore Volume Injected. This value will be used in the unstead
//state simulation (parameter of stop). Write below the amount of
//days or the PVI's value instead:
1.25
//--------------------------------------------------------------------
//------------------------------- Wells ------------------------------
//--------------------------------------------------------------------
//The user must setup the wells as follows:
//1. Enter with the amount of wells (just this information in the
//current row);
//After that, put in the line immediately below (one row by well):
//2. The surface's number where the well is located: put these in
//an increasing order (1,1,1,2,2,...,n);
//3. In sequence, both coordinates x and y (for the time being);
//4. The "influence ray" (well radius) of evaluated well (adm);
//***OBS.: All elements inside of this influence radius receives a
//source term ("injector" or "producer").
//5. A flag for saturation (injectors wells). This flag must vary
//between [301 and 400]. If it is a producer well, "0" must be
//written;
//6. The saturation's value. If it is a producer well, "0" must be
//written;
//7. The flag for pressure:
//For injector well, the flag must vary between [401 and 500];
//For producer well, the falg must vary between [501 and 600];
//8. The value of pressure in the well (injector or producer).
//IMPORTANT: if "0" is written in the last pressure flag, the value
//written in this column is associated with FLOW RATE in the well;
//9. The type of well:
//[0] ==> "point well" (unstructured mesh);
//[1] ==> "point well" (structured mesh);
//[2] ==> "line well" (structured mesh);
//[3] ==> "line well" (unstructured mesh, just inside domain).
//IMPORTANT: If does not exist any well, replace the amount already
//written by "0";
//if you write "0" replacing the number of wells, it will be not
//necessary to erase the numbers below. Keep it to reference.
2
1 0 0 0.05 301 1 0 1 1
1 1 1 0.05 0 0 501 1 0
//
2
1 0 0 0.05 0 0 501 3 1
1 1 1 0.05 0 0 502 12 1
//
2
1 0 0 0.05 301 1 0 1 1
1 1 1 0.05 0 0 501 0 1
//
2
1 0 0 0.05 0 0 501 0 1
1 1 1 0.05 0 0 502 1 1
//
2
1 0 0 0.05 301 1 0 1 1
1 1 1 0.05 0 0 501 0 1
//
2
1 0 0 0.05 0 1 501 1 1
1 1 1 0.05 0 0 502 0 1
//
2
1 0 0 0.05 301 1 0 1 1
1 1 1 0.05 0 0 501 0 2
//
0 0 0 0.00 401 1 0 10 0
0 1 1 0.00 0 0 501 0 0
//
//1 0 1 0.05 301 1 0 10 3
//1 0 0 0.05 301 1 0 10 3
//1 1 0 0.05 0 0 501 0 3
//1 1 1 0.05 0 0 501 0 3