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
64C
65 dtnod = ep20
66C
67 IF (nodadt > 0) THEN
68C
69 ! Recovering nodal stiffness and masses
70 stifn => nloc_dmg%STIFNL(1:nloc_dmg%L_NLOC,1)
71 mass => nloc_dmg%MASS(1:nloc_dmg%L_NLOC)
72C
73 ! Allocating non-local nodal timestep table
74 ALLOCATE(dtn(nloc_dmg%L_NLOC))
75 dtn(1:nloc_dmg%L_NLOC) = zero
76C
77 ! Determining the minimum of non-local nodal timestep
78 DO n = nodft,nodlt
79 ! Position of the first additional dof
80 npos = nloc_dmg%POSI(n)
81 ! Number of additional degrees of freedom
82 nddl = nloc_dmg%POSI(n+1) - npos
83 ! Computation of the non-local nodal timestep
84 DO i = npos,npos+nddl-1
85 dtn(i) = dtfac1(11)*cdamp*sqrt(two*mass(i)/max(stifn(i),em20))
86 dtnod = min(dtnod,dtn(i))
87 ENDDO
88 ENDDO
89#include "lockon.inc"
90 dtnod_nlocal = min(dtnod_nlocal,dtnod)
91#include "lockoff.inc"
92C
93 CALL my_barrier()
94 dtnod = dtnod_nlocal
95 ! /DT/NODA/CSTX - Constant timestep with added mass
96 IF ((idtmin(11)==3).OR.(idtmin(11)==4).OR.(idtmin(11)==8)) THEN
97 ! Added mass computation if necessary
98 IF (dtnod < dtmin1(11)*(sqrt(csta))) THEN
99 DO n = nodft,nodlt
100 ! Position of the first additional dof
101 npos = nloc_dmg%POSI(n)
102 ! Number of additional degrees of freedom
103 nddl = nloc_dmg%POSI(n+1) - npos
104 ! Computation of the new non-local mass
105 DO i = npos,npos+nddl-1
106 IF (dtn(i) < dtmin1(11)) THEN
107 dt2p = dtmin1(11)/(dtfac1(11)*cdamp)
108 mass(i) = csta*max(mass(i),half * stifn(i) * dt2p * dt2p * onep00001)
109 ENDIF
110 ENDDO
111 ENDDO
112 dtnod = dtmin1(11)*(sqrt(csta))
113 ENDIF
114 ENDIF
115C
116#include "lockon.inc"
117 ! Classical nodal timestep check
118 IF (dtnod < dt2t) THEN
119 dt2t = min(dt2t,dtnod)
120 ENDIF
121#include "lockoff.inc"
122C
123 ! Resetting non-local nodal stiffness
124 DO n = nodft,nodlt
125 ! Position of the first additional dof
126 npos = nloc_dmg%POSI(n)
127 ! Number of additional degrees of freedom
128 nddl = nloc_dmg%POSI(n+1) - npos
129 ! Resetting nodal stiffness
130 stifn(npos:npos+nddl-1) = em20
131 ENDDO
132C
133 ! Deallocation
134 IF (ALLOCATED(dtn)) DEALLOCATE(dtn)
135C
136 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