OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
aniofff.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!|| aniofff ../starter/source/output/anim/aniofff.F
25!||--- called by ------------------------------------------------------
26!|| genani1 ../starter/source/output/anim/genani1.F
27!||--- calls -----------------------------------------------------
28!||--- uses -----------------------------------------------------
29!||====================================================================
30 SUBROUTINE aniofff(ELBUF_TAB,IPARG,IOFF ,EL2FA,
31 . NBF ,IOFFX1)
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-----------------------------------------------
49 INTEGER IPARG(NPARG,*),EL2FA(*),NBF,IOFF(*),
50 . nbpart,ioffx1(*)
51 TYPE (ELBUF_STRUCT_), TARGET, DIMENSION(NGROUP) :: ELBUF_TAB
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55 INTEGER I, NG, NEL, NFT, ITY, LFT, NPT,
56 . n, j, llt, n1,n2,n3,n4,n_fa,mlw,
57 . nn1,nn2,nn3,nn4,nn5,nn6,nn7,nn8,nbf2,rbuf
58 TYPE(g_bufel_) ,POINTER :: GBUF
59C---+----1----+----2----+----3----+----4----+----5----+----6----+----7--
60 nn1 = 1
61 nn2 = 1
62 nn3 = 1
63 nn4 = nn3
64 nn5 = nn4
65 nn6 = nn5
66 nn7 = nn6 + numelt
67 nn8 = nn7 + numelp
68C-----------------------------------------------
69 DO ng=1,ngroup
70 mlw =iparg(1,ng)
71 nel =iparg(2,ng)
72 ity =iparg(5,ng)
73 nft =iparg(3,ng)
74 lft=1
75 llt=nel
76C
77 gbuf => elbuf_tab(ng)%GBUF
78C-----------------------------------------------
79C TRUSS
80C-----------------------------------------------
81 IF (ity ==4) THEN
82 n_fa = nn6 + nft
83C-----------------------------------------------
84C POUTRES
85C-----------------------------------------------
86 ELSEIF (ity == 5) THEN
87 n_fa = nn7 + nft
88C-----------------------------------------------
89C RESSORTS
90C-----------------------------------------------
91 ELSEIF (ity == 6) THEN
92 n_fa = nn8 + nft
93 ELSE
94 ity=0
95 ENDIF
96C-----------------------------------------------
97 IF (ity /= 0) THEN
98 IF (mlw == 0) THEN
99C-----------------------------------------------
100C DUMMY ELEMENTS
101C-----------------------------------------------
102 DO i=lft,llt
103 ioff(el2fa(n_fa+i)) = 0
104 ENDDO
105 ELSEIF (ity == 6 .AND. mlw == 3) THEN
106C-----------------------------------------------
107C PULLEY SPRING
108C-----------------------------------------------
109 DO i=lft,llt
110 ioff(el2fa(n_fa+i)) = nint(min(gbuf%OFF(i),one))
111 ioff(el2fa(n_fa+i)+1) = nint(min(gbuf%OFF(i),one))
112 ENDDO
113C-----------------------------------------------
114 ELSEIF (ity == 1 .or. ity == 2 .or. ity == 51 .or.
115 . ity == 3 .or. ity == 7 .or. ity == 4 .or.
116 . ity == 5 .or. ity == 6) THEN
117 DO i=lft,llt
118 ioff(el2fa(n_fa+i)) = nint(min(gbuf%OFF(i),one))
119 ENDDO
120C-----------------------------------------------
121 ENDIF ! IF (MLW == 0)
122 ENDIF ! IF (ITY /= 0)
123C-----------------------------------------------
124 ENDDO ! DO NG=1,NGROUP
125C-----------------------------------------------
126 CALL write_c_c(ioff,nbf)
127C + X-ELEMENTS
128 CALL write_c_c(ioffx1,nanim1d)
129C
130 RETURN
131 END
#define min(a, b)
Definition macros.h:20
subroutine aniofff(elbuf_tab, iparg, ioff, el2fa, nbf, ioffx1)
Definition aniofff.F:32
void write_c_c(int *w, int *len)