a boundary condition for sphere geometry
Hi, all.
With a sphere with radius = 1, I want to give some values for nodes near the crust of it.
So I tried with 2 codes below and both gave me same warnings:
*** Warning: Found no facets matching domain for boundary condition.
Can you suggest me a way to make it work?
1st code:
from dolfin import *
sphere = UnitSphere(10)
x = sphere.coordinate()
Q = FunctionSpace(
outer= compile_
g = Constant(1.0)
BC = DirichletBC(Q, g, outer)
2nd code:
from dolfin import *
sphere = UnitSphere(10)
x = sphere.coordinate()
Q = FunctionSpace(
boundary = BoundaryMesh(
outer= compile_
g = Constant(1.0)
BC = DirichletBC(Q, g, outer)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Garth Wells
- Solved:
- Last query:
- Last reply: