GfsSurfaceBc
From Gerris
GfsSurfaceBc is used to set boundary conditions for diffusion and Poisson equations on embedded solid boundaries.
The syntax in parameter files is:
GfsSurfaceBc V TYPE VAL
where V
is a variable name, TYPE
is a GfsFunction returning either Dirichlet
or Neumann
and VAL
is a GfsFunction giving the value of the boundary condition.
Examples
- Vortex street around a "heated" cylinder
- Boussinesq flow generated by a heated cylinder
- Dirichlet boundary condition
- Comparison between the explicit and implicit diffusion schemes
- Creeping Couette flow of Generalised Newtonian fluids
- Translation of an hexagon in a uniform flow
- B\'enard--von K\'arm\'an vortex street behind a cylinder translating in a fluid at rest
- Creeping Couette flow between eccentric cylinders
- Flow between eccentric cylinders on a stretched grid
- Balance with solid boundaries
SurfaceBc T Dirichlet 1
SurfaceBc T Dirichlet 1
SurfaceBc P Dirichlet {
double theta = atan2 (y, x);
double r2 = x*x + y*y;
return r2*r2*cos (3.*theta);
}
SurfaceBc T Dirichlet 1
SurfaceBc U Dirichlet (x*x + y*y > 0.140625 ? 0. : - ay)
SurfaceBc V Dirichlet (x*x + y*y > 0.140625 ? 0. : ax)
SurfaceBc U Dirichlet 1.
SurfaceBc U Dirichlet -1.
SurfaceBc U Dirichlet (x*x + y*y > 1.5*R1*R1 ? 0. : - ay/R1)
SurfaceBc V Dirichlet (x*x + y*y > 1.5*R1*R1 ? 0. : ax/R1)
SurfaceBc U Dirichlet (x*x + y*y > 1.5*R1*R1 ? 0. : - ay/R1)
SurfaceBc V Dirichlet (x*x + y*y > 1.5*R1*R1 ? 0. : ax/R1)
SurfaceBc Phi Dirichlet (y > 0)