-
Notifications
You must be signed in to change notification settings - Fork 0
/
ls_p.py
37 lines (27 loc) · 1.04 KB
/
ls_p.py
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
from proteus.default_p import *
from proteus.mprans import NCLS
from proteus import Context
ct = Context.get()
domain = ct.domain
nd = domain.nd
mesh = domain.MeshOptions
genMesh = mesh.genMesh
movingDomain = ct.movingDomain
T = ct.T
LevelModelType = NCLS.LevelModel
coefficients = NCLS.Coefficients(V_model=int(ct.movingDomain)+0,
RD_model=int(ct.movingDomain)+3,
ME_model=int(ct.movingDomain)+2,
checkMass=False,
useMetrics=ct.useMetrics,
epsFact=ct.epsFact_consrv_heaviside,
sc_uref=ct.ls_sc_uref,
sc_beta=ct.ls_sc_beta,
movingDomain=ct.movingDomain)
dirichletConditions = {0: lambda x, flag: None}
advectiveFluxBoundaryConditions = {}
diffusiveFluxBoundaryConditions = {0: {}}
class PHI_IC:
def uOfXT(self, x, t):
return x[nd-1] - ct.waterLevel
initialConditions = {0: PHI_IC()}