OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
bcs0.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/.
23!||====================================================================
24!|| bcs0 ../engine/source/constraints/general/bcs/bcs0.F
25!||--- called by ------------------------------------------------------
26!|| radioss2 ../engine/source/engine/radioss2.F
27!||====================================================================
28 SUBROUTINE bcs0(ICODE,ICODT,ICODR,ICODE_PLY, ICODT_PLY,IBC_PLY)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C D u m m y A r g u m e n t s
35C-----------------------------------------------
36 INTEGER ICODE(*), ICODT(*), ICODR(*), ICODE_PLY(*), ICODT_PLY(*),
37 . IBC_PLY(*)
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "com01_c.inc"
42#include "com04_c.inc"
43C-----------------------------------------------
44C L o c a l V a r i a b l e s
45C-----------------------------------------------
46 INTEGER N, M, II
47C-----------------------------------------------
48 DO 10 n=1,numnod
49 icodt(n)=icode(n)/512
50 10 CONTINUE
51C
52 IF(iplybcs > 0) THEN
53 DO n=1,numnod
54 ii = mod(icode_ply(n),512)
55 icodt_ply(n) = (icode_ply(n)- ii) /512
56 IF(ii > 10 ) ibc_ply(n) = 2
57 IF(ii == 10 ) ibc_ply(n) = 1
58 IF(ii == 1 ) ibc_ply(n) = -1
59 ENDDO
60 ENDIF
61 IF(iroddl>0)THEN
62 DO 20 n=1,numnod
63 icodr(n)=(icode(n)-512*(icode(n)/512))/64
64 20 CONTINUE
65 END IF
66C
67 IF(iale>0) THEN
68 DO 30 n=1,numnod
69 m=n+numnod
70 icodt(m)=(icode(n)-64*(icode(n)/64))/8
71 30 CONTINUE
72 DO 40 n=1,numnod
73 m=n+numnod+numnod
74 icodt(m)=(icode(n)-8*(icode(n)/8))
75 40 CONTINUE
76 END IF
77C
78 RETURN
79 END
subroutine bcs0(icode, icodt, icodr, icode_ply, icodt_ply, ibc_ply)
Definition bcs0.F:29