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 :: J, K, N, NG, IEL, ITEL, NUMFAKECP, ITSURF
59 my_real :: av1,cv1, vol(numelig3d), vnige(numfakenodigeo), bnige(numfakenodigeo)
60 TYPE(g_bufel_) ,POINTER :: GBUF
61C-----------------------------------------------------------------------
62C
63C isogeometric elements :
64c
65 DO ng=1,ngroup
66 IF (iparg(5,ng) == 101) THEN
67 DO itel=1,iparg(2,ng)
68 gbuf => elbuf_tab(ng)%GBUF
69 vol(itel+iparg(3,ng)) = gbuf%VOL(itel)
70 ENDDO
71 ENDIF
72 ENDDO
73
74 vnige = 0
75 bnige = 0
76c
77 DO itsurf=1,nsurf
78 IF(igrsurf(itsurf)%NSEG_IGE>0) THEN !we are on an isogeometric surface
79 DO j=1,igrsurf(itsurf)%NSEG_IGE
80 iel=igrsurf(itsurf)%ELEM_IGE(j)
81 av1 = vol(iel)/56
82 cv1 = pm(32,kxig3d(1,iel))*av1
83 DO k=1,4
84 numfakecp=igrsurf(itsurf)%NODES_IGE(j,k)
85 vnige(numfakecp-numnod)=vnige(numfakecp-numnod)+av1
86 bnige(numfakecp-numnod)=bnige(numfakecp-numnod)+cv1
87 ENDDO
88 ENDDO
89 ENDIF
90 ENDDO
91c
92 DO n=1,numfakenodigeo
93 bnige(n)=bnige(n)/max(em30,vnige(n))
94 stifint(numnod+n)=stifint(numnod+n)+bnige(n)*(2.*vnige(n))**third
95 ENDDO
96
97Cnote: the volume can be distributed differently depending on whether the points are at the corners, in the middle
98Cor on an edge, with px, py, pz you can find the place of each one
99CThis is for 20-node elements, there are 3/192 * volume at corners and 14/192 * volume at the mid-nodes
100C
101Cnote: it seems that numfakenodigeo is too large here and so the arrays are too large and end with 0
102
103 RETURN
104 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