Debian Codegraph @

packages/seacas/applications/blot/usrsym.F

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 C=======================================================================
8 SUBROUTINE USRSYM (ISYTYP, IS3DIM, X0, Y0, Z0, EVAR, SCALE)
9 C=======================================================================
10
11 C --*** USRSYM *** (DETOUR) Plot element symbol (slip/angle version)
12 C -- Written by Amy Gilkey - revised 06/15/87
13 C -- D. P. Flanagan, 12/08/83
14 C --
15 C --If the element variable name begins with 'CRACK', USRSYM displays
16 C --an 'X' to indicate a sliding joint or an 'O' to indicate an opening
17 C --joint (Slip plot).
18 C --
19 C --If the element variable name begins with 'ANGLE', USRSYM draws a
20 C --line segment at a specified angle (Angle plot). A '*' is drawn to
21 C --indicate rubblization.
22 C --
23 C --Parameters:
24 C -- ISYTYP - IN - the symbol type (as in MODTYP of /DETOPT/)
25 C -- IS3DIM - IN - true iff 3D versus 2D
26 C -- X0, Y0, Z0 - IN - the element center coordinates
27 C -- EVAR - IN - the element variable
28 C -- Crack angle for angle plot:
29 C -- >360 indicates no crack
30 C -- Crack state indicator for slip plot:
31 C -- -1 = joint sliding
32 C -- 0 = joint stationary
33 C -- +1 = joint opening
34 C -- SCALE - IN - the scale factor for crack angle,
35 C -- default is device to window conversion
36
37 PARAMETER (DTR = .0174532925)
38
39 common /debugc/ cdebug
40 common /debugn/ idebug
41 character*8 cdebug
42
43 CHARACTER*(*) ISYTYP
44 LOGICAL IS3DIM
45
46 IF (ISYTYP .EQ. 'ANGLE') THEN
47
48 C --Angle plot
49
50 IF (EVAR .GT. 360.0) THEN
51 RETURN
52
53 ELSE IF (EVAR .LT. -360.0) THEN
54
55 C --Indicate multiple failures
56
57 #if NeedsDoubleEscape
58 CALL MPD2SY (1, X0, Y0, '\\CX')
59 CALL MPD2SY (1, X0, Y0, '\\CCS')
60 #else
61 CALL MPD2SY (1, X0, Y0, '\CX')
62 CALL MPD2SY (1, X0, Y0, '\CCS')
63 #endif
64 ELSE
65
66 C --Indicate crack angle
67
68 SX0 = .01 * SCALE * COS(EVAR*DTR)
69 SY0 = .01 * SCALE * SIN(EVAR*DTR)
70 CALL MPD2VC (1, X0-SX0, Y0-SY0, X0+SX0, Y0+SY0)
71 END IF
72
73 ELSE IF (ISYTYP .EQ. 'CRACK') THEN
74
75 C --Slip plot
76
77 IF (EVAR .EQ. 0.0) THEN
78 RETURN
79
80 ELSE IF (EVAR .LT. 0.0) THEN
81
82 C --Indicate sliding joint
83
84 #if NeedsDoubleEscape
85 CALL MPD2SY (1, X0, Y0, '\\CX')
86 #else
87 CALL MPD2SY (1, X0, Y0, '\CX')
88 #endif
89 ELSE
90
91 C --Indicate opening joint
92
93 #if NeedsDoubleEscape
94 CALL MPD2SY (1, X0, Y0, '\\CCI')
95 #else
96 CALL MPD2SY (1, X0, Y0, '\CCI')
97 #endif
98 END IF
99
100 else if (cdebug .eq. 'SYMBOL') then
101 #if NeedsDoubleEscape
102 call mpd2sy (1, x0, y0, '\\cx')
103 #else
104 call mpd2sy (1, x0, y0, '\cx')
105 #endif
106
107 END IF
108
109 RETURN
110 END