-
Notifications
You must be signed in to change notification settings - Fork 0
/
BDRY2.SIF
161 lines (121 loc) · 3.53 KB
/
BDRY2.SIF
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
***************************
* SET UP THE INITIAL DATA *
***************************
NAME BDRY2
* Problem :
* *********
* The bdry2_0 & _1.mod AMPL models from Hans Mittelmann ([email protected])
* See: http://plato.asu.edu/ftp/barrier/
* SIF input: Nick Gould, April 25th 2012
* classification QLR2-AN-V-V
* the x-y discretization
IE N 3 $-PARAMETER
IE N 499 $-PARAMETER
*IE N 1999 $-PARAMETER bdry2_0.mod value
*IE N 3499 $-PARAMETER bdry2_1.mod value
* Other useful parameters
IE 0 0
IE 1 1
IE 3 3
IE 4 4
RE ONE 1.0
IA N1 N 1
I/ N1/4 N1 4
I* 3N1/4 N1/4 3
IA N1/4-1 N1/4 -1
IA 3N1/4+1 3N1/4 1
RE A 0.0
RE G 0.0
RE T 5.0
RI RN1 N1
R/ H ONE RN1
RM -H H -1.0
R* H2 H H
RM .5H2 H2 0.5
R* HA H A
RM .5HA HA 0.5
R- 1-H ONE H
R* GH2 G H2
R* HT H T
RM -HT HT -1.0
VARIABLES
DO I 0 N1
DO J 0 N1
X X(I,J)
ND
GROUPS
N OBJ
DO I 1 N
IA I+ I 1
IA I- I -1
DO J 1 N
IA J+ J 1
IA J- J -1
XE P(I,J) X(I,J) 4.0
XE P(I,J) X(I,J+) -1.0 X(I,J-) -1.0
XE P(I,J) X(I+,J) -1.0 X(I-,J) -1.0
ND
DO I 1 N
XE B1(I) X(I,0) 1.0 X(I,1) -1.0
ZE B2(I) X(0,I) 1-H
XE B2(I) X(1,I) -1.0
ZE B3(I) X(N1,I) 1-H
XE B3(I) X(N,I) -1.0
ND
RHS
DO I 1 N
Z BDRY2 B2(I) -HT
Z BDRY2 B3(I) -HT
DO J 1 N
Z BDRY2 P(I,J) GH2
ND
BOUNDS
LO BDRY2 'DEFAULT' 0.0
UP BDRY2 'DEFAULT' 10.0
DO I N1/4 3N1/4
DO J N1/4 3N1/4
XU BDRY2 X(I,J) 3.15
ND
XX BDRY2 X(0,0) 0.0
XX BDRY2 X(N1,0) 0.0
XX BDRY2 X(0,N1) 10.0
XX BDRY2 X(N1,N1) 10.0
ELEMENT TYPE
EV SQ U
EV SQD Y
EP SQD YP
ELEMENT USES
DO I N1/4 3N1/4
DO J N1/4 3N1/4
XT E(I,J) SQD
ZV E(I,J) Y X(I,J)
XP E(I,J) YP 1.0
ND
DO I 1 N
XT E(I,N1) SQ
ZV E(I,N1) U X(I,N1)
ND
GROUP USES
DO I N1/4 3N1/4
DO J N1/4 3N1/4
ZE OBJ E(I,J) .5H2
ND
DO I 1 N
ZE OBJ E(I,N1) .5HA
ND
ENDATA
***********************
* SET UP THE FUNCTION *
* AND RANGE ROUTINES *
***********************
ELEMENTS BDRY2
INDIVIDUALS
T SQ
F U * U
G U 2.0 * U
H U U 2.0
T SQD
F ( Y - YP ) ** 2
G Y 2.0 * ( Y - YP )
H Y Y 2.0
ENDATA