File: wrim88x.c

package info (click to toggle)
z88 13.0.0+dfsg2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 107,792 kB
  • sloc: ansic: 45,530; sh: 71; makefile: 14
file content (231 lines) | stat: -rw-r--r-- 7,951 bytes parent folder | download | duplicates (3)
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
/***********************************************************************
* 
*               *****   ***    ***
*                  *   *   *  *   *
*                 *     ***    ***
*                *     *   *  *   *
*               *****   ***    ***
*
* A FREE Finite Elements Analysis Program in ANSI C for the UNIX OS.
*
* Composed and edited and copyright by 
* Professor Dr.-Ing. Frank Rieg, University of Bayreuth, Germany
*
* eMail: 
* frank.rieg@uni-bayreuth.de
* dr.frank.rieg@t-online.de
* 
* V12.0  February 14, 2005
*
* Z88 should compile and run under any UNIX OS and Motif 2.0.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING.  If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
***********************************************************************/ 
/***********************************************************************
* wrim88x gibt Texte aus (1 FR_INT4)
* 27.9.2005 Rieg
***********************************************************************/ 

/***********************************************************************
* Fuer UNIX
***********************************************************************/
#ifdef FR_UNIX
#include <z88x.h>
#include <stdio.h>    /* printf */
#endif

