Package PyFoam :: Package RunDictionary :: Module BlockMesh :: Class BlockMesh
[hide private]
[frames] | no frames]

Class BlockMesh

source code

                object --+            
                         |            
Basics.Utilities.Utilities --+        
                             |        
           FileBasis.FileBasis --+    
                                 |    
         FileBasis.FileBasisBackup --+
                                     |
                                    BlockMesh

Represents a blockMeshDict-file

Instance Methods [hide private]
 
__init__(self, name, backup=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
refineMesh(self, factors, offset=(0,0,0))
Refine the Mesh by multiplying the number of cells in the blocks
source code

Inherited from FileBasis.FileBasisBackup: restore

Inherited from FileBasis.FileBasis: __str__, baseName, closeFile, copyRest, getCaseDir, goMatch, goTo, makeTemp, openFile, parse, purgeFile, readFile, realName, writeFile, writeFileAs

Inherited from Basics.Utilities.Utilities: execute, listDirectory, writeDictionaryHeader

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables [hide private]

Inherited from FileBasis.FileBasis: addedString, removedString

Inherited from Basics.Utilities.Utilities: excludeNames

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, backup=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • name - The name of the parameter file
  • backup - create a backup-copy of the file
Overrides: object.__init__

refineMesh(self, factors, offset=(0,0,0))

source code 

Refine the Mesh by multiplying the number of cells in the blocks

Parameters:
  • factors - either a scalar to scale in all directions or a tuple with the value for each direction
  • offset - an optional tuple for an additionnal offset value for each direction