OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sesame_tools.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!|| tb2si1 ../starter/source/materials/eos/sesame_tools.F
25!||--- called by ------------------------------------------------------
26!|| hm_read_eos_sesame ../starter/source/materials/eos/hm_read_eos_sesame.F
27!||====================================================================
28 SUBROUTINE tb2si1(DENS,PRES,ENER,NR,NT)
29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C D u m m y A r g u m e n t s
35C-----------------------------------------------
36 INTEGER NR,NT
38 . dens(*),pres(nr,*),ener(nr,*)
39C-----------------------------------------------
40C L o c a l V a r i a b l e s
41C-----------------------------------------------
42 INTEGER I,J
44 . dtab2si,ptab2si,etab2si
45C
46C---------------------------------------------------------------
47C Passage des unites table Sesame type 301-306 aux unites SI
48C 1 Mg/m^3 --> 1000 Kg/m^3
49C 1 GPa --> 1E9 Kg/(m.s^2)
50C 1 MJ/Kg --> 1E6 m^2/s^2
51C
52C DTAB2SI : coef. de passage des masses volumiques tables aux unites SI
53C PTAB2SI : coef. de passage des pressions tables aux unites SI
54C ETAB2SI : coef. de passage des energies libres tables aux unites SI
55C
56 dtab2si = 1000.
57 ptab2si = 1.e09
58 etab2si = 1.e06
59C
60 DO i=1,nr
61 dens(i)=dens(i)*dtab2si
62 ENDDO
63C
64 DO i=1,nr
65 DO j=1,nt
66 pres(i,j)=pres(i,j)*ptab2si
67 ener(i,j)=ener(i,j)*etab2si
68 ENDDO
69 ENDDO
70C
71 RETURN
72 END
73
74
75
76!||====================================================================
77!|| tbusr1 ../starter/source/materials/eos/sesame_tools.F
78!||--- called by ------------------------------------------------------
79!|| hm_read_eos_sesame ../starter/source/materials/eos/hm_read_eos_sesame.F
80!||--- uses -----------------------------------------------------
81!||====================================================================
82 SUBROUTINE tbusr1(R,P,E,NR,NT,UNITAB)
83C-----------------------------------------------
84C I m p l i c i t T y p e s
85C-----------------------------------------------
86 USE unitab_mod
87#include "implicit_f.inc"
88C-----------------------------------------------
89C D u m m y A r g u m e n t s
90C-----------------------------------------------
91 INTEGER NR,NT
92 TYPE(unit_type_), INTENT(IN) :: UNITAB
94 . r(*),p(nr,*),e(nr,*)
95C-----------------------------------------------
96C C o m m o n B l o c k s
97C-----------------------------------------------
98C-----------------------------------------------
99C L o c a l V a r i a b l e s
100C-----------------------------------------------
101 INTEGER I,J
102 my_real alscal,amscal,atscal,dscal,pscal,escal
103C-----------------------------------------------
104C S o u r c e L i n e s
105C-----------------------------------------------
106 amscal=unitab%FAC_M_WORK
107 alscal=unitab%FAC_L_WORK
108 atscal=unitab%FAC_T_WORK
109C----------------------------------------------------------------
110C Passage des unites table Sesame type 301-306 aux unites
111C utilisateur passer obligatoirement avant l'appel de cette
112C routine par la routine TB2SI1
113C coefficients de passage des unites SI aux unites utilisateur
114C M --> masse
115C L --> longueur
116C T --> temps
117C masse volumique : M.L^-3
118C pression : M.l^-1.T^-2
119C energie : L^2.T^-2
120C L'energy array est en fait equivalent a la chaleur specifique
121C de transition de phase. Cf Aide Memoire de Physique, B. YAVORSKI
122C ET A.DETLAF, p 927.
123C
124 dscal = (alscal**3)/amscal
125 pscal = alscal*(atscal**2)/amscal
126 escal = (atscal**2)/(alscal**2)
127C
128 DO i=1,nr
129 r(i)=r(i)*dscal
130 ENDDO
131C
132 DO i=1,nr
133 DO j=1,nt
134 p(i,j)=p(i,j)*pscal
135 e(i,j)=e(i,j)*escal
136 ENDDO
137 ENDDO
138C
139 RETURN
140 END
#define my_real
Definition cppsort.cpp:32
subroutine dscal(n, da, dx, incx)
DSCAL
Definition dscal.f:79
subroutine tbusr1(r, p, e, nr, nt, unitab)
subroutine tb2si1(dens, pres, ener, nr, nt)