OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
dampdtnoda.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!|| dampdtnoda ../starter/source/general_controls/damping/dampdtnoda.F
25!||--- called by ------------------------------------------------------
26!|| lectur ../starter/source/starter/lectur.F
27!||--- calls -----------------------------------------------------
28!|| read_engine_dtmin ../starter/source/general_controls/damping/read_engine_dtmin.F
29!||--- uses -----------------------------------------------------
30!||====================================================================
31 SUBROUTINE dampdtnoda(MS ,IN ,STIFN ,STIFR ,IGRNOD ,DAMPR )
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE groupdef_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 my_real , DIMENSION(NUMNOD), INTENT(IN) ::ms
51 my_real , DIMENSION(NUMNOD*IRODDL), INTENT(IN) ::in
52 my_real , DIMENSION(NUMNOD), INTENT(INOUT) ::stifn
53 my_real , DIMENSION(NUMNOD), INTENT(INOUT) ::stifr
54 my_real , DIMENSION(NRDAMP,NDAMP), INTENT(IN) ::dampr
55C-----------------------------------------------
56 TYPE (GROUP_) ,DIMENSION(NGRNOD), INTENT(IN) :: IGRNOD
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER N,I,J,ISK,IGR,ND,K,L,LL,FL_FREQ_RANGE
61 my_real factb,dampbr,dampar,d_tstart,d_tstop,dampt,
62 . dt2n(numnod),bb,coeff,dtn,dtn2,dampai,dampbi,dt0,dampa3,
63 . alpha05,beta1,dtmax,fac,dtmi1,fac0
64C----------------------------------------------------------
65 CALL read_engine_dtmin(dtmi1)
66 dtmax = ep04
67 dt0 = dtmax
68 DO i=1,ndamp
69 fl_freq_range = nint(dampr(31,i))
70 IF ((dampr(19,i)/=0).OR.(fl_freq_range > 0)) cycle
71 igr = nint(dampr(2,i))
72 dtn = dtmax
73 DO j=1,igrnod(igr)%NENTITY
74 nd=igrnod(igr)%ENTITY(j)
75 dt2n(nd) = dtmax
76 IF(stifn(nd)>em20 .AND. ms(nd)>zero)THEN
77 dt2n(nd) = sqrt(two*ms(nd)/stifn(nd))
78 dt2n(nd) = min(dtmax,dt2n(nd))
79 dtn = min(dt2n(nd),dtn)
80 END IF
81 END DO
82 IF (iroddl/=0) THEN
83 DO j=1,igrnod(igr)%NENTITY
84 nd=igrnod(igr)%ENTITY(j)
85 IF(stifr(nd)>em20 .AND. in(nd)>zero)THEN
86 dtn2 = sqrt(two*in(nd)/stifr(nd))
87 dt2n(nd) = min(dt2n(nd),dtn2)
88 dtn = min(dt2n(nd),dtn)
89 END IF
90 END DO
91 END IF
92 dt0=min(dt0,dtn)
93 dampai = max(dampr(3,i),dampr(5,i),dampr(7,i))
94 dampai = max(dampai,dampr(9,i),dampr(11,i),dampr(13,i))
95 dampbi = max(dampr(4,i),dampr(6,i),dampr(8,i))
96 dampbi = max(dampbi,dampr(10,i),dampr(12,i),dampr(14,i))
97 dampt = dt0*dampr(16,i)
98 dampbi = min(dampbi,dampt)
99C--
100 DO j=1,igrnod(igr)%NENTITY
101 nd=igrnod(igr)%ENTITY(j)
102 bb=dampbi/dt2n(nd)+half*dampai*dt2n(nd)
103 fac = sqrt(bb*bb+one) -bb
104 IF (fac*dt2n(nd) < dtmi1) THEN
105 bb=dampbi/dtmi1+half*dampai*dtmi1
106 fac = max(fac,sqrt(bb*bb+one) -bb)
107 END IF
108 coeff =one/fac**2
109 IF(stifn(nd)>em20 .AND. ms(nd)>zero)THEN
110 stifn(nd) =stifn(nd)*coeff
111 END IF
112 IF (iroddl/=0) THEN
113 IF(stifr(nd)>em20 .AND. in(nd)>zero)THEN
114 stifr(nd) =stifr(nd)*coeff
115 END IF
116 END IF
117 END DO
118 END DO !I=1,NDAMP
119C
120 RETURN
121 END SUBROUTINE dampdtnoda
#define my_real
Definition cppsort.cpp:32
subroutine dampdtnoda(ms, in, stifn, stifr, igrnod, dampr)
Definition dampdtnoda.F:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine read_engine_dtmin(dtmin)