OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
accelepinch.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!|| accelepinch ../engine/source/assembly/accelepinch.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| pinchtype_mod ../common_source/modules/pinchtype_mod.F
29!||====================================================================
30 SUBROUTINE accelepinch(
31 1 APINCH, MS, MSPINCH,
32 2 STIFPINCH, NODFT, NODLT,
33 3 DTNOD, DTFAC)
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
74 END
subroutine accelepinch(apinch, ms, mspinch, stifpinch, nodft, nodlt, dtnod, dtfac)
Definition accelepinch.F:34
#define max(a, b)
Definition macros.h:21