Hello again,
Managed I managed to figure it out. Below is an example where I have a domain with 5 boundaries and I am trying to set the Physical Line like someone suggested. Does this look right?
If yes, then I think I'm in good shape. One problem is that the boundary layer is very narrow for my choice of parameters so it's hard to know whether the boundary value is really zero. I don't suppose there is an easy way to find out the maximum of the boundary value in the numerical solution?
Sorry, I thought I had upgraded to the latest version of firedrake but I had not. I have since fixed that and am now using the version of firedrake based on python3, which is using 3.5.2.
I am happy to say that when I try using this example in my script it seems to work very nicely. It does inf act solve the weak form and imposes the correct BCS.
Now for my oceanic basin case, below are the last two lines in my code. From this I gather that the name for the physical surface is [2], and that consists of the entire domain.
These look like the optional type annotations. I think they were introduced in Python 3.6, while Firedrake requires Python 3.5+
You are probably running Python 3.5.x then. Just remove those colon types, or alternatively try Python 3.6.
Thanks for all the helpful information. I am starting to understand but not quiet there yet.
I was able to generate the mesh but when I try running your script I get the following problem. Is there a different syntax we should be using?
(firedrake) fpoulin@domlt32:~/Dropbox/Research_Christine/Notebooks/TestGeometry$ python membrane.py quadrant.mshFile "membrane.py", line 11def main(meshfile: str) -> None:^SyntaxError: invalid syntax
What I understand is I should be specifying a label to the boundary and use this label to impose the BC's. I tried importing your geometry into my notebook and that seemed to go okay but when I try plotting I get the Assertion error.
Any more help would be greatly appreciated.
I am curious to see what you find does the trick.
As for my coastline problem, the good news is that I can now import the geometry. The bad news is that when I solve the weak for of the PDE it does not impose the Dirichlet BCs.