-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaraday_x.f90
executable file
·76 lines (50 loc) · 1.45 KB
/
faraday_x.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
subroutine faraday_x(RHS_x)
!------------------------------- !
! F. Califano, 2006 !
! !
! calcolo di - rot(E)_x !
! !
!------------------------------- !
!**************************************************
! MPI PARALLEL VERSION: VALENTINI-FAGANELLO 2009
! 3D PARALLEL VERSION: FAGANELLO 2010
!**************************************************
use parameter_mod
use box_mod
use deriv_mod
use fields_EB_mod
use dom_distr_mod
IMPLICIT NONE
integer :: ix, iy, iz
REAL(dp),DIMENSION (nxl,nyl,nzl) :: RHS_x
REAL(dp), ALLOCATABLE :: zz(:)
allocate(zz(nz))
! Calcolo componente x
do iz = 1, nz
do ix = 1, nxl
call dery_1(Ez(ix,:,iz), RHS_x(ix,:,iz))
enddo
enddo
RHS_x = - RHS_x
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! eventuale correz. su divB nel bulk
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! CALL traspdist( Bx, At, 1 )
!do iz = 1, nz
! do iy = 1, nyt
! call derx_1( At(:,iy,iz), zx )
! At(:,iy,iz) = zx
! enddo
!enddo
! CALL traspdist( AA, At, -1 )
!do iz = 1, nz
! do ix = 1, nxl
! call dery_1(By(ix,:,iz), zy)
! AA(ix,:,iz) = AA(ix,:,iz) + zy
! enddo
!enddo
!RHS_x = RHS_x - Uex * AA
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Iperviscosita' su Bx...........eventualmente aggiornare per versione 2D/3D parallela
deallocate(zz)
end subroutine