Skip to content

Commit e682487

Browse files
committed
Add two scalars to DC
1 parent b7e0c00 commit e682487

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/oasismove/problems/NSfracStep/DrivenCavity.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ def problem_parameters(NS_parameters, scalar_components, **NS_namespace):
2828
pressure_degree=1,
2929
use_krylov_solvers=True)
3030

31-
scalar_components += ["alfa"]
31+
scalar_components += ["alfa", "beta"]
3232
Schmidt["alfa"] = 1.
33+
Schmidt["beta"] = 10.
3334

3435

3536
# Create a mesh
@@ -42,13 +43,16 @@ def mesh(Nx=50, Ny=50, **params):
4243
def create_bcs(V, **NS_namespace):
4344
noslip = "std::abs(x[0]*x[1]*(1-x[0]))<1e-8"
4445
top = "std::abs(x[1]-1) < 1e-8"
46+
bottom = "std::abs(x[1]) < 1e-8"
4547
bc0 = DirichletBC(V, 0, noslip)
4648
bc00 = DirichletBC(V, 1, top)
4749
bc01 = DirichletBC(V, 0, top)
50+
bcbeta = DirichletBC(V, 1, bottom)
4851
return dict(u0=[bc00, bc0],
4952
u1=[bc01, bc0],
5053
p=[],
51-
alfa=[bc00])
54+
alfa=[bc00],
55+
beta=[bcbeta])
5256

5357

5458
def initialize(x_1, x_2, bcs, **NS_namespace):

0 commit comments

Comments
 (0)