OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
laser1.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!|| laser1 ../engine/source/loads/laser/laser1.F
25!||--- called by ------------------------------------------------------
26!|| alewdx ../engine/source/ale/grid/alewdx.F
27!||--- calls -----------------------------------------------------
28!|| laser2 ../engine/source/loads/laser/laser2.F
29!|| laser3 ../engine/source/loads/laser/laser2.F
30!||--- uses -----------------------------------------------------
31!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
32!||====================================================================
33 SUBROUTINE laser1(LAS ,XLAS ,MS ,X ,V ,
34 . W ,WA ,IPARG ,IXQ ,PM ,
35 . TF ,NPF , ELBUF_TAB, WFEXT)
36C-----------------------------------------------
37C M o d u l e s
38C-----------------------------------------------
39 USE elbufdef_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C C o m m o n B l o c k s
46C-----------------------------------------------
47#include "com01_c.inc"
48#include "com04_c.inc"
49#include "param_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER LAS(*), IPARG(NPARG,*), IXQ(7,*), NPF(*)
54C REAL
56 . xlas(*), ms(*), x(3,*), v(3,*), w(3,*), wa(3,*),
57 . tf(*), pm(npropm,*)
58 TYPE(elbuf_struct_), DIMENSION(NGROUP) :: ELBUF_TAB
59 DOUBLE PRECISION,INTENT(INOUT) :: WFEXT
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER K1, K2, I, NL, N1, N2, IFUNC, IAFUNC, ITYP
64C-----------------------------------------------
65 k1 = 1
66 k2 = 1
67 DO i=1,nlaser
68 ityp = las(k1+5)
69 nl = las(k1)
70 IF(ityp==0)THEN
71 n1 = las(k1+1)
72 n2 = las(k1+2)
73 wa(3,n1) = zero
74 wa(3,n2) = zero
75 ENDIF
76 k1 = k1 + 6 + 2*(nl+1)
77 k2 = k2 + 6
78 ENDDO
79C
80 k1 = 1
81 k2 = 1
82 DO i=1,nlaser
83 nl = las(k1)
84 n1 = las(k1+1)
85 n2 = las(k1+2)
86 ifunc = las(k1+3)
87 iafunc = las(k1+4)
88 ityp = las(k1+5)
89 IF(ityp==1)THEN
90 CALL laser3(nl ,ifunc ,
91 . las(k1+6) ,xlas(k2),x ,elbuf_tab,pm ,
92 . iparg ,ixq ,tf ,npf ,wfext)
93 ELSE
94 CALL laser2(nl ,n1 ,n2 ,ifunc ,iafunc ,
95 . las(k1+6) ,xlas(k2),x ,elbuf_tab,pm ,
96 . wa ,iparg ,ixq ,tf ,npf ,
97 . wfext)
98 ENDIF
99 k1 = k1 + 6 + 2*(nl+1)
100 k2 = k2 + 6
101 ENDDO
102C
103 k1 = 1
104 DO i=1,nlaser
105 ityp = las(k1+5)
106 nl = las(k1)
107 IF(ityp==0)THEN
108 n1 = las(k1+1)
109 n2 = las(k1+2)
110 wa(1,n1) = one
111 wa(1,n2) = one
112 ENDIF
113 k1 = k1 + 6 + 2*(nl+1)
114 ENDDO
115C
116C
117 k1 = 1
118 k2 = 1
119 DO i=1,nlaser
120 ityp = las(k1+5)
121 nl = las(k1)
122 IF(ityp==0)THEN
123 n1 = las(k1+1)
124 n2 = las(k1+2)
125 IF(wa(1,n1) == one)THEN
126 w(3,n1) = v(3,n1) - wa(3,n1) / ms(n1)
127 wa(1,n1) = zero
128 wa(3,n1) = zero
129 ENDIF
130 IF(wa(1,n2) == one)THEN
131 w(3,n2) = v(3,n2) - wa(3,n2) / ms(n2)
132 wa(1,n2) = zero
133 wa(3,n2) = zero
134 ENDIF
135 ENDIF
136 k1 = k1 + 6 + 2*(nl+1)
137 k2 = k2 + 6
138 ENDDO
139C
140 RETURN
141 END
#define my_real
Definition cppsort.cpp:32
subroutine laser1(las, xlas, ms, x, v, w, wa, iparg, ixq, pm, tf, npf, elbuf_tab, wfext)
Definition laser1.F:36
subroutine laser3(nl, ifunc, las, xlas, x, elbuf_tab, pm, iparg, ixq, tf, npf, wfext)
Definition laser2.F:272
subroutine laser2(nl, n1, n2, ifunc, iafunc, las, xlas, x, elbuf_tab, pm, wa, iparg, ixq, tf, npf, wfext)
Definition laser2.F:38