/***********************************************************************
*  hier beginnt Function wrim88x
***********************************************************************/
int wrim88x(FR_INT4 i,int iatx)
{
extern FR_INT4 LANG;
extern char cflag[];

switch(iatx)
  {
  case TX_Z88TX:
    if(LANG==1) printf("Start Z88TX: von Z88 nach DXF\n");
    if(LANG==2) printf("start Z88TX: from Z88 to DXF\n");
    break;
  case TX_CFLAG:
    if(LANG==1) printf("Steuerflag ist %s (interne Kennung %ld)\n",cflag,i);
    if(LANG==2) printf("flag is %s (internal ID %ld)\n",cflag,i);
    break;
  case TX_ELE:
    if(LANG==1) printf("\rElement %ld",i);
    if(LANG==2) printf("\relement %ld",i);
    break;
  case TX_REAI1:
    if(LANG==1) printf("Z88I1.TXT einlesen\n");
    if(LANG==2) printf("reading Z88I1.TXT\n");
    break;
  case TX_REAI2:
    if(LANG==1) printf("Z88I2.TXT einlesen\n");
    if(LANG==2) printf("reading Z88I2.TXT\n");
    break;
  case TX_REAI3:
    if(LANG==1) printf("Z88I3.TXT einlesen\n");
    if(LANG==2) printf("reading Z88I3.TXT\n");
    break;
  case TX_REAI5:
    if(LANG==1) printf("Z88I5.TXT einlesen\n");
    if(LANG==2) printf("reading Z88I5.TXT\n");
    break;
  case TX_REANI:
    if(LANG==1) printf("Z88NI.TXT einlesen\n");
    if(LANG==2) printf("reading Z88NI.TXT\n");
    break;
  case TX_KOOR:
    if(LANG==1) printf("Koordinaten einlesen\n");
    if(LANG==2) printf("reading coordinates\n");
    break;
  case TX_POLAR:
    if(LANG==1) printf("Polar/Zylinder-Koordinaten umrechnen\n");
    if(LANG==2) printf("converting polar/cylinder coordinates\n");
    break;
  case TX_KOIN:
    if(LANG==1) printf("Koinzidenz einlesen\n");
    if(LANG==2) printf("reading element information\n");
    break;
  case TX_EGES:
    if(LANG==1) printf("Elastizitaetsgesetze einlesen\n");
    if(LANG==2) printf("reading material information\n");
    break;
  case TX_SINFO:
    if(LANG==1) printf("Superelement-Informationen einlesen\n");
    if(LANG==2) printf("reading superelement information\n");
    break;
  case TX_Z88FX:
    if(LANG==1) printf("Start Z88FX: von DXF nach Z88\n");
    if(LANG==2) printf("Start Z88FX: from DXF to Z88\n");
    break;
  case TX_FX:
    if(LANG==1) printf("Oeffnen Z88X.DXF\n");
    if(LANG==2) printf("opening Z88X.DXF\n");
    break;
  case TX_DEC1ZI1:
    if(LANG==1) printf("Decodieren Z88X.DXF, Z88I1.TXT 1.Zeile aufbauen\n");
    if(LANG==2) printf("decoding Z88X.DXF, Z88I1.TXT building first line\n");
    break;
  case TX_DEC1ZNI:
    if(LANG==1) printf("Decodieren Z88X.DXF, Z88NI.TXT 1.Zeile aufbauen\n");
    if(LANG==2) printf("decoding Z88X.DXF, Z88NI.TXT building first line\n");
    break;
  case TX_DECKNO:
    if(LANG==1) printf("Decodieren Z88X.DXF, Knoten aufbauen\n");
    if(LANG==2) printf("decoding Z88X.DXF, building nodes\n");
    break;
  case TX_FOUKNO:
    if(LANG==1) printf("%ld Knoten gefunden\n",i);
    if(LANG==2) printf("%ld nodes found\n",i);
    break;
  case TX_DECELE:
    if(LANG==1) printf("Decodieren Z88X.DXF, Elemente aufbauen\n");
    if(LANG==2) printf("decoding Z88X.DXF, building elements\n");
    break;
  case TX_FOUFELE:
    if(LANG==1) printf("%ld Finite Elemente gefunden\n",i);
    if(LANG==2) printf("%ld finite elements found\n",i);
    break;
  case TX_FOUSELE:
    if(LANG==1) printf("%ld Super- Elemente gefunden\n",i);
    if(LANG==2) printf("%ld superelements found\n",i);
    break;
  case TX_DECEG:
    if(LANG==1) printf("Decodieren Z88X.DXF, E- Gesetze aufbauen\n");
    if(LANG==2) printf("decoding Z88X.DXF, building mat lines\n");
    break;
  case TX_DEC1ZI2:
    if(LANG==1) printf
      ("Decodieren Z88X.DXF, Z88I2.TXT Anzahl Randbed. aufbauen\n");
    if(LANG==2) printf
      ("decoding Z88X.DXF, Z88I2.TXT building no. of constraints\n");
    break;
  case TX_DECI2R:
    if(LANG==1) printf
      ("Decodieren Z88X.DXF, Z88I2.TXT Randbedingungen aufbauen\n");
    if(LANG==2) printf
      ("decoding Z88X.DXF, Z88I2.TXT building constraints\n");
    break;
  case TX_DEC1ZI5:
    if(LANG==1) printf
      ("Decodieren Z88X.DXF, Z88I5.TXT Anzahl Flaechenlasten aufbauen\n");
    if(LANG==2) printf
      ("decoding Z88X.DXF, Z88I5.TXT building no. of surface loads\n");
    break;
  case TX_DECI5R:
    if(LANG==1) printf
      ("Decodieren Z88X.DXF, Z88I5.TXT Flaechenlasten aufbauen\n");
    if(LANG==2) printf
      ("decoding Z88X.DXF, Z88I5.TXT building surface loads\n");
    break;
  case TX_DECI3:
    if(LANG==1) printf
      ("Decodieren Z88X.DXF, Z88I3.TXT Spannungsparamter aufbauen\n");
    if(LANG==2) printf
      ("decoding Z88X.DXF, Z88I3.TXT building stress flags\n");
    break;
  case TX_REAIX:
    if(LANG==1) printf("Z88X.DXF einlesen\n");
    if(LANG==2) printf("reading Z88X.DXF\n");
    break;
  case TX_FAC:
    if(LANG==1) printf("Faktoren berechnen\n");
    if(LANG==2) printf("computing factors\n");
    break;
  case TX_SDXF:
    if(LANG==1) printf("DXF-Steuerwerte schreiben\n");
    if(LANG==2) printf("writing DXF main flags\n");
    break;
  case TX_SELE:
    if(LANG==1) printf("DXF-Entities schreiben\n");
    if(LANG==2) printf("writing DXF entities\n");
    break;
  case TX_EXITZ88TX:
    if(LANG==1) printf("Verlassen Z88TX\n");
    if(LANG==2) printf("leaving Z88TX\n");
    break;
  case TX_EXITZ88FX:
    if(LANG==1) printf("Verlassen Z88FX\n");
    if(LANG==2) printf("leaving Z88FX\n");
    break;
  case TX_EXITZ88X:
    if(LANG==1) printf("Ende Z88X\n");
    if(LANG==2) printf("Z88X finished\n");
    break;
  case TX_WRII1:
    if(LANG==1) printf("Beschreiben von Z88I1.TXT\n");
    if(LANG==2) printf("writing Z88I1.TXT\n");
    break;
  case TX_WRINI:
    if(LANG==1) printf("Beschreiben von Z88NI.TXT\n");
    if(LANG==2) printf("writing Z88NI.TXT\n");
    break;
  case TX_WRII2:
    if(LANG==1) printf("Beschreiben von Z88I2.TXT\n");
    if(LANG==2) printf("writing Z88I2.TXT\n");
    break;
  case TX_WRII5:
    if(LANG==1) printf("Beschreiben von Z88I5.TXT\n");
    if(LANG==2) printf("writing Z88I5.TXT\n");
    break;
  case TX_WRII3:
    if(LANG==1) printf("Beschreiben von Z88I3.TXT\n");
    if(LANG==2) printf("writing Z88I3.TXT\n");
    break;
  }
return(0);
}