forked from su2code/SU2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSU2ASCIIMeshReaderFVM.cpp
More file actions
596 lines (507 loc) · 21.3 KB
/
CSU2ASCIIMeshReaderFVM.cpp
File metadata and controls
596 lines (507 loc) · 21.3 KB
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
/*!
* \file CSU2ASCIIMeshReaderFVM.cpp
* \brief Reads a native SU2 ASCII grid into linear partitions for the
* finite volume solver (FVM).
* \author T. Economon
* \version 8.4.0 "Harrier"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
*
* SU2 is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* SU2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with SU2. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../../../include/geometry/meshreader/CSU2ASCIIMeshReaderFVM.hpp"
CSU2ASCIIMeshReaderFVM::CSU2ASCIIMeshReaderFVM(CConfig* val_config, unsigned short val_iZone, unsigned short val_nZone)
: CSU2ASCIIMeshReaderBase(val_config, val_iZone, val_nZone) {
actuator_disk = (((config->GetnMarker_ActDiskInlet() != 0) || (config->GetnMarker_ActDiskOutlet() != 0)) &&
((config->GetKind_SU2() == SU2_COMPONENT::SU2_CFD) ||
((config->GetKind_SU2() == SU2_COMPONENT::SU2_DEF) && (config->GetActDisk_SU2_DEF()))));
if (config->GetActDisk_DoubleSurface()) actuator_disk = false;
/* Read the basic metadata and perform some basic error checks. */
const auto try_single_pass = !actuator_disk;
if (ReadMetadata(try_single_pass, val_config)) {
/* The file contents were read together with the metadata. */
return;
}
/* If the mesh contains an actuator disk as a single surface,
we need to first split the surface into repeated points and update
the connectivity for each element touching the surface. */
if (actuator_disk) SplitActuatorDiskSurface();
/* Read and store the points, interior elements, and surface elements.
We store only the points and interior elements on our rank's linear
partition, but the master stores the entire set of surface connectivity. */
mesh_file.open(meshFilename);
FastForwardToMyZone();
for (auto section : SectionOrder) {
switch (section) {
case FileSection::ELEMENTS:
ReadVolumeElementConnectivity();
break;
case FileSection::POINTS:
ReadPointCoordinates();
break;
case FileSection::MARKERS:
ReadSurfaceElementConnectivity();
break;
}
}
mesh_file.close();
}
CSU2ASCIIMeshReaderFVM::~CSU2ASCIIMeshReaderFVM() = default;
void CSU2ASCIIMeshReaderFVM::SplitActuatorDiskSurface() {
/*--- Actuator disk preprocesing ---*/
bool InElem, Perimeter;
unsigned long Counter = 0;
Xloc = 0.0;
Yloc = 0.0;
Zloc = 0.0;
unsigned long nElem_Bound_;
vector<unsigned long long> EdgeBegin, EdgeEnd;
unsigned long AuxEdge, iEdge, jEdge, nEdges, nPointVolume;
unsigned long long FirstEdgeIndex, SecondEdgeIndex;
vector<unsigned long> connectivity(N_POINTS_HEXAHEDRON, 0);
vector<unsigned long> ActDiskPoint_Front_Inv(numberOfGlobalPoints);
vector<unsigned long> ActDiskPoint_Front;
vector<unsigned long> VolumePoint;
vector<unsigned long> PerimeterPoint;
ActDiskNewPoints = 0;
/* Note this routine is hard-coded to split for only one actuator disk
boundary. Throw an error otherwise. */
if (config->GetnMarker_ActDiskInlet() > 1) {
SU2_MPI::Error(string("Current implementation can only split a single actuator disk.") +
string(" \n Remove disks or re-export your mesh with double surfaces (repeated points)."),
CURRENT_FUNCTION);
}
/*--- Open grid file ---*/
mesh_file.open(meshFilename);
FastForwardToMyZone();
/*--- Read grid file with format SU2 ---*/
string text_line;
string::size_type position;
while (getline(mesh_file, text_line)) {
position = text_line.find("NMARK=", 0);
if (position != string::npos) {
for (unsigned short iMarker = 0; iMarker < numberOfMarkers; iMarker++) {
getline(mesh_file, text_line);
text_line.erase(0, 11);
string::size_type position;
for (unsigned short iChar = 0; iChar < 20; iChar++) {
position = text_line.find(' ', 0);
if (position != string::npos) text_line.erase(position, 1);
position = text_line.find('\r', 0);
if (position != string::npos) text_line.erase(position, 1);
position = text_line.find('\n', 0);
if (position != string::npos) text_line.erase(position, 1);
}
string Marker_Tag = text_line;
getline(mesh_file, text_line);
text_line.erase(0, 13);
nElem_Bound_ = atoi(text_line.c_str());
if (Marker_Tag != config->GetMarker_ActDiskInlet_TagBound(0)) {
for (unsigned long iElem_Bound = 0; iElem_Bound < nElem_Bound_; iElem_Bound++) {
getline(mesh_file, text_line);
}
} else {
if (rank == MASTER_NODE)
cout << "Splitting the surface " << Marker_Tag << "( " << nElem_Bound_ << " boundary elements )." << endl;
/*--- Create a list of edges ---*/
for (unsigned long iElem_Bound = 0; iElem_Bound < nElem_Bound_; iElem_Bound++) {
getline(mesh_file, text_line);
unsigned short VTK_Type;
istringstream bound_line(text_line);
bound_line >> VTK_Type;
switch (VTK_Type) {
case LINE:
bound_line >> connectivity[0];
bound_line >> connectivity[1];
EdgeBegin.push_back(connectivity[0]);
EdgeEnd.push_back(connectivity[1]);
break;
case TRIANGLE:
bound_line >> connectivity[0];
bound_line >> connectivity[1];
bound_line >> connectivity[2];
EdgeBegin.push_back(connectivity[0]);
EdgeEnd.push_back(connectivity[1]);
EdgeBegin.push_back(connectivity[1]);
EdgeEnd.push_back(connectivity[2]);
EdgeBegin.push_back(connectivity[2]);
EdgeEnd.push_back(connectivity[0]);
break;
case QUADRILATERAL:
bound_line >> connectivity[0];
bound_line >> connectivity[1];
bound_line >> connectivity[2];
bound_line >> connectivity[3];
EdgeBegin.push_back(connectivity[0]);
EdgeEnd.push_back(connectivity[1]);
EdgeBegin.push_back(connectivity[1]);
EdgeEnd.push_back(connectivity[2]);
EdgeBegin.push_back(connectivity[2]);
EdgeEnd.push_back(connectivity[3]);
EdgeBegin.push_back(connectivity[3]);
EdgeEnd.push_back(connectivity[0]);
break;
}
}
/*--- Set the total number of edges ---*/
nEdges = EdgeBegin.size();
/*--- Sort edges based on local point index, first index is always the largest ---*/
for (iEdge = 0; iEdge < nEdges; iEdge++) {
if (EdgeEnd[iEdge] < EdgeBegin[iEdge]) {
AuxEdge = EdgeEnd[iEdge];
EdgeEnd[iEdge] = EdgeBegin[iEdge];
EdgeBegin[iEdge] = AuxEdge;
}
}
/*--- Bubble sort of the points based on the first index ---*/
for (iEdge = 0; iEdge < nEdges; iEdge++) {
for (jEdge = iEdge + 1; jEdge < nEdges; jEdge++) {
FirstEdgeIndex = EdgeBegin[jEdge] << 31;
FirstEdgeIndex += EdgeEnd[jEdge];
SecondEdgeIndex = EdgeBegin[iEdge] << 31;
SecondEdgeIndex += EdgeEnd[iEdge];
if (FirstEdgeIndex <= SecondEdgeIndex) {
AuxEdge = EdgeBegin[iEdge];
EdgeBegin[iEdge] = EdgeBegin[jEdge];
EdgeBegin[jEdge] = AuxEdge;
AuxEdge = EdgeEnd[iEdge];
EdgeEnd[iEdge] = EdgeEnd[jEdge];
EdgeEnd[jEdge] = AuxEdge;
}
}
}
if (dimension == 3) {
/*--- Check the begning of the list ---*/
if ((EdgeBegin[0] != EdgeBegin[1]) || (EdgeEnd[0] != EdgeEnd[1])) {
PerimeterPoint.push_back(EdgeBegin[0]);
PerimeterPoint.push_back(EdgeEnd[0]);
}
for (iEdge = 1; iEdge < nEdges - 1; iEdge++) {
bool Check_1 = (EdgeBegin[iEdge] != EdgeBegin[iEdge - 1]) || (EdgeEnd[iEdge] != EdgeEnd[iEdge - 1]);
bool Check_2 = (EdgeBegin[iEdge] != EdgeBegin[iEdge + 1]) || (EdgeEnd[iEdge] != EdgeEnd[iEdge + 1]);
if ((Check_1 && Check_2)) {
PerimeterPoint.push_back(EdgeBegin[iEdge]);
PerimeterPoint.push_back(EdgeEnd[iEdge]);
}
}
/*--- Check the end of the list ---*/
if ((EdgeBegin[nEdges - 1] != EdgeBegin[nEdges - 2]) || (EdgeEnd[nEdges - 1] != EdgeEnd[nEdges - 2])) {
PerimeterPoint.push_back(EdgeBegin[nEdges - 1]);
PerimeterPoint.push_back(EdgeEnd[nEdges - 1]);
}
} else {
/*--- Create a list with all the points ---*/
for (iEdge = 0; iEdge < nEdges; iEdge++) {
ActDiskPoint_Front.push_back(EdgeBegin[iEdge]);
ActDiskPoint_Front.push_back(EdgeEnd[iEdge]);
}
sort(ActDiskPoint_Front.begin(), ActDiskPoint_Front.end());
/* unique call removed to preserve frequency information for perimeter detection */
/*--- Check the begning of the list ---*/
if (!(ActDiskPoint_Front[0] == ActDiskPoint_Front[1])) {
PerimeterPoint.push_back(ActDiskPoint_Front[0]);
}
for (unsigned long iPoint = 1; iPoint < ActDiskPoint_Front.size() - 1; iPoint++) {
bool Check_1 = !((ActDiskPoint_Front[iPoint] == ActDiskPoint_Front[iPoint - 1]));
bool Check_2 = !((ActDiskPoint_Front[iPoint] == ActDiskPoint_Front[iPoint + 1]));
if ((Check_1 && Check_2)) {
PerimeterPoint.push_back(ActDiskPoint_Front[iPoint]);
}
}
/*--- Check the end of the list ---*/
if (!((ActDiskPoint_Front[ActDiskPoint_Front.size() - 1] ==
ActDiskPoint_Front[ActDiskPoint_Front.size() - 2]))) {
PerimeterPoint.push_back(ActDiskPoint_Front[ActDiskPoint_Front.size() - 1]);
}
ActDiskPoint_Front.clear();
}
vector<unsigned long>::iterator it;
sort(PerimeterPoint.begin(), PerimeterPoint.end());
it = unique(PerimeterPoint.begin(), PerimeterPoint.end());
PerimeterPoint.resize(it - PerimeterPoint.begin());
for (iEdge = 0; iEdge < nEdges; iEdge++) {
Perimeter = false;
for (unsigned long iPoint = 0; iPoint < PerimeterPoint.size(); iPoint++) {
if (EdgeBegin[iEdge] == PerimeterPoint[iPoint]) {
Perimeter = true;
break;
}
}
if (!Perimeter) ActDiskPoint_Front.push_back(EdgeBegin[iEdge]);
Perimeter = false;
for (unsigned long iPoint = 0; iPoint < PerimeterPoint.size(); iPoint++) {
if (EdgeEnd[iEdge] == PerimeterPoint[iPoint]) {
Perimeter = true;
break;
}
}
if (!Perimeter) ActDiskPoint_Front.push_back(EdgeEnd[iEdge]);
}
/*--- Sort, and remove repeated points from the disk list of points ---*/
sort(ActDiskPoint_Front.begin(), ActDiskPoint_Front.end());
it = unique(ActDiskPoint_Front.begin(), ActDiskPoint_Front.end());
ActDiskPoint_Front.resize(it - ActDiskPoint_Front.begin());
ActDiskNewPoints = ActDiskPoint_Front.size();
if (rank == MASTER_NODE)
cout << "Splitting the surface " << Marker_Tag << "( " << ActDiskPoint_Front.size() << " internal points )."
<< endl;
/*--- Create a map from original point to the new ones (back plane) ---*/
ActDiskPoint_Back.resize(numberOfGlobalPoints);
ActDisk_Bool.resize(numberOfGlobalPoints);
for (unsigned long iPoint = 0; iPoint < numberOfGlobalPoints; iPoint++) {
ActDisk_Bool[iPoint] = false;
ActDiskPoint_Back[iPoint] = 0;
}
unsigned long kPoint = numberOfGlobalPoints;
for (unsigned long iPoint = 0; iPoint < ActDiskPoint_Front.size(); iPoint++) {
ActDiskPoint_Front_Inv[ActDiskPoint_Front[iPoint]] = iPoint;
ActDisk_Bool[ActDiskPoint_Front[iPoint]] = true;
ActDiskPoint_Back[ActDiskPoint_Front[iPoint]] = kPoint;
kPoint++;
}
}
}
break;
}
}
mesh_file.close();
/*--- Store the coordinates of the new points ---*/
CoordXActDisk.resize(ActDiskNewPoints);
CoordYActDisk.resize(ActDiskNewPoints);
CoordZActDisk.resize(ActDiskNewPoints);
/* Open the mesh file again to read the coordinates of the new points. */
mesh_file.open(meshFilename);
FastForwardToMyZone();
while (getline(mesh_file, text_line)) {
position = text_line.find("NPOIN=", 0);
if (position != string::npos) {
for (unsigned long iPoint = 0; iPoint < numberOfGlobalPoints; iPoint++) {
getline(mesh_file, text_line);
istringstream point_line(text_line);
su2double Coords[3] = {0.0, 0.0, 0.0};
if (dimension == 2) {
point_line >> Coords[0];
point_line >> Coords[1];
} else {
point_line >> Coords[0];
point_line >> Coords[1];
point_line >> Coords[2];
}
/*--- Compute the CG of the actuator disk surface ---*/
if (ActDisk_Bool[iPoint]) {
CoordXActDisk[ActDiskPoint_Front_Inv[iPoint]] = Coords[0];
CoordYActDisk[ActDiskPoint_Front_Inv[iPoint]] = Coords[1];
Xloc += Coords[0];
Yloc += Coords[1];
if (dimension == 3) {
CoordZActDisk[ActDiskPoint_Front_Inv[iPoint]] = Coords[2];
Zloc += Coords[2];
}
Counter++;
}
}
}
/*--- Locate and tag points that touch the actuator disk surface. ---*/
position = text_line.find("NELEM=", 0);
if (position != string::npos) {
for (unsigned long iElem = 0; iElem < numberOfGlobalElements; iElem++) {
getline(mesh_file, text_line);
istringstream elem_line(text_line);
unsigned short VTK_Type;
elem_line >> VTK_Type;
switch (VTK_Type) {
case TRIANGLE:
elem_line >> connectivity[0];
elem_line >> connectivity[1];
elem_line >> connectivity[2];
InElem = false;
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_TRIANGLE); i++) {
if (ActDisk_Bool[connectivity[i]]) {
InElem = true;
break;
}
}
if (InElem) {
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_TRIANGLE); i++) {
VolumePoint.push_back(connectivity[i]);
}
}
break;
case QUADRILATERAL:
elem_line >> connectivity[0];
elem_line >> connectivity[1];
elem_line >> connectivity[2];
elem_line >> connectivity[3];
InElem = false;
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_QUADRILATERAL); i++) {
if (ActDisk_Bool[connectivity[i]]) {
InElem = true;
break;
}
}
if (InElem) {
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_QUADRILATERAL); i++) {
VolumePoint.push_back(connectivity[i]);
}
}
break;
case TETRAHEDRON:
elem_line >> connectivity[0];
elem_line >> connectivity[1];
elem_line >> connectivity[2];
elem_line >> connectivity[3];
InElem = false;
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_TETRAHEDRON); i++) {
if (ActDisk_Bool[connectivity[i]]) {
InElem = true;
break;
}
}
if (InElem) {
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_TETRAHEDRON); i++) {
VolumePoint.push_back(connectivity[i]);
}
}
break;
case HEXAHEDRON:
elem_line >> connectivity[0];
elem_line >> connectivity[1];
elem_line >> connectivity[2];
elem_line >> connectivity[3];
elem_line >> connectivity[4];
elem_line >> connectivity[5];
elem_line >> connectivity[6];
elem_line >> connectivity[7];
InElem = false;
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_HEXAHEDRON); i++) {
if (ActDisk_Bool[connectivity[i]]) {
InElem = true;
break;
}
}
if (InElem) {
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_HEXAHEDRON); i++) {
VolumePoint.push_back(connectivity[i]);
}
}
break;
case PRISM:
elem_line >> connectivity[0];
elem_line >> connectivity[1];
elem_line >> connectivity[2];
elem_line >> connectivity[3];
elem_line >> connectivity[4];
elem_line >> connectivity[5];
InElem = false;
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_PRISM); i++) {
if (ActDisk_Bool[connectivity[i]]) {
InElem = true;
break;
}
}
if (InElem) {
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_PRISM); i++) {
VolumePoint.push_back(connectivity[i]);
}
}
break;
case PYRAMID:
elem_line >> connectivity[0];
elem_line >> connectivity[1];
elem_line >> connectivity[2];
elem_line >> connectivity[3];
elem_line >> connectivity[4];
InElem = false;
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_PYRAMID); i++) {
if (ActDisk_Bool[connectivity[i]]) {
InElem = true;
break;
}
}
if (InElem) {
for (unsigned long i = 0; i < static_cast<unsigned long>(N_POINTS_PYRAMID); i++) {
VolumePoint.push_back(connectivity[i]);
}
}
break;
}
}
}
}
mesh_file.close();
/*--- Compute the CG of the surface ---*/
Xloc /= su2double(Counter);
Yloc /= su2double(Counter);
Zloc /= su2double(Counter);
/*--- Sort and remove repeated points from the disk list of points. ---*/
vector<unsigned long>::iterator it;
sort(VolumePoint.begin(), VolumePoint.end());
it = unique(VolumePoint.begin(), VolumePoint.end());
VolumePoint.resize(it - VolumePoint.begin());
nPointVolume = VolumePoint.size();
/*--- Prepare some class data vectors for storage. ---*/
CoordXVolumePoint.resize(nPointVolume);
CoordYVolumePoint.resize(nPointVolume);
CoordZVolumePoint.resize(nPointVolume);
VolumePoint_Inv.resize(numberOfGlobalPoints);
vector<bool> MapVolumePointBool(numberOfGlobalPoints);
for (unsigned long iPoint = 0; iPoint < numberOfGlobalPoints; iPoint++) {
MapVolumePointBool[iPoint] = false;
}
for (unsigned long iPoint = 0; iPoint < nPointVolume; iPoint++) {
MapVolumePointBool[VolumePoint[iPoint]] = true;
VolumePoint_Inv[VolumePoint[iPoint]] = iPoint;
}
/*--- Store the coordinates of all the surface and volume
points that touch the actuator disk ---*/
mesh_file.open(meshFilename);
FastForwardToMyZone();
while (getline(mesh_file, text_line)) {
position = text_line.find("NPOIN=", 0);
if (position != string::npos) {
for (unsigned long iPoint = 0; iPoint < numberOfGlobalPoints; iPoint++) {
getline(mesh_file, text_line);
istringstream point_line(text_line);
su2double Coords[3] = {0.0, 0.0, 0.0};
if (dimension == 2) {
point_line >> Coords[0];
point_line >> Coords[1];
} else {
point_line >> Coords[0];
point_line >> Coords[1];
point_line >> Coords[2];
}
if (MapVolumePointBool[iPoint]) {
CoordXVolumePoint[VolumePoint_Inv[iPoint]] = Coords[0];
CoordYVolumePoint[VolumePoint_Inv[iPoint]] = Coords[1];
if (dimension == 3) {
CoordZVolumePoint[VolumePoint_Inv[iPoint]] = Coords[2];
}
}
}
break;
}
}
/* Lastly, increment the total number of points in order to add the
new repeated points on the actuator disk. We also increment the
number of markers by one. */
numberOfGlobalPoints += ActDiskNewPoints;
numberOfMarkers++;
mesh_file.close();
}