OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
bulkfakeigeo3.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!|| bulkfakeigeo3 ../starter/source/elements/ige3d/bulkfakeigeo3.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- uses -----------------------------------------------------
28!||====================================================================
29 SUBROUTINE bulkfakeigeo3(ELBUF_TAB,IPARG,PM,KXIG3D,IGRSURF,STIFINT)
30C-----------------------------------------------
31C M o d u l e s
32C-----------------------------------------------
33 USE elbufdef_mod
34 USE groupdef_mod
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com01_c.inc"
43#include "com04_c.inc"
44#include "param_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER IPARG(NPARG,NGROUP),
49 . KXIG3D(NIXIG3D,*)
50C REAL
52 . pm(npropm,*),stifint(*)
53 TYPE(elbuf_struct_), TARGET, DIMENSION(NGROUP) :: ELBUF_TAB
54 TYPE (SURF_) , DIMENSION(NSURF) :: IGRSURF
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I, J, K, N, NG, IEL, ITEL, NUMFAKECP,
59 . OFFSET_IGBUFSSG, OFFSET_NUMFAKENOD, ITSURF
60C REAL
62 . av1,cv1, vol(numelig3d),
63 . vnige(numfakenodigeo), bnige(numfakenodigeo)
64 TYPE(g_bufel_) ,POINTER :: GBUF
65C-----------------------------------------------------------------------
66C
67C isogeometric elements :
68c
69 DO ng=1,ngroup
70 IF (iparg(5,ng) == 101) THEN
71 DO itel=1,iparg(2,ng)
72 gbuf => elbuf_tab(ng)%GBUF
73 vol(itel+iparg(3,ng)) = gbuf%VOL(itel)
74 ENDDO
75 ENDIF
76 ENDDO
77
78 vnige = 0
79 bnige = 0
80c
81 DO itsurf=1,nsurf
82 IF(igrsurf(itsurf)%NSEG_IGE>0) THEN !! on est sur une surface isogeometrique
83 DO j=1,igrsurf(itsurf)%NSEG_IGE
84 iel=igrsurf(itsurf)%ELEM_IGE(j)
85 av1 = vol(iel)/56
86 cv1 = pm(32,kxig3d(1,iel))*av1
87 DO k=1,4
88 numfakecp=igrsurf(itsurf)%NODES_IGE(j,k)
89 vnige(numfakecp-numnod)=vnige(numfakecp-numnod)+av1
90 bnige(numfakecp-numnod)=bnige(numfakecp-numnod)+cv1
91 ENDDO
92 ENDDO
93 ENDIF
94 ENDDO
95c
96 DO n=1,numfakenodigeo
97 bnige(n)=bnige(n)/max(em30,vnige(n))
98 stifint(numnod+n)=stifint(numnod+n)+bnige(n)*(2.*vnige(n))**third
99 ENDDO
100
101CC NB : on peut repartir le volume differemment selon si les points sont dans les coins, au milieu
102cC ou sur une arrete, avec PX,PY,PZ on peut retrouver la place de chacun
103Cc pour les elements 20 neouds, il y a 3/192 * vol aux coins et 14/192 * vol aux points milieux
104C
105CC NB: il me semble que numfakenodigeo est trop grand ici et donc les tableaux sont trop grands et se terminent par 0
106
107 RETURN
108 END
subroutine bulkfakeigeo3(elbuf_tab, iparg, pm, kxig3d, igrsurf, stifint)
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21