Hello
I ran the simple code related to Poisson equation. In this code, the domain has been defined between 0 and 1 for both x and y.
from dolfin import *
mesh = UnitSquareMesh(8, 8)
V = FunctionSpace(mesh, "Lagrange", 1)
u = Function(V)
v = TestFunction(V)
f = Constant(-6.0)
g = Expression("1 + x[0]x[0] + 2x[1]x[1]")
bc = DirichletBC(V, g, DomainBoundary())
F = inner(grad(u), grad(v))dx - fvdx
solve(F == 0, u, bc)
plot(u, interactive=True)
The question is how I can define a different domain? For example x=[0,3] and y=[0,5]. Thanks in advance for your help.