Problem with Solving a PDE with tow Neumann Boundary Conditions
Hey Guys
First I'm totaly new in this
I try to solve an elastostatic PDE with two Neumann Boundarys over an simple UnitSquare
the first Boundary holds for y=0, the second on the other Boundarys
I tried to define the Boundarys like its done in the Tutorial 1.5.3 Multiple Neumann, Robin and Dirichlet conditions and i came to this:
from dolfin import *
#Mesh erstellen (Einheitsquadrat mit 6*4 Quadratuntertei
mesh= UnitSquare(6,4)
#Def. des Finiten Elementraums
V=VectorFunctio
#def. Neumann Boundarys
boundary_
tol = 1E-14
class NeumannBoundary
def inside(self, x ,on_boundary):
return x[1] < tol and on_boundary
nm_boundary= NeumannBoundary1()
nm_boundary.
class NeumannBoundary
def inside(self, x ,on_boundary):
return x[1] > tol and on_boundary
nm_boundary2= NeumannBoundary2()
nm_boundary2.
#def. Variationsproblem
u=TrialFunction(V)
v=TestFunction(V)
f=Constant((10,12))
g=Constant((5,5))
c=Constant((0,0))
eu=(1/2)
ev=(1/2)
a=((0.5*
L=inner(f,v)*dx + inner(g,v)*ds(0) + inner(c,v)*ds(1)
#Loesung berechnen
b=assemble(
u=Function(V)
solve(a==b,u)
in this case i get the error "No Jacobian form specified for nonlinear variational problem.", but i dont see why this is an nonlinear Problem
if i just try solve(a==L,u) i get "Unable to extract common cell; missing cell definition in form or expression"
even if i delete the Boundary integrals and just write L=inner(f,v)*dx i get this error
so please help me out
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: