-
Notifications
You must be signed in to change notification settings - Fork 0
/
multi-phase-checks-eulerian.jou
47 lines (39 loc) · 2.09 KB
/
multi-phase-checks-eulerian.jou
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
; Read mesh.
/file/read-case "channel.msh.gz"
; Merge the symmetry zones with the wall zones to simplify the mesh.
/define/boundary-conditions/modify-zones/zone-type 8 wall
/define/boundary-conditions/modify-zones/zone-type 9 wall
/define/boundary-conditions/modify-zones/merge-zones 5 8 9 10 ()
/define/boundary-conditions/modify-zones/zone-name 5 walls
; Create water material (not-overwriting the standard air)
/define/materials/change-create air water yes constant 1000.0 no no yes constant 0.001 no no no no
/define/materials/change-create water oil yes constant 500.0 no no yes constant 0.01 no no no no
; No turbulence model needed.
/define/models/viscous/laminar? yes
; Pick the VOF multi-phase model and define the phases.
/define/models/multiphase/model eulerian
/define/models/multiphase/number-of-phases 3
/define/phases/set-domain-properties/change-phases-names? air oil water
/define/phases/set-domain-properties/phase-domains/water/material yes water
/define/phases/set-domain-properties/phase-domains/oil/material yes oil
/define/phases/set-domain-properties/phase-domains/air/material yes air
; No need to any additional setting, at this state, if we initialize the solution, the
; variables will already be available with the expected values.
; Set default values for initialization.
/solve/initialize/set-defaults/mixture/pressure 0.0
/solve/initialize/set-defaults/water/x-velocity 0.0
/solve/initialize/set-defaults/water/y-velocity 0.0
/solve/initialize/set-defaults/water/z-velocity 0.0
/solve/initialize/set-defaults/oil/x-velocity 0.0
/solve/initialize/set-defaults/oil/y-velocity 0.0
/solve/initialize/set-defaults/oil/z-velocity 0.0
/solve/initialize/set-defaults/oil/mp 0.0
/solve/initialize/set-defaults/air/x-velocity 0.0
/solve/initialize/set-defaults/air/y-velocity 0.0
/solve/initialize/set-defaults/air/z-velocity 0.0
/solve/initialize/set-defaults/air/mp 0.0
; Initialize the solution.
/solve/initialize/initialize-flow
; Read and execute the UDF to check the variables.
/define/user-defined/compiled-functions load "libudf"
/define/user-defined/execute-on-demand "print_multi_phase_variables::libudf"