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 * Verifies that there are not two RIGID BODIES (or two kinematic
42C conditions) which define the movement of the same surface.
43C * Initializes the position and velocities of the point where forces are calculated
44C in the interfaces.
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52#include "com04_c.inc"
53#include "param_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER NPBY(NNPBY,*)
58C REAL
60 . x(3,*),v(3,*),vr(3,*),rby(nrby,*),bufsf(*)
61 TYPE (SURF_) , DIMENSION(NSURF) :: IGRSURF
62C-----------------------------------------------
63C L o c a l V a r i a b l e s
64C-----------------------------------------------
65 INTEGER N, ISU, ADRSRF, IM
66C-----------------------------------------------
67 DO 100 n=1,nrbykin
68 isu=npby(8,n)
69 IF (isu==0) GOTO 100
70 IF (igrsurf(isu)%NB_MADYMO/=0) GOTO 999
71C
72 igrsurf(isu)%NB_MADYMO=n
73 igrsurf(isu)%TYPE_MADYMO=1
74C
75 im=npby(1,n)
76 adrsrf=igrsurf(isu)%IAD_BUFR
77 bufsf(adrsrf+16)=x(1,im)
78 bufsf(adrsrf+17)=x(2,im)
79 bufsf(adrsrf+18)=x(3,im)
80 bufsf(adrsrf+19)=v(1,im)
81 bufsf(adrsrf+20)=v(2,im)
82 bufsf(adrsrf+21)=v(3,im)
83 bufsf(adrsrf+22) =vr(1,im)
84 bufsf(adrsrf+23)=vr(2,im)
85 bufsf(adrsrf+24)=vr(3,im)
86 100 CONTINUE
87 GOTO 9999
88C-----------------------------------------------
89 999 CONTINUE
90C WRITE(ISTDO,*)' ** ERROR : MOTION OF SURFACE MULTIPLY DEFINED'
91C WRITE(IOUT,*) ' ** ERROR : SURFACES MOTION DEFINITION :'
92C WRITE(IOUT,*) ' ** ERROR : MOTION OF SURFACE MULTIPLY DEFINED :'
93C WRITE(IOUT,*) ' MOTION OF SURFACE ',ISURF(1,ISU),
94C . ' IS DEFINED BY MORE THAN ONE RIGID BODY.'
95C IERR=IERR+1
96 CALL ancmsg(msgid=146,
97 . msgtype=msgerror,
98 . anmode=aninfo_blind_1,
99 . i1=igrsurf(isu)%ID)
100C-----------------------------------------------
101 9999 CONTINUE
102 RETURN
103 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:895