OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
accelepinch.F File Reference
#include "implicit_f.inc"
#include "vectorize.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine accelepinch (apinch, ms, mspinch, stifpinch, nodft, nodlt, dtnod, dtfac)

Function/Subroutine Documentation

◆ accelepinch()

subroutine accelepinch ( apinch,
ms,
mspinch,
stifpinch,
integer nodft,
integer nodlt,
dtnod,
dtfac )

Definition at line 30 of file accelepinch.F.

34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER NODFT, NODLT
46 my_real apinch(3,*),ms(*),mspinch(*),stifpinch(*)
47 my_real dtnod,dtfac
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER N
52 my_real rtmp,mtemppinch,factor
53C-----------------------------------------------
54C S o u r c e L i n e s
55C-----------------------------------------------
56#include "vectorize.inc"
57 DO n=nodft,nodlt
58 IF(ms(n)>zero) THEN
59 factor = (dtnod**2) * half / (dtfac**2)
60 mspinch(n) = max(mspinch(n), stifpinch(n)*factor)
61 rtmp = one / mspinch(n)
62C
63 apinch(1,n) = apinch(1,n) * rtmp
64 apinch(2,n) = apinch(2,n) * rtmp
65 apinch(3,n) = apinch(3,n) * rtmp
66 ELSE
67 apinch(1,n) = zero
68 apinch(2,n) = zero
69 apinch(3,n) = zero
70 ENDIF
71 stifpinch(n) = zero
72 ENDDO
73 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21