Exception: Unknown OpenCASCADE curve loop with tag 2
import gmsh
from math import *
gmsh.initialize()
gmsh.option.setNumber("Mesh.SaveAll", 1)
gmsh.option.setNumber("Mesh.Algorithm", 6)
gmsh.model.add("concretereinforcedpipe")
lc = 10e-3
circle_outer = gmsh.model.occ.addCircle(0.0, 0.0, 0.0,100.0,1,angle1=0.,angle2=2*pi,zAxis=[0,0,1])
curve_loop = gmsh.model.geo.addCurveLoop([circle_outer],2)
circle_outer_surface = gmsh.model.occ.addPlaneSurface([curve_loop])
gmsh.model.geo.synchronize()
gmsh.model.mesh.generate(2)
gmsh.write("Circle.msh")
gmsh.finalize()
I would like to add a plane surface of the circle's area that will later be extruded. How can "Exception: Unknown OpenCASCADE curve loop with tag 2" be fixed it?