OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
alefvm_expand_mom2.F File Reference
#include "implicit_f.inc"
#include "mvsiz_p.inc"
#include "vect01_c.inc"
#include "param_c.inc"
#include "comlock.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine alefvm_expand_mom2 (ixs, mom, nel)

Function/Subroutine Documentation

◆ alefvm_expand_mom2()

subroutine alefvm_expand_mom2 ( integer, dimension(nixs,*) ixs,
mom,
integer nel )

Definition at line 31 of file alefvm_expand_mom2.F.

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
45 use element_mod , only : nixs
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 "param_c.inc"
59#include "comlock.inc"
60C-----------------------------------------------
61C D e s c r i p t i o n
62C-----------------------------------------------
63C This subroutines expand cell momentum to
64C nodes for post-treatment purpose only
65C-----------------------------------------------
66C D u m m y A r g u m e n t s
67C-----------------------------------------------
68 INTEGER :: IXS(NIXS,*), NEL
69 my_real :: mom(nel,3)
70C-----------------------------------------------
71C L o c a l V a r i a b l e s
72C-----------------------------------------------
73 INTEGER :: I, II, K, ICF(4, 6)
74 INTEGER :: IN(8)
75
76 DATA icf/1,4,3,2,3,4,8,7,5,6,7,8,1,2,6,5,2,3,7,6,1,5,8,4/
77C-----------------------------------------------
78C P r e - C o n d i t i o n s
79C-----------------------------------------------
80 IF(alefvm_param%IEnabled==0) RETURN
81C-----------------------------------------------
82C S o u r c e L i n e s
83C-----------------------------------------------
84
85 !-------------------------------------------------------------!
86 ! EXPANDING CELL VALUE TO FACES AND NODES !
87 ! SPECIFIC TREATMENT IS DONE TO HAVE WALL BCS WITH NODES !
88 !-------------------------------------------------------------!
89 DO i=1,nel
90 ii = i + nft
91 in(1) = ixs(2,ii)
92 in(2) = ixs(3,ii)
93 in(3) = ixs(4,ii)
94 in(4) = ixs(5,ii)
95 in(5) = ixs(6,ii)
96 in(6) = ixs(7,ii)
97 in(7) = ixs(8,ii)
98 in(8) = ixs(9,ii)
99#include "lockon.inc"
100 DO k=1,8
101 alefvm_buffer%VERTEX(1,in(k)) = alefvm_buffer%VERTEX(1,in(k)) + mom(i,1)/eight
102 alefvm_buffer%VERTEX(2,in(k)) = alefvm_buffer%VERTEX(2,in(k)) + mom(i,2)/eight
103 alefvm_buffer%VERTEX(3,in(k)) = alefvm_buffer%VERTEX(3,in(k)) + mom(i,3)/eight
104 alefvm_buffer%VERTEX(4,in(k)) = alefvm_buffer%VERTEX(4,in(k)) + one
105 ENDDO
106#include "lockoff.inc"
107 ENDDO
108
109 RETURN
#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