OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
nlocal_dtnoda.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "scr02_c.inc"
#include "scr18_c.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine nlocal_dtnoda (nodft, nodlt, nloc_dmg, dtnod_nlocal, dt2t)

Function/Subroutine Documentation

◆ nlocal_dtnoda()

subroutine nlocal_dtnoda ( integer nodft,
integer nodlt,
type(nlocal_str_), target nloc_dmg,
dtnod_nlocal,
dt2t )

Definition at line 32 of file nlocal_dtnoda.F.

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
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20
#define max(a, b)
Definition macros.h:21
subroutine my_barrier
Definition machine.F:31