Boundary conditions - box part 2
Following the question solved yesterday, I discovered that I can define the boundaries using the mask but I can't define a constant on this mask.
Here is the code:
width=0.1
depth=0.1
p0=Point(0.0,0.0)
p1=Point(0.0,depth)
p2=Point(
p3=Point(width,0.0)
l0=Line(p0,p1)
l1=Line(p1,p2)
l2=Line(p2,p3)
l3=Line(p3,p0)
c1=CurveLoop(
rec1=PlaneSurfa
p4=Point(0.0,-0.01)
p5=Point(
p6=Point(0.01,0.0)
l4=Line(p0,p4)
l5=Line(p4,p5)
l6=Line(p5,p6)
l7=Line(p6,p0)
c2=CurveLoop(
rec2=PlaneSurfa
model=Design(
model.addItems(
model.addItems(
gammaD=
mypde=LinearPDE
mypde.setValue(
v0=mypde.
I define the value -1 at the boundary of rec2. The problem is that this value doesn't show up in the solution. My solution v0 is a constant potential equal to 0.0 (the other boundary condition) over the entire domain (including even the boundaries of rec2). Concluding, I defined the mask at the boundary of rec2 but I can't define the constant value at the mask. Is there a specific function (something like setMaskValue) to do this?
Thank you.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Bruno Martins
- Solved:
- Last query:
- Last reply: