MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
enums.cc
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/base/enums.cc,v 1.62 2017/05/12 17:28:14 morandini Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 1996-2017
7  *
8  * Pierangelo Masarati <masarati@aero.polimi.it>
9  * Paolo Mantegazza <mantegazza@aero.polimi.it>
10  *
11  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
12  * via La Masa, 34 - 20156 Milano, Italy
13  * http://www.aero.polimi.it
14  *
15  * Changing this copyright notice is forbidden.
16  *
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation (version 2 of the License).
20  *
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */
31 
32 /* Dichiarazione ed inizializzazione delle stringhe relative agli enums */
33 
34 #include "mbconfig.h" /* This goes first in every *.c,*.cc file */
35 
36 #include <stdlib.h>
37 
38 /* Tipi di elementi */
39 const char* psElemNames[] = {
40  "Air Properties",
41  "Rotor",
42 
43  "Automatic Structural",
44 
45  "Gravity",
46  "Rigid Body",
47  "Joint",
48  "Joint Regularization",
49  "Beam",
50  "Plate",
51 
52  "Force",
53 
54  "Inertia",
55 
56  "Electric Bulk",
57  "Electric",
58 
59  "Thermal",
60 
61  "Hydraulic",
62 
63  "Bulk",
64  "Loadable",
65  "Driven",
66  "External",
67 
68  "Aeromodal",
69  "Aerodynamic Element",
70 
71  "GENEL",
72 
73  "Socket Stream Output",
74 
75  NULL
76 };
77 
78 /* Tipi di elementi */
79 const char* psReadElemsElems[] = {
80  "air" "properties",
81  "rotor",
82 
83  "automatic" "structural",
84 
85  "gravity",
86  "body",
87  "joint",
88  "joint" "regularization",
89  "beam",
90  "plate",
91 
92  "force",
93 
94  "inertia",
95 
96  "electric" "bulk",
97  "electric",
98 
99  "thermal",
100 
101  "hydraulic",
102 
103  "bulk",
104  "loadable",
105  "driven",
106  "external",
107 
108  "aeromodal",
109  "aerodynamic" "element",
110 
111  "genel",
112 
113  "socket" "stream" "output",
114 
115  NULL
116 };
117 
118 
119 /* Nomi degli elementi quando vengono dichiarati nel blocco dati di controllo;
120  * hanno lo stesso numero progressivo degli elementi, quindi vi si accede con
121  * l'enum Elem::Type */
122 const char* psReadControlElems[] = {
123  "air" "properties",
124  "induced" "velocity" "elements",
125 
126  "automatic" "structural" "elements",
127 
128  "gravity",
129  "rigid" "bodies",
130  "joints",
131  "joint" "regularizations",
132  "beams",
133  "plates",
134 
135  "forces",
136 
137  "inertia",
138 
139  "electric" "bulk" "elements",
140  "electric" "elements",
141 
142  "thermal" "elements",
143 
144  "hydraulic" "elements",
145 
146  "bulk" "elements",
147  "loadable" "elements",
148  "driven" "elements",
149  "external" "elements",
150 
151  "aeromodals",
152  "aerodynamic" "elements",
153 
154  "genels",
155 
156  "output" "elements",
157 
158  NULL
159 };
160 
161 
162 /* Tipi di Joint */
163 const char* psJointNames[] = {
164  "Distance",
165  "Distance With Offset",
166  "Clamp",
167  "Spherical Hinge",
168  "Pin",
169  "Cardano Hinge",
170  "Cardano Rotation",
171  "Cardano Pin",
172  "Plane Hinge",
173  "Plane Rotation",
174  "Plane Pin",
175  "Axial Rotation",
176  "Plane Displacement Hinge",
177  "Plane Displacement Pin",
178  "In Plane",
179  "In Plane Contact",
180  "Inline",
181  "Rod",
182  "Deformable Hinge",
183  "Deformable Displacement Joint",
184  "Deformable Joint",
185  "Deformable Axial Joint",
186  "Viscous Body",
187  "Linear Velocity",
188  "Angular Velocity",
189  "Linear Acceleration",
190  "Angular Acceleration",
191  "Prismatic",
192  "Drive Hinge",
193  "Drive Displacement",
194  "Drive Displacement Pin",
195  "Imposed Displacement",
196  "Imposed Displacement Pin",
197  "Imposed Kinematics",
198  "Beam Slider",
199  "Brake",
200  "Gimbal Rotation",
201  "Point Surface Contact",
202  "Total Joint",
203  "Total Pin Joint",
204  "Total Equation",
205  "Total Reaction",
206 
207  "Modal",
208  "Screw",
209 
210  NULL
211 };
212 
213 
214 /* Tipi di Rod */
215 const char* psRodNames[] = {
216  "Elastic Rod",
217  "Visco-Elastic Rod",
218  "Visco-Elastic Rod With Offset",
219 
220  NULL
221 };
222 
223 
224 /* Tipi di DeformableHinge */
225 const char* psConstLawNames[] = {
226  "Elastic",
227  "Viscous",
228  "Visco-Elastic",
229 
230  NULL
231 };
232 
233 
234 /* Tipi di Genel */
235 const char* psGenelNames[] = {
236  "Swash Plate",
237  "Rotor Trim",
238  "Clamp",
239  "Distance",
240  "Spring",
241  "Spring Support",
242  "Cross Spring Support",
243  "Spring Damper",
244  "Spring Damper Support",
245  "Cross Spring Damper Support",
246  "Mass",
247  "Scalar Filter",
248  "State Space SISO",
249  "State Space MIMO",
250 
251  NULL
252 };
253 
254 
255 /* Tipi di Force */
256 const char* psForceNames[] = {
257  "Abstract Force",
258  "Abstract Reaction Force",
259 
260  "Conservative Force",
261  "Follower Force",
262  "Conservative Couple",
263  "Follower Couple",
264 
265  "Conservative Reaction Force",
266  "Follower Reaction Force",
267  "Conservative Reaction Couple",
268  "Follower Reaction Couple",
269 
270  "External Structural Force",
271 
272  NULL
273 };
274 
275 
276 /* Tipi di elementi elettrici */
277 const char* psElectricNames[] = {
278  "Accelerometer",
279  "Discrete Control",
280  "Motor",
281 
282  NULL
283 };
284 
285 
286 /* Tipi di elementi idraulici */
287 const char* psHydraulicNames[] = {
288  "Pipe",
289  "Minor Losses",
290  "Control Valve",
291  "Dynamic Control Valve",
292  "Pressure Valve",
293  "Flow Valve",
294  "Orifices",
295  "Accumulator",
296  "Tank",
297  "Full Pipe",
298  "Prova",
299  "Pipe (New)",
300  "Pipe (Tubo)",
301 
302  NULL
303 };
304 
305 
306 /* Tipi di Beam */
307 const char* psBeamNames[] = {
308  "Elastic Beam",
309  "Visco-Elastic Beam",
310  "Piezo-Electric Beam",
311 
312  NULL
313 };
314 
315 
316 /* Tipi di Aero */
317 const char* psAeroNames[] = {
318  "Rotor",
319  "Aeromodal",
320  "Aerodynamic Body",
321  "Aerodynamic Beam",
322  "Aerodynamic External",
323  "Aerodynamic External Modal",
324 
325  NULL
326 };
327 
328 
329 /* Tipi di Rotor */
330 const char* psRotorNames[] = {
331  "No Induced Speed Rotor",
332  "Uniform Induced Speed Rotor",
333  "Glauert Induced Speed Rotor",
334  "Mangler Induced Speed Rotor",
335  "Dynamic Inflow Induced Speed Rotor",
336 
337  NULL
338 };
339 
340 
341 /* Tipi di Bulk */
342 const char* psBulkNames[] = {
343  "SpringSupport",
344  "Spring",
345 
346  NULL
347 };
348 
349 
350 /* Tipi di Drive */
351 const char* psDriveNames[] = {
352  "File",
353 
354  NULL
355 };
356 
357 const char* psReadControlDrivers[] = {
358  "file" "drivers",
359 
360  NULL
361 };
362 
363 /* Tipi di FileDrive */
364 const char* psFileDriveNames[] = {
365  "FixedStepFile",
366  "Socket",
367 
368  NULL
369 };
370 
371 /* Tipi di Node */
372 const char* psNodeNames[] = {
373  "Abstract",
374  "Structural",
375  "Electric",
376  "Thermal",
377  "Parameter",
378  "Hydraulic",
379 
380  NULL
381 };
382 
383 
384 /* Nomi dei nodi quando vengono dichiarati nel blocco dati di controllo;
385  * hanno lo stesso numero progressivo dei nodi, quindi vi si accede con
386  * l'enum Node::Type */
387 const char* psReadControlNodes[] = {
388  "abstract" "nodes",
389  "structural" "nodes",
390  "electric" "nodes",
391  "thermal" "nodes",
392  "parameter" "nodes",
393  "hydraulic" "nodes",
394 
395  NULL
396 };
397 
398 const char* psReadNodesNodes[] = {
399  "abstract",
400  "structural",
401  "electric",
402  "thermal",
403  "parameter",
404  "hydraulic",
405 
406  NULL
407 };
408 
409 
410 /* Tipi di StructNode */
411 const char* psStructNodeNames[] = {
412  "Dynamic",
413  "Static",
414  "Modal",
415  "Dummy",
416 
417  NULL
418 };
419 
420 
421 /* Tipi di DofOwner */
422 
423 const char* psDofOwnerNames[] = {
424  "Structural Node",
425  "Electric Node",
426  "Thermal Node",
427  "Abstract Node",
428  "Hydraulic Node",
429 
430  "Joint Element",
431  "Plate Element",
432  "GENEL Element",
433  "Induced Velocity Element",
434  "Aerodynamic Element",
435  "Aerodynamic Modal Element",
436  "Electric Bulk Element",
437  "Electric Element",
438  "Thermal Element",
439  "Hydraulic Element",
440  "Loadable Element",
441 
442  NULL
443 };
const char * psHydraulicNames[]
Definition: enums.cc:287
const char * psReadNodesNodes[]
Definition: enums.cc:398
const char * psReadControlElems[]
Definition: enums.cc:122
const char * psForceNames[]
Definition: enums.cc:256
const char * psBeamNames[]
Definition: enums.cc:307
const char * psRodNames[]
Definition: enums.cc:215
const char * psDofOwnerNames[]
Definition: enums.cc:423
const char * psJointNames[]
Definition: enums.cc:163
const char * psFileDriveNames[]
Definition: enums.cc:364
const char * psElemNames[]
Definition: enums.cc:39
const char * psStructNodeNames[]
Definition: enums.cc:411
const char * psReadControlDrivers[]
Definition: enums.cc:357
const char * psReadControlNodes[]
Definition: enums.cc:387
const char * psNodeNames[]
Definition: enums.cc:372
const char * psElectricNames[]
Definition: enums.cc:277
const char * psRotorNames[]
Definition: enums.cc:330
const char * psReadElemsElems[]
Definition: enums.cc:79
const char * psDriveNames[]
Definition: enums.cc:351
const char * psConstLawNames[]
Definition: enums.cc:225
const char * psBulkNames[]
Definition: enums.cc:342
const char * psGenelNames[]
Definition: enums.cc:235
const char * psAeroNames[]
Definition: enums.cc:317