Hi,
I want to define a "Slip" boundary condition instead a "Wall' or "No Slip" boundary condition for Navier-Stokes incompressible equations.
I saw an example of Navier-Stokes incompressible equations in the Fenics demo, but I don't undestand how to define the "Slip" condition.
As I undestand the "Slip" boundary condition is:
if scalar: zeroGradient;
if vector: normal component is FixedValue = zero, tangential components are zeroGradient;
Or:
A slip boundary condition corresponds to setting the normal component
of the velocity U * n to zero at the boundary and models a boundary with
neglible friction which the flow cannot penetrate.
link to the Fenics demo example:
http://fenicsproject.org/documentation/dolfin/1.5.0/python/demo/documented/navier-stokes/python/documentation.html
I think I must change the equation for "Tentative velocity step":
F1 = (1/k)*inner(u - u0, v)*dx + inner(grad(u0)*u0, v)*dx + \
nu*inner(grad(u), grad(v))*dx - inner(f, v)*dx
to:
F1 = (1/k)*inner(u - u0, v)*dx + inner(grad(u0)*u0, v)*dx + \
nu*inner(grad(u), grad(v))*dx - inner(f, v)*dx - nu*inner(grad(u) * n, v)*ds[wall boundary number]
The other two equations for "Pressure update" and "Velocity update" are remain unchanged.
Also I have to change
bcu = [noslip]
bcp = [inflow, outflow]
to
bcu = []
bcp = [inflow, outflow]
Am I right?
Thanks in advance!
Regards,
Maksim