OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sphdcod.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23C
24!||====================================================================
25!|| sphdcod ../starter/source/elements/sph/sphdcod.F
26!||--- called by ------------------------------------------------------
27!|| lectur ../starter/source/starter/lectur.F
28!||--- calls -----------------------------------------------------
29!|| ancmsg ../starter/source/output/message/message.F
30!|| fretitl2 ../starter/source/starter/freform.F
31!||--- uses -----------------------------------------------------
32!|| message_mod ../starter/share/message_module/message_mod.F
33!||====================================================================
34 SUBROUTINE sphdcod(NPC,ISPHIO,NOM_OPT)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE message_mod
40C OPTIONS SPH (INLET/OUTLET CONDITIONS,..):
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "com04_c.inc"
49#include "scr17_c.inc"
50#include "sphcom.inc"
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER NPC(*), ISPHIO(NISPHIO,*)
55 INTEGER NOM_OPT(LNOPT1,*)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER N, J
60 INTEGER ID
61 CHARACTER(LEN=NCHARTITLE)::TITR
62C=======================================================================
63C (I) TRAITEMENT DES FCTS
64C=======================================================================
65C I.1 INLET/OUTLET CONDITIONS
66C=======================================================================
67 DO n=1,nsphio
68 IF (isphio(1,n)==4) cycle
69 id=nom_opt(1,n)
70 CALL fretitl2(titr,
71 . nom_opt(lnopt1-ltitr+1,n),ltitr)
72 IF(isphio(5,n)/=0)THEN
73 DO j=1,nfunct
74 IF(isphio(5,n)==npc(j)) THEN
75 isphio(5,n)=j
76 GOTO 110
77 ENDIF
78 ENDDO
79 CALL ancmsg(msgid=439,
80 . msgtype=msgerror,
81 . anmode=aninfo,
82 . i1=id,
83 . c1=titr,
84 . i2=isphio(5,n))
85C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
86C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
87C . ' FUNCTION ID FOR DENSITY:',ISPHIO(5,N)
88C IERR=IERR+1
89 110 CONTINUE
90 ENDIF
91 IF(isphio(6,n)/=0)THEN
92 DO j=1,nfunct
93 IF(isphio(6,n)==npc(j)) THEN
94 isphio(6,n)=j
95 GOTO 120
96 ENDIF
97 ENDDO
98 CALL ancmsg(msgid=439,
99 . msgtype=msgerror,
100 . anmode=aninfo,
101 . i1=id,
102 . c1=titr,
103 . i2=isphio(6,n))
104C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
105C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
106C . ' FUNCTION ID FOR PRESSURE:',ISPHIO(6,N)
107C IERR=IERR+1
108 120 CONTINUE
109 ENDIF
110 IF(isphio(7,n)/=0)THEN
111 DO j=1,nfunct
112 IF(isphio(7,n)==npc(j)) THEN
113 isphio(7,n)=j
114 GOTO 130
115 ENDIF
116 ENDDO
117 CALL ancmsg(msgid=439,
118 . msgtype=msgerror,
119 . anmode=aninfo,
120 . i1=id,
121 . c1=titr,
122 . i2=isphio(7,n))
123C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
124C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
125C . ' FUNCTION ID FOR ENERGY:',ISPHIO(7,N)
126C IERR=IERR+1
127 130 CONTINUE
128 ENDIF
129 IF(isphio(8,n)/=0)THEN
130 DO j=1,nfunct
131 IF(isphio(8,n)==npc(j)) THEN
132 isphio(8,n)=j
133 GOTO 140
134 ENDIF
135 ENDDO
136 CALL ancmsg(msgid=439,
137 . msgtype=msgerror,
138 . anmode=aninfo,
139 . i1=id,
140 . c1=titr,
141 . i2=isphio(8,n))
142C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
143C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
144C . ' NON EXISTING FUNCTION ID=',ISPHIO(8,N)
145C IERR=IERR+1
146 140 CONTINUE
147 ENDIF
148 ENDDO
149C=======================================================================
150 900 CONTINUE
151 RETURN
152 END
integer, parameter nchartitle
subroutine sphdcod(npc, isphio, nom_opt)
Definition sphdcod.F:35
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889
subroutine fretitl2(titr, iasc, l)
Definition freform.F:804