OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
nlocal_acc.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_acc ../engine/source/assembly/nlocal_acc.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- calls -----------------------------------------------------
28!|| my_isnan ../engine/source/system/my_isnan.F
29!||--- uses -----------------------------------------------------
30!|| nlocal_reg_mod ../common_source/modules/nlocal_reg_mod.F
31!||====================================================================
32 SUBROUTINE nlocal_acc(NLOC_DMG, NODFT ,NODLT)
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"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER NODFT, NODLT
45 TYPE(NLOCAL_STR_), TARGET :: NLOC_DMG
46C-----------------------------------------------
47C L o c a l V a r i a b l e s
48C-----------------------------------------------
49 INTEGER N,NDDL,NPOS,K
50 my_real, POINTER, DIMENSION(:) ::
51 . f,m
52 LOGICAL :: MY_ISNAN
53C-----------------------------------------------
54c calcul acceleration de la variable non locale
55c=======================================================================
56 ! Recovering forces and masses
57 f => nloc_dmg%FNL(1:nloc_dmg%L_NLOC,1)
58 m => nloc_dmg%MASS(1:nloc_dmg%L_NLOC)
59#include "vectorize.inc"
60 ! Loop over the nodes of the subset
61 DO n = nodft,nodlt
62 ! Position of the first additional dof
63 npos = nloc_dmg%POSI(n)
64 ! Number of additional degrees of freedom
65 nddl = nloc_dmg%POSI(n+1) - npos
66 ! Computation of the acceleration (stored in the forces vector)
67 f(npos:npos+nddl-1) = f(npos:npos+nddl-1) / m(npos:npos+nddl-1)
68 ENDDO
69c-----------
70 RETURN
71 END
72
#define my_real
Definition cppsort.cpp:32
subroutine nlocal_acc(nloc_dmg, nodft, nodlt)
Definition nlocal_acc.F:33