OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_pcyl.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!|| write_pcyl ../engine/source/output/restart/write_pcyl.f
25!||--- called by ------------------------------------------------------
26!|| wrrestp ../engine/source/output/restart/wrrestp.F
27!||--- calls -----------------------------------------------------
28!|| write_db ../common_source/tools/input_output/write_db.F
29!|| write_i_c ../common_source/tools/input_output/write_routtines.c
30!||--- uses -----------------------------------------------------
31!|| loads_mod ../common_source/modules/loads/loads_mod.F90
32!||====================================================================
33 SUBROUTINE write_pcyl(LOADS)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE loads_mod
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 TYPE (LOADS_) ,INTENT(IN) :: LOADS
46C-----------------------------------------------
47C L o c a l V a r i a b l e s
48C-----------------------------------------------
49 INTEGER :: I,J,NSEG,LINT,IAD,NLOAD_CYL
50 INTEGER :: MY_SIZE
51 INTEGER, DIMENSION(:),ALLOCATABLE :: ITMP
52 my_real, DIMENSION(3) :: rtmp
53C-----------------------------------------------
54c -> PCYL_ID
55c -> NSEG
56c -> SEGNOD(NSEG,4) (N1,N2,NB3,N4) by segment
57c -> FRAME_ID
58c -> SENS_ID
59c -> TABLE_ID
60c -> XSCALE_R
61c -> XSCALE_T
62c -> YSCALE_P
63c=======================================================================
64 nload_cyl = loads%NLOAD_CYL
65 DO i=1,nload_cyl
66 nseg = loads%LOAD_CYL(i)%NSEG
67 lint = 5 + nseg*4
68 ALLOCATE (itmp(lint))
69 rtmp(1) = loads%LOAD_CYL(i)%XSCALE_R
70 rtmp(2) = loads%LOAD_CYL(i)%XSCALE_T
71 rtmp(3) = loads%LOAD_CYL(i)%YSCALE
72c
73 itmp(1) = nseg
74 itmp(2) = loads%LOAD_CYL(i)%ID
75 itmp(3) = loads%LOAD_CYL(i)%ISENS
76 itmp(4) = loads%LOAD_CYL(i)%ITABLE
77 itmp(5) = loads%LOAD_CYL(i)%IFRAME
78 iad = 5
79 DO j=1,nseg
80 itmp(iad+1) = loads%LOAD_CYL(i)%SEGNOD(j,1)
81 itmp(iad+2) = loads%LOAD_CYL(i)%SEGNOD(j,2)
82 itmp(iad+3) = loads%LOAD_CYL(i)%SEGNOD(j,3)
83 itmp(iad+4) = loads%LOAD_CYL(i)%SEGNOD(j,4)
84 iad = iad + 4
85 ENDDO
86c
87 CALL write_i_c(itmp,iad)
88 CALL write_db(rtmp,3)
89 ! ---------------
90 ! load/pcyl option : adress of FSKY array
91 my_size = loads%LOAD_CYL(i)%NSEG
92 CALL write_i_c(loads%LOAD_CYL(i)%SEGMENT_ADRESS,4*my_size)
93 ! ---------------
94c
95 DEALLOCATE(itmp)
96 ENDDO
97c-----------
98 RETURN
99 END
#define my_real
Definition cppsort.cpp:32
subroutine write_pcyl(loads)
Definition write_pcyl.F:34
subroutine write_db(a, n)
Definition write_db.F:140
void write_i_c(int *w, int *len)