OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sphdcod.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
C
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)
35
C-----------------------------------------------
36
C M o d u l e s
37
C-----------------------------------------------
38
USE
message_mod
39
USE
names_and_titles_mod
,
ONLY
:
nchartitle
40
C OPTIONS SPH (INLET/OUTLET CONDITIONS,..):
41
C-----------------------------------------------
42
C I m p l i c i t T y p e s
43
C-----------------------------------------------
44
#include "implicit_f.inc"
45
C-----------------------------------------------
46
C C o m m o n B l o c k s
47
C-----------------------------------------------
48
#include "com04_c.inc"
49
#include
"scr17_c.inc"
50
#include "sphcom.inc"
51
C-----------------------------------------------
52
C D u m m y A r g u m e n t s
53
C-----------------------------------------------
54
INTEGER
NPC(*), ISPHIO(NISPHIO,*)
55
INTEGER
NOM_OPT(LNOPT1,*)
56
C-----------------------------------------------
57
C L o c a l V a r i a b l e s
58
C-----------------------------------------------
59
INTEGER
N, J
60
INTEGER
ID
61
CHARACTER(LEN=NCHARTITLE)
::TITR
62
C=======================================================================
63
C (I) TRAITEMENT DES FCTS
64
C=======================================================================
65
C I.1 INLET/OUTLET CONDITIONS
66
C=======================================================================
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))
85
C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
86
C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
87
C . ' FUNCTION ID FOR DENSITY:',ISPHIO(5,N)
88
C 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))
104
C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
105
C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
106
C . ' FUNCTION ID FOR PRESSURE:',ISPHIO(6,N)
107
C 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))
123
C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
124
C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
125
C . ' FUNCTION ID FOR ENERGY:',ISPHIO(7,N)
126
C 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))
142
C WRITE(ISTDO,*)' ** ERROR SPH INLET/OUTLET CONDITIONS'
143
C WRITE(IOUT,*) ' ** ERROR SPH INLET/OUTLET CONDITIONS:',
144
C . ' NON EXISTING FUNCTION ID=',ISPHIO(8,N)
145
C IERR=IERR+1
146
140
CONTINUE
147
ENDIF
148
ENDDO
149
C=======================================================================
150
900
CONTINUE
151
RETURN
152
END
message_mod
Definition
message_mod.F:1249
names_and_titles_mod
Definition
names_and_titles_mod.F:997
names_and_titles_mod::nchartitle
integer, parameter nchartitle
Definition
names_and_titles_mod.F:1003
sphdcod
subroutine sphdcod(npc, isphio, nom_opt)
Definition
sphdcod.F:35
ancmsg
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
fretitl2
subroutine fretitl2(titr, iasc, l)
Definition
freform.F:804
starter
source
elements
sph
sphdcod.F
Generated by
1.15.0