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 ' ,
paraviewLink=True,
region=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
timeName(self,
item)
Finds the name of a directory that corresponds with the given
parameter |
source code
|
|
|
timeIndex(self,
item,
minTime=False)
Finds the index of a directory that corresponds with the given
parameter |
source code
|
|
|
isValid(self)
Checks whether this is a valid case directory by looking for the
system- and constant-directories and the controlDict-file |
source code
|
|
|
|
SolutionDirectory or correct subclass
|
|
|
packCase(self,
tarname,
last=False,
exclude=[ ] ,
additional=[ ] )
Packs all the important files into a compressed tarfile. |
source code
|
|
|
addToTar(self,
tar,
name,
exclude=[ ] )
The workhorse for the packCase-method |
source code
|
|
|
reread(self,
force=False)
Rescan the directory for the time directories |
source code
|
|
|
processorDirs(self)
List with the processor directories |
source code
|
|
|
nrProcs(self)
The number of directories with processor-data |
source code
|
|
|
sorttimes(self,
x,
y)
Sort function for the solution files |
source code
|
|
|
|
|
addBackup(self,
pth)
add file to list of files that are to be copied to the archive |
source code
|
|
str
|
|
|
|
|
clearResults(self,
after=None,
removeProcs=False,
keepLast=False,
vtk=True)
remove all time-directories after a certain time. |
source code
|
|
|
|
|
|
|
clear(self,
after=None,
processor=True,
pyfoam=True,
keepLast=False)
One-stop-shop to remove data |
source code
|
|
str
|
|
str
|
|
str
|
|
str
|
|
str
|
|
str
|
|
str
|
|
str
|
|
BasicFile
|
makeFile(self,
name)
create a file in the solution directory and return a corresponding
BasicFile-object |
source code
|
|
|
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 |
source code
|
|
Inherited from Basics.Utilities.Utilities :
execute ,
listDirectory ,
writeDictionaryHeader
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|