How to use Polar-Coordinates to mark a cylindrical boundary
Asked by
Roman Moritz
Hey Guys
I want to mark the inner boundary of an hollow cylinder. Therefor i want to use Polar-Coordinates to make it easyer but i have no idea how to use them to mark a boundary. Is there an UFL-Class or something for that? Or maybe something compareable to x[0],x[1]...
i tried something like
class NeumannBoundary
def inside(self, x ,on_boundary):
tol = 1E-14
return on_boundary and x[0]< (r+tol)*cos(theta) and x[1]<(r+
but then i would have to define a theta which goes fom 0 to 2*pi. Furthermore in this example it defines everything that yield x[0]< (r+tol)*cos(theta) and x[1]<(r+
thanks for helping
greetings Roman
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Roman Moritz
- Solved:
- Last query:
- Last reply:
To post a message you must log in.