-
Notifications
You must be signed in to change notification settings - Fork 0
/
multi-phase-checks-mixture.jou
46 lines (38 loc) · 2.19 KB
/
multi-phase-checks-mixture.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
; 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 yes
/define/materials/change-create water oil yes constant 750.0 no no yes constant 0.002 no no no no
/define/materials/change-create water fuel yes constant 500.0 no no yes constant 0.003 no no no no
/define/materials/change-create water inert yes constant 250.0 no no yes constant 0.004 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 mixture
/define/models/multiphase/number-of-phases 4
/define/models/multiphase/mixture-parameters no implicit
/define/phases/set-domain-properties/change-phases-names? inert fuel 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/fuel/material yes fuel
/define/phases/set-domain-properties/phase-domains/inert/material yes inert
; 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/mixture/x-velocity 0.0
/solve/initialize/set-defaults/mixture/y-velocity 0.0
/solve/initialize/set-defaults/mixture/z-velocity 0.0
/solve/initialize/set-defaults/oil/mp 0.0
/solve/initialize/set-defaults/fuel/mp 0.0
/solve/initialize/set-defaults/inert/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"