OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
nlocal_dtnoda.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!|| nlocal_dtnoda ../engine/source/time_step/nlocal_dtnoda.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| my_barrier ../engine/source/system/machine.F
29!||--- uses -----------------------------------------------------
30!|| nlocal_reg_mod ../common_source/modules/nlocal_reg_mod.F
31!||====================================================================
32 SUBROUTINE nlocal_dtnoda(NODFT ,NODLT ,NLOC_DMG ,DTNOD_NLOCAL, DT2T )
33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41#include "comlock.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "scr02_c.inc"
46#include "scr18_c.inc"
47C-----------------------------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER NODFT, NODLT
51 TYPE(nlocal_str_), TARGET :: NLOC_DMG
53 . dt2t,dtnod_nlocal
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER N,I,NDDL,NPOS
58 my_real, DIMENSION(:), ALLOCATABLE ::
59 . dtn
60 my_real, POINTER, DIMENSION(:) ::
61 . mass,stifn
63 . dtnod,dt2p
64 ! Safety coefficient for non-local stability vs mechanical stability
65 ! (it has been slightly increased vs nloc_dmg_init.F)
66 my_real, PARAMETER :: csta = 40.0d0
67 ! Coefficient for non-local stability to take into account damping
68 my_real, PARAMETER :: cdamp = 0.7d0
69C
70 dtnod = ep20
71 IF (nodadt > 0) THEN
72C
73 ! Recovering nodal stiffness and masses
74 stifn => nloc_dmg%STIFNL(1:nloc_dmg%L_NLOC,1)
75 mass => nloc_dmg%MASS(1:nloc_dmg%L_NLOC)
76C
77 ! Allocating non-local nodal timestep table
78 ALLOCATE(dtn(nloc_dmg%L_NLOC))
79 dtn(1:nloc_dmg%L_NLOC) = zero
80C
81 ! Determining the minimum of non-local nodal timestep
82 DO n = nodft,nodlt
83 ! Position of the first additional dof
84 npos = nloc_dmg%POSI(n)
85 ! Number of additional degrees of freedom
86 nddl = nloc_dmg%POSI(n+1) - npos
87 ! Computation of the non-local nodal timestep
88 DO i = npos,npos+nddl-1
89 dtn(i) = dtfac1(11)*cdamp*sqrt(two*mass(i)/max(stifn(i),em20))
90 dtnod = min(dtnod,dtn(i))
91 ENDDO
92 ENDDO
93#include "lockon.inc"
94 dtnod_nlocal = min(dtnod_nlocal,dtnod)
95#include "lockoff.inc"
96C
97 CALL my_barrier()
98 dtnod = dtnod_nlocal
99 ! /DT/NODA/CSTX - Constant timestep with added mass
100 IF ((idtmin(11)==3).OR.(idtmin(11)==4).OR.(idtmin(11)==8)) THEN
101 ! Added mass computation if necessary
102 IF (dtnod < dtmin1(11)*(sqrt(csta))) THEN
103 DO n = nodft,nodlt
104 ! Position of the first additional dof
105 npos = nloc_dmg%POSI(n)
106 ! Number of additional degrees of freedom
107 nddl = nloc_dmg%POSI(n+1) - npos
108 ! Computation of the new non-local mass
109 DO i = npos,npos+nddl-1
110 IF (dtn(i) < dtmin1(11)) THEN
111 dt2p = dtmin1(11)/(dtfac1(11)*cdamp)
112 mass(i) = csta*max(mass(i),half * stifn(i) * dt2p * dt2p * onep00001)
113 ENDIF
114 ENDDO
115 ENDDO
116 ENDIF
117 dtnod = dtmin1(11)*(sqrt(csta))
118 ENDIF
119C
120#include "lockon.inc"
121 ! Classical nodal timestep check
122 IF (dtnod < dt2t) THEN
123 dt2t = min(dt2t,dtnod)
124 ENDIF
125#include "lockoff.inc"
126C
127 ! Resetting non-local nodal stiffness
128 DO n = nodft,nodlt
129 ! Position of the first additional dof
130 npos = nloc_dmg%POSI(n)
131 ! Number of additional degrees of freedom
132 nddl = nloc_dmg%POSI(n+1) - npos
133 ! Resetting nodal stiffness
134 stifn(npos:npos+nddl-1) = em20
135 ENDDO
136C
137 ! Deallocation
138 IF (ALLOCATED(dtn)) DEALLOCATE(dtn)
139C
140 ENDIF
141 END
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine nlocal_dtnoda(nodft, nodlt, nloc_dmg, dtnod_nlocal, dt2t)
subroutine my_barrier
Definition machine.F:31