177 |
out+="Volume(%s) = {%s};\n"%(p.getID(),p.getSurfaceLoop().getDirectedID()) |
out+="Volume(%s) = {%s};\n"%(p.getID(),p.getSurfaceLoop().getDirectedID()) |
178 |
|
|
179 |
elif isinstance(p, PropertySet): |
elif isinstance(p, PropertySet): |
180 |
dim=p.getDim() |
if p.getNumItems()>0: |
181 |
line="Physical " |
dim=p.getDim() |
182 |
if dim==0: |
line="Physical " |
183 |
line+="Point" |
if dim==0: |
184 |
elif dim==1: |
line+="Point" |
185 |
line+="Line" |
elif dim==1: |
186 |
elif dim==2: |
line+="Line" |
187 |
line+="Surface" |
elif dim==2: |
188 |
else: |
line+="Surface" |
189 |
line+="Volume" |
else: |
190 |
out+=line+"(" + str(p.getID()) + ") = {"+self.__mkArgs(p.getItems())+"};\n" |
line+="Volume" |
191 |
|
out+=line+"(" + str(p.getID()) + ") = {"+self.__mkArgs(p.getItems())+"};\n" |
192 |
|
|
193 |
else: |
else: |
194 |
raise TypeError("unable to pass %s object to gmsh."%str(type(p))) |
raise TypeError("unable to pass %s object to gmsh."%str(type(p))) |