OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
alefvm_freset.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!|| alefvm_freset ../engine/source/ale/alefvm/alefvm_freset.F
25!||--- called by ------------------------------------------------------
26!|| sforc3 ../engine/source/elements/solid/solide/sforc3.F
27!||--- uses -----------------------------------------------------
28!|| alefvm_mod ../common_source/modules/ale/alefvm_mod.F
29!|| i22bufbric_mod ../common_source/modules/interfaces/cut-cell-search_mod.F
30!||====================================================================
31 SUBROUTINE alefvm_freset ( IAD22 )
32C-----------------------------------------------
33C D e s c r i p t i o n
34C-----------------------------------------------
35C 'alefvm' is related to a collocated scheme (built from FVM and based on Godunov scheme)
36C which was temporarily introduced for experimental option /INTER/TYPE22 (FSI coupling with cut cell method)
37C This cut cell method is not completed, abandoned, and is not an official option.
38C There is no other use for this scheme which is automatically enabled when /INTER/TYPE22 is defined (INT22>0 => IALEFVM=1).
39C
40C This subroutine is treating an uncut cell.
41C-----------------------------------------------
42C M o d u l e s
43C-----------------------------------------------
44 USE alefvm_mod
46C-----------------------------------------------
47C I m p l i c i t T y p e s
48C-----------------------------------------------
49#include "implicit_f.inc"
50C-----------------------------------------------
51C G l o b a l P a r a m e t e r s
52C-----------------------------------------------
53#include "mvsiz_p.inc"
54C-----------------------------------------------
55C C o m m o n B l o c k s
56C-----------------------------------------------
57#include "vect01_c.inc"
58#include "inter22.inc"
59C-----------------------------------------------
60C D e s c r i p t i o n
61C-----------------------------------------------
62C This subroutines initializes cell forces (IALEFVM==1)
63C-----------------------------------------------
64C D u m m y A r g u m e n t s
65C-----------------------------------------------
66 my_real :: iad22(*)
67C-----------------------------------------------
68C L o c a l V a r i a b l e s
69C-----------------------------------------------
70 INTEGER :: I, II, IB, NIN
71C-----------------------------------------------
72C P r e - C o n d i t i o n s
73C-----------------------------------------------
74 IF(alefvm_param%IEnabled==0)RETURN
75C-----------------------------------------------
76C S o u r c e L i n e s
77C-----------------------------------------------
78 nin = 1
79 !-------------------------------------------------------------!
80 ! FORCES INITIALIZATION !
81 !-------------------------------------------------------------!
82 IF(int22==0)THEN
83 DO i=lft,llt
84 ii = i + nft
85 alefvm_buffer%FCELL(1,ii) = zero
86 alefvm_buffer%FCELL(2,ii) = zero
87 alefvm_buffer%FCELL(3,ii) = zero
88 enddo!next I
89 ELSE
90 DO i=lft,llt
91 ii = i + nft
92 alefvm_buffer%FCELL(1,ii) = zero
93 alefvm_buffer%FCELL(2,ii) = zero
94 alefvm_buffer%FCELL(3,ii) = zero
95 ib = nint(iad22(i))
96 IF(ib/=zero)THEN
97 brick_list(nin,ib)%FCELL(1:3) = zero
98 ENDIF
99 enddo!next I
100 ENDIF
101C-----------------------------------------------
102 RETURN
103 END
subroutine alefvm_freset(iad22)
#define my_real
Definition cppsort.cpp:32
type(alefvm_buffer_), target alefvm_buffer
Definition alefvm_mod.F:120
type(alefvm_param_), target alefvm_param
Definition alefvm_mod.F:121
type(brick_entity), dimension(:,:), allocatable, target brick_list