Recently I am trying to learn Fenics. I realize that the tutorial book is outdated. I run into lots of syntax/parameter errors when I type the examples in the tutorial. Any suggestions?

For example, I started with generating a mesh with #editor.open(mesh,2,2)# it prompts an error message saying that the “type” is missing. After reading some threads here I found out that I should write #editor.open(mesh,“triangle”,2,2)# and it worked.

Then I started to try to generate rectangular mesh and I assumed that I should replace “triangle” with “rectangle” or “quadrilateral” or “quad”. Unfortunately, non of them is working. Can anyone help on this?

Thanks.