/[escript]/trunk/pycad/py_src/gmsh.py
ViewVC logotype

Diff of /trunk/pycad/py_src/gmsh.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 932 by gross, Fri Jan 19 09:27:15 2007 UTC revision 990 by ksteube, Wed Feb 21 04:27:52 2007 UTC
# Line 40  class Design(design.Design): Line 40  class Design(design.Design):
40         initializes the gmsh design         initializes the gmsh design
41    
42         @param dim: patial dimension         @param dim: patial dimension
43         @element_size: global element size         @param element_size: global element size
44         @order: element order         @param order: element order
45         @keep_files: flag to keep work files.         @param keep_files: flag to keep work files.
46         """         """
47         design.Design.__init__(self,dim=dim,element_size=element_size,order=order,keep_files=keep_files)         design.Design.__init__(self,dim=dim,element_size=element_size,order=order,keep_files=keep_files)
48         self.setScriptFileName()         self.setScriptFileName()
# Line 76  class Design(design.Design): Line 76  class Design(design.Design):
76         returns the name of the file for the gmsh msh         returns the name of the file for the gmsh msh
77         """         """
78         return self.__mshname         return self.__mshname
79      def setOptions(self,algorithm=None,optimize_quality=True,smoothing=3):      def setOptions(self,algorithm=None,optimize_quality=True,smoothing=1):
80          """          """
81          sets options for the mesh generator          sets options for the mesh generator
82          """          """
# Line 124  class Design(design.Design): Line 124  class Design(design.Design):
124          open(self.getScriptFileName(),"w").write(self.getScriptString())          open(self.getScriptFileName(),"w").write(self.getScriptString())
125          os.system(self.getCommandString())          os.system(self.getCommandString())
126          return self.getMeshFileName()          return self.getMeshFileName()
 # to finley  
 def MakeDomain(design,integrationOrder=-1,optimizeLabeling=True, richFaceElements=False):  
         mshname=design.getMeshHandler()  
         print "MakeDomain :",mshname  
         1/0  
         convertGmshToFinley(open(mshname,"r"),open(filename,"w"),dim=self.getDim())  
         if not self.keepTmpFiles(): os.unlink(mshname)  
         return exe  
         line=gmsh_file.readline().split()  
         while len(line)>0:  
            print line  
            line=gmsh_file.readline().split()  

Legend:
Removed from v.932  
changed lines
  Added in v.990

  ViewVC Help
Powered by ViewVC 1.1.26