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

Go to the source code of this file.

Functions/Subroutines

subroutine r3coor3 (x, vr, ixr, xdp, x1dp, x2dp, x3dp, ngl, mgn, nc1, nc2, nc3, nel)

Function/Subroutine Documentation

◆ r3coor3()

subroutine r3coor3 ( x,
vr,
integer, dimension(nixr,*) ixr,
double precision, dimension(3,*) xdp,
double precision, dimension(3,*) x1dp,
double precision, dimension(3,*) x2dp,
double precision, dimension(3,*) x3dp,
integer, dimension(*) ngl,
integer, dimension(*) mgn,
integer, dimension(*) nc1,
integer, dimension(*) nc2,
integer, dimension(*) nc3,
integer, intent(in) nel )

Definition at line 28 of file r3coor3.F.

33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C C o m m o n B l o c k s
39C-----------------------------------------------
40#include "scr05_c.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER, INTENT(IN) :: NEL
45 INTEGER IXR(NIXR,*),NGL(*),MGN(*),NC1(*),NC2(*),NC3(*)
46C REAL
48 . x(3,*), vr(3,*)
49 DOUBLE PRECISION XDP(3,*),
50 . X1DP(3,*),X2DP(3,*),X3DP(3,*)
51C-----------------------------------------------
52C L o c a l V a r i a b l e s
53C-----------------------------------------------
54 INTEGER I,J
55C-----------------------------------------------
56 DO i=1,nel
57 ngl(i)=ixr(nixr,i)
58 nc1(i)=ixr(2,i)
59 nc2(i)=ixr(3,i)
60 nc3(i)=ixr(4,i)
61 mgn(i)=ixr(1,i)
62 ENDDO
63C----------------------------
64C COORDONNEES+ROTATIONS
65C----------------------------
66 IF (iresp == 1) THEN
67 DO i=1,nel
68 x1dp(1,i)=xdp(1,nc1(i))
69 x1dp(2,i)=xdp(2,nc1(i))
70 x1dp(3,i)=xdp(3,nc1(i))
71 x2dp(1,i)=xdp(1,nc2(i))
72 x2dp(2,i)=xdp(2,nc2(i))
73 x2dp(3,i)=xdp(3,nc2(i))
74 x3dp(1,i)=xdp(1,nc3(i))
75 x3dp(2,i)=xdp(2,nc3(i))
76 x3dp(3,i)=xdp(3,nc3(i))
77 END DO
78 ELSE
79 DO i=1,nel
80 x1dp(1,i)=x(1,nc1(i))
81 x1dp(2,i)=x(2,nc1(i))
82 x1dp(3,i)=x(3,nc1(i))
83 x2dp(1,i)=x(1,nc2(i))
84 x2dp(2,i)=x(2,nc2(i))
85 x2dp(3,i)=x(3,nc2(i))
86 x3dp(1,i)=x(1,nc3(i))
87 x3dp(2,i)=x(2,nc3(i))
88 x3dp(3,i)=x(3,nc3(i))
89 ENDDO
90 ENDIF
91C---
92 RETURN
#define my_real
Definition cppsort.cpp:32