In the solution directory subdirectories whose names are numbers are
assumed to be solutions for a specific time-step
A sub-directory (called the Archive) is created to which solution data
is copied
|
__init__(self,
name,
archive="ArchiveDir")
|
|
isValid(self)
Checks whether this is a valid case directory by looking for the
system- and constant-directories and the controlDict-file
|
|
addToClone(self,
name)
add directory to the list that is needed to clone this case
|
SolutionDirectory or correct subclass
|
cloneCase(self,
name,
svnRemove=True)
create a clone of this case directory.
|
|
packCase(self,
tarname,
last=False,
exclude=[],
additional=[])
Packs all the important files into a compressed tarfile.
|
|
addToTar(self,
tar,
name,
exclude=[])
The workhorse for the packCase-method
|
|
reread(self)
Rescan the directory for the time directories
|
|
sorttimes(self,
x,
y)
Sort function for the solution files
|
|
getTimes(self)
|
|
addBackup(self,
pth)
add file to list of files that are to be copied to the archive
|
str
|
getLast(self)
|
|
lastToArchive(self,
name)
copy the last solution (plus the backup-files to the archive)
|
|
clearResults(self,
after=None)
remove all time-directories after a certain time.
|
|
clearPattern(self,
glob)
Clear all files that fit a certain shell (glob) pattern
|
|
clearOther(self,
processor=True,
pyfoam=True)
Remove additional directories
|
|
clear(self,
after=None,
processor=True,
pyfoam=True)
One-stop-shop to remove data
|
str
|
initialDir(self)
|
str
|
latestDir(self)
|
str
|
constantDir(self,
region=None)
|
str
|
systemDir(self,
region=None)
|
str
|
controlDict(self)
|
str
|
polyMeshDir(self,
region=None)
|
str
|
boundaryDict(self,
region=None)
|
str
|
blockMesh(self,
region=None)
|
BasicFile
|
makeFile(self,
name)
create a file in the solution directory and return a corresponding
BasicFile-object
|
|
getRegions(self)
Gets a list of all the available mesh regions by checking all
directories in constant and using all those that have a
polyMesh-subdirectory
|
Inherited from Basics.Utilities.Utilities :
execute ,
listDirectory ,
writeDictionaryHeader
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|