1 /*****************************************************************************/
2 /* 8888888 88888888 88888888 */
5 /* 8 88888888 88888888 */
8 /* 888888 888888888 888888888 */
10 /* A Two-Dimensional General Purpose Semiconductor Simulator. */
13 /* Last update: Apr 13, 2006 */
17 /* NINT, No.69 P.O.Box, Xi'an City, China */
19 /*****************************************************************************/
30 #include "interface.h"
40 char basename
[32]; //cgns base name
41 double mesh_scale
; //this value will be mul to coordinate
42 int bc_num
; //total bc num summed by each zone num
43 vector
<GNode
> gnode
; //these are global mesh structure
45 vector
<GSegment
> gsegment
; //used for mesh refine
49 ZoneInterface zinterface
;
52 //variables and functions for drawing mesh
53 double xMin
; // minimum value of x coordinate
54 double xMax
; // maximum value of x coordinate
55 double yMin
; // minimum value of y coordinate
56 double yMax
; // maximum value of y coordinate
58 ZONE
* Get_zone(const char *);
59 ZONE
* Get_zone(const int);
60 int Get_zone_index(const char *);
61 Segment
* Get_segment(const int);
62 int* reorder_zone(int); //needed only by solver.
64 int import_cgns(const char *cgnsfile
);
65 void export_mesh(const char *cgnsfile
);
73 MESH ():mesh_scale(1e6
),bc_num(0),zone_num(0),zone(0)
74 {xMin
= +1.0e100
; yMin
= +1.0e100
; xMax
= -1.0e100
; yMax
= -1.0e100
;}
75 ~MESH () {delete [] zone
;}
76 void set_mesh_scale(double scale
) {mesh_scale
= scale
;}