-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_2_2.i
108 lines (99 loc) · 1.8 KB
/
example_2_2.i
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# "Applied multiphase flow in pipes and flow assurance oil and gas production"
# Al-Safran, E., Brill, J. P., 2017
# Example 2.1: Determine the pipeline outlet pressure (injection)?
[Mesh]
type = FileMesh
file = example_2_2.msh
uniform_refine = 2
[]
[UserObjects]
[./eos]
type = MoskitoEOS1P_IdealFluid
bulk_modulus = 2e+012
reference_density = 883
reference_enthalpy = 0
reference_temperature = 293.15
[../]
[./viscosity]
type = MoskitoViscosityConst
viscosity = 0.001
[../]
[]
[Materials]
[./area0]
type = MoskitoFluidWell_1p1c
pressure = p
temperature = T
flowrate = q
well_direction = x
well_type = 1
eos_uo = eos
viscosity_uo = viscosity
well_diameter = 0.1016
roughness_type = smooth
manual_friction_factor = 0.02
[../]
[]
[BCs]
[./pbcl]
type = DirichletBC
variable = p
boundary = right
value = 0
[../]
[./qbc]
type = DirichletBC
variable = q
boundary = left
value = 0.00223
[../]
[]
[Variables]
[./T]
initial_condition = 293.15
[../]
[./p]
[../]
[./q]
scaling = 1e-5
initial_condition = 0.00223
[../]
[]
[Kernels]
[./Tkernel]
type = NullKernel
variable = T
[../]
[./pkernel]
type = MoskitoMass_1p1c
variable = p
flowrate = q
temperature = T
[../]
[./qkernel]
type = MoskitoMomentum_1p1c
variable = q
pressure = p
temperature = T
[../]
[]
[Preconditioning]
[./p2]
type = SMP
full = true
petsc_options_iname = '-pc_type -sub_pc_type -sub_pc_factor_shift_type -ksp_gmres_restart'
petsc_options_value = 'asm lu NONZERO 51'
[../]
[]
[Executioner]
type = Steady
l_tol = 1e-10
l_max_its = 50
nl_rel_tol = 1e-8
nl_abs_tol = 1e-9
nl_max_its = 50
solve_type = NEWTON
[]
[Outputs]
exodus = true
[]