OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
write_viscparam.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_viscparam ../engine/source/output/restart/write_viscparam.F
25!||--- called by ------------------------------------------------------
26!|| write_matparam ../engine/source/output/restart/write_matparam.F
27!||--- calls -----------------------------------------------------
28!|| write_c_c ../common_source/tools/input_output/write_routtines.c
29!|| write_db ../common_source/tools/input_output/write_db.F
30!|| write_i_c ../common_source/tools/input_output/write_routtines.c
31!|| write_mat_table ../engine/source/materials/tools/write_mat_table.F
32!||--- uses -----------------------------------------------------
33!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
34!|| visc_param_mod ../common_source/modules/mat_elem/visc_param_mod.F90
35!||====================================================================
36 SUBROUTINE write_viscparam(VISC)
37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE visc_param_mod
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 TYPE(visc_param_) ,INTENT(IN) :: VISC
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 INTEGER :: I,IAD,NFIX,NUPARAM,NIPARAM,NUMTABL
54 INTEGER ,DIMENSION(NCHARTITLE) :: NAME
55 INTEGER ,DIMENSION(:) ,ALLOCATABLE :: IBUF
56C=======================================================================
57 nfix = 6
58 ALLOCATE (ibuf(nfix + 1))
59c
60 iad = 1
61 ibuf(iad) = nfix
62c
63 iad = iad+1
64 ibuf(iad) = visc%ILAW
65 iad = iad+1
66 ibuf(iad) = visc%NUPARAM
67 iad = iad+1
68 ibuf(iad) = visc%NIPARAM
69 iad = iad+1
70 ibuf(iad) = visc%NUVAR
71 iad = iad+1
72 ibuf(iad) = visc%NFUNC
73 iad = iad+1
74 ibuf(iad) = visc%NTABLE
75 iad = iad+1
76c
77 CALL write_i_c(ibuf,nfix+1)
78 DEALLOCATE(ibuf)
79
80c write viscosity model title
81
82 DO i=1,nchartitle
83 name(i) = ichar(visc%TITLE(i:i))
84 END DO
85 CALL write_c_c(name,nchartitle)
86c
87c write viscosity parameter array
88
89 nuparam = visc%NUPARAM
90 niparam = visc%NIPARAM
91 IF (nuparam > 0) THEN
92 CALL write_db(visc%UPARAM ,nuparam)
93 END IF
94 IF (niparam > 0) THEN
95 CALL write_i_c(visc%IPARAM ,niparam)
96 END IF
97c
98c write viscosity law tables
99c
100 numtabl = visc%NTABLE
101 IF (numtabl > 0) THEN
102 CALL write_mat_table(visc%TABLE, numtabl)
103 END IF
104c-----------
105 RETURN
106 END
subroutine write_viscparam(visc)
integer, parameter nchartitle
subroutine write_mat_table(table, numtabl)
subroutine write_db(a, n)
Definition write_db.F:140
void write_i_c(int *w, int *len)
void write_c_c(int *w, int *len)