OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
inisrf.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=======================================================================
24C
25!||====================================================================
26!|| inisrf ../starter/source/constraints/general/rbody/inisrf.F
27!||--- called by ------------------------------------------------------
28!|| initia ../starter/source/elements/initia/initia.F
29!||--- calls -----------------------------------------------------
30!|| ancmsg ../starter/source/output/message/message.F
31!||--- uses -----------------------------------------------------
32!|| message_mod ../starter/share/message_module/message_mod.F
33!||====================================================================
34 SUBROUTINE inisrf(X,V,VR,NPBY,RBY,IGRSURF,BUFSF)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE groupdef_mod
39 USE message_mod
40C=======================================================================
41C * Verifie qu'il n'y a pas deux RIGID BODIES (.../... deux conditions
42C cinematiques)
43C qui definissent le mvt de la meme Surface.
44C * Initialise la position et les vitesses du point ou calculer les forces
45C dans les interfaces.
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53#include "com04_c.inc"
54#include "param_c.inc"
55C-----------------------------------------------
56C D u m m y A r g u m e n t s
57C-----------------------------------------------
58 INTEGER NPBY(NNPBY,*)
59C REAL
61 . x(3,*),v(3,*),vr(3,*),rby(nrby,*),bufsf(*)
62 TYPE (SURF_) , DIMENSION(NSURF) :: IGRSURF
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER N, ISU, ADRSRF, IM
67C-----------------------------------------------
68 DO 100 n=1,nrbykin
69 isu=npby(8,n)
70 IF (isu==0) GOTO 100
71 IF (igrsurf(isu)%NB_MADYMO/=0) GOTO 999
72C
73 igrsurf(isu)%NB_MADYMO=n
74 igrsurf(isu)%TYPE_MADYMO=1
75C
76 im=npby(1,n)
77 adrsrf=igrsurf(isu)%IAD_BUFR
78 bufsf(adrsrf+16)=x(1,im)
79 bufsf(adrsrf+17)=x(2,im)
80 bufsf(adrsrf+18)=x(3,im)
81 bufsf(adrsrf+19)=v(1,im)
82 bufsf(adrsrf+20)=v(2,im)
83 bufsf(adrsrf+21)=v(3,im)
84 bufsf(adrsrf+22) =vr(1,im)
85 bufsf(adrsrf+23)=vr(2,im)
86 bufsf(adrsrf+24)=vr(3,im)
87 100 CONTINUE
88 GOTO 9999
89C-----------------------------------------------
90 999 CONTINUE
91C WRITE(ISTDO,*)' ** ERROR : MOTION OF SURFACE MULTIPLY DEFINED'
92C WRITE(IOUT,*) ' ** ERROR : SURFACES MOTION DEFINITION :'
93C WRITE(IOUT,*) ' ** ERROR : MOTION OF SURFACE MULTIPLY DEFINED :'
94C WRITE(IOUT,*) ' MOTION OF SURFACE ',ISURF(1,ISU),
95C . ' IS DEFINED BY MORE THAN ONE RIGID BODY.'
96C IERR=IERR+1
97 CALL ancmsg(msgid=146,
98 . msgtype=msgerror,
99 . anmode=aninfo_blind_1,
100 . i1=igrsurf(isu)%ID)
101C-----------------------------------------------
102 9999 CONTINUE
103 RETURN
104 END
#define my_real
Definition cppsort.cpp:32
subroutine inisrf(x, v, vr, npby, rby, igrsurf, bufsf)
Definition inisrf.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