OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
s10mallgeo3.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!|| s10mallgeo3 ../engine/source/elements/solid/solide10/s10mallgeo3.F
25!||--- called by ------------------------------------------------------
26!|| s10forc3 ../engine/source/elements/solid/solide10/s10forc3.f
27!||--- uses -----------------------------------------------------
28!|| dt_mod ../engine/source/modules/dt_mod.F
29!||====================================================================
30 SUBROUTINE s10mallgeo3(
31 1 NGL, OFFG, VOLG, DELTAX,
32 2 VOLG0, RX, RY, RZ,
33 3 SX, SY, SZ, TX,
34 4 TY, TZ, LC, GEO,
35 5 NEL, NPT, ISMSTR, ISROT,DT )
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE dt_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "mvsiz_p.inc"
48#include "param_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER, INTENT(IN) :: NEL
53 INTEGER, INTENT(IN) :: NPT
54 INTEGER, INTENT(IN) :: ISMSTR
55 INTEGER, INTENT(IN) :: ISROT
56 INTEGER NGL(*)
57C REAL
58 my_real, DIMENSION(NPROPG) , INTENT(IN) :: geo
59 my_real, DIMENSION(MVSIZ) , INTENT(OUT) :: lc
61 . offg(*),volg(*),deltax(*), volg0(*),
62 . rx(*), ry(*), rz(*), sx(*), sy(*), sz(*),tx(*), ty(*), tz(*)
63 TYPE(dt_), INTENT(INOUT) :: DT
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 INTEGER I,ITET,IDELM,ICST
69 . a1,a2,a3,a4,
70 . a1x,a2x,a3x,a4x,a1y,a2y,a3y,a4y,a1z,a2z,a3z,a4z,
71 . vdefmin,vdefmax,aspmin,asptet,min_aspect,min_defv,delm
72C---------------------------------------------
73 min_aspect = dt%BRICK_CST_COL_MIN
74 min_defv = dt%BRICK_CST_DEFV_MIN
75 vdefmin = geo(190)
76 vdefmax = geo(191)
77 aspmin = geo(192)
78 asptet = geo(193)
79 delm = vdefmin +vdefmax+aspmin+asptet
80 icst = 1
81 IF((min_aspect+min_defv)==zero.AND.
82 . (ismstr==1.OR.ismstr==3.OR.ismstr==11)) icst=0
83 idelm = 1
84 idelm = dt%IDEL_BRICK
85 IF(idelm ==0.AND.delm==zero) idelm = 0
86 IF((idelm+icst) >0) THEN
87 IF(isrot /= 1)THEN
88 DO i=1,nel
89 a1x = ry(i)*sz(i)-rz(i)*sy(i)
90 a1y = rz(i)*sx(i)-rx(i)*sz(i)
91 a1z = rx(i)*sy(i)-ry(i)*sx(i)
92 a1 = a1x*a1x+a1y*a1y+a1z*a1z
93
94 a2x = sy(i)*tz(i)-sz(i)*ty(i)
95 a2y = sz(i)*tx(i)-sx(i)*tz(i)
96 a2z = sx(i)*ty(i)-sy(i)*tx(i)
97 a2 = a2x*a2x+a2y*a2y+a2z*a2z
98
99 a3x = ty(i)*rz(i)-tz(i)*ry(i)
100 a3y = tz(i)*rx(i)-tx(i)*rz(i)
101 a3z = tx(i)*ry(i)-ty(i)*rx(i)
102 a3 = a3x*a3x+a3y*a3y+a3z*a3z
103
104 a4x = a1x+a2x+a3x
105 a4y = a1y+a2y+a3y
106 a4z = a1z+a2z+a3z
107 a4 = a4x*a4x+a4y*a4y+a4z*a4z
108
109 lc(i) = six*volg(i)/sqrt(max(a1,a2,a3,a4))
110 END DO
111 ELSE
112 DO i=1,nel
113 lc(i) = deltax(i)
114 END DO
115 END IF ! (ISROT == 0)THEN
116 END IF ! ((IDELM+ICST) >0) THEN
117C
118 RETURN
119 END
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21
subroutine s10forc3(timers, output, elbuf_tab, ng, pm, geo, ixs, x, a, v, ms, w, flux, flu1, veul, fv, ale_connect, iparg, tf, npf, bufmat, partsav, nloc_dmg, dt2t, neltst, ityptst, stifn, fsky, iads, offset, eani, iparts, ixs10, iads10, nel, fx, fy, fz, ar, vr, dr, ipm, istrain, isolnod, itask, temp, fthe, fthesky, iexpan, stifr, d, gresav, grth, igrth, table, mssa, dmels, igeo, xdp, voln, condn, condnsky, sfem_nodvar, itagdn, sensors, ioutprt, mat_elem, h3d_strain, dt, idel7nok, snpc, stf, sbufmat, svis, nsvois, idtmins, idel7ng, maxfunc, userl_avail, glob_therm, impl_s, idyna, s_sfem_nodvar)
Definition s10forc3.F:114
subroutine s10mallgeo3(ngl, offg, volg, deltax, volg0, rx, ry, rz, sx, sy, sz, tx, ty, tz, lc, geo, nel, npt, ismstr, isrot, dt)
Definition s10mallgeo3.F:36