OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
anioffs.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!|| anioffs ../starter/source/output/anim/anioffs.F
25!||--- called by ------------------------------------------------------
26!|| genani1 ../starter/source/output/anim/genani1.F
27!||--- calls -----------------------------------------------------
28!||--- uses -----------------------------------------------------
29!||====================================================================
30 SUBROUTINE anioffs(ELBUF_TAB ,IPARG ,IOFF ,EL2FA ,
31 . NBF ,NBPART ,ISPH3D )
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE elbufdef_mod
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "com01_c.inc"
44#include "com04_c.inc"
45#include "param_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49C REAL
50 INTEGER IPARG(NPARG,*),EL2FA(*),NBF,IOFF(*),
51 . nbpart,isph3d
52 TYPE (ELBUF_STRUCT_), DIMENSION(NGROUP), TARGET :: ELBUF_TAB
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56C REAL
57 INTEGER I, NG, NEL, NFT, ITY, LFT, NPT,
58 . n, llt, mlw,isolnod,nn1,nn2,nn3
59 INTEGER IOFFBUF(NBF),RBUF
60 TYPE(g_bufel_) ,POINTER :: GBUF
61C=======================================================================
62 nn1 = 1
63 nn2 = 1
64 nn3 = nn2 + numels
65C-----------------------------------------------
66C
67 DO 490 ng=1,ngroup
68 mlw =iparg(1,ng)
69 nel =iparg(2,ng)
70 ity =iparg(5,ng)
71 nft =iparg(3,ng)
72 isolnod = iparg(28,ng)
73 lft=1
74 llt=nel
75C-----------------------------------------------
76C SOLIDES 16N
77C-----------------------------------------------
78 IF (ity==1.AND.isolnod==16) THEN
79 gbuf => elbuf_tab(ng)%GBUF
80 IF (mlw == 0 .OR. mlw == 13)THEN
81 DO i=lft,llt
82 n = nft + i
83 ioff(el2fa(nn2+n)) = 0
84 ioff(el2fa(nn2+n)+1) = 0
85 ioff(el2fa(nn2+n)+2) = 0
86 ioff(el2fa(nn2+n)+3) = 0
87 ENDDO
88 ELSE
89 DO i=lft,llt
90 n = nft + i
91 ioff(el2fa(nn2+n)) = nint(min(gbuf%OFF(i),one))
92 ioff(el2fa(nn2+n)+1) = nint(min(gbuf%OFF(i),one))
93 ioff(el2fa(nn2+n)+2) = nint(min(gbuf%OFF(i),one))
94 ioff(el2fa(nn2+n)+3) = nint(min(gbuf%OFF(i),one))
95 ENDDO
96 ENDIF
97C-----------------------------------------------
98C AUTRES SOLIDES
99C-----------------------------------------------
100 ELSEIF(ity==1)THEN
101 gbuf => elbuf_tab(ng)%GBUF
102 IF(mlw==0)THEN
103 DO i=lft,llt
104 n = nft + i
105 ioff(el2fa(nn2+n)) = 0
106 ENDDO
107 ELSE
108 DO i=lft,llt
109 n = nft + i
110 ioff(el2fa(nn2+n)) = nint(min(gbuf%OFF(i),one))
111 ENDDO
112 ENDIF
113 ELSEIF(isph3d==1.AND.ity==51)THEN
114 gbuf => elbuf_tab(ng)%GBUF
115C-----------------------------------------------
116C TETRAS SPH.
117C-----------------------------------------------
118 IF(mlw==0)THEN
119 DO i=lft,llt
120 n = nft + i
121 ioff(el2fa(nn3+n)) = 0
122 ENDDO
123 ELSE
124 DO i=lft,llt
125 n = nft + i
126 ioff(el2fa(nn3+n)) = nint(min(gbuf%OFF(i),one))
127 ENDDO
128 ENDIF
129 ELSE
130 ENDIF
131C-----------------------------------------------
132 490 CONTINUE
133C-----------------------------------------------
134 CALL write_c_c(ioff,nbf)
135C-----------
136 RETURN
137 END
subroutine anioffs(elbuf_tab, iparg, ioff, el2fa, nbf, nbpart, isph3d)
Definition anioffs.F:32
#define min(a, b)
Definition macros.h:20
void write_c_c(int *w, int *len)