Home | Trees | Index | Help |
---|
Package PyFoam :: Package RunDictionary :: Module SolutionFile :: Class SolutionFile |
|
Utilities
--+ |FileBasis
--+ | SolutionFile
ListFile
Solution data file
Represents a file with the solution data for one OpenFOAM-field at one point of time
Currently this can only handle uniform field valuesMethod Summary | |
---|---|
| |
pattern for the dimension string | |
builds a dimension string from the dimension information in the file | |
pattern for internal fields | |
pattern for internal fields | |
creates a temporary file (if the original is zipped, this is zipped too | |
opens the file (if zipped, the file is written zipped) | |
read the value at a boundary | |
read the dimension of the field | |
read the value of the internal field | |
read the value of the internal field | |
write the value at a boundary | |
overwrite the value of the internal field | |
pattern that ends a boundary | |
pattern for values | |
Inherited from FileBasis | |
closes the file | |
Copy the rest of the file | |
Read lines until a regular expression is matched | |
Read lines until a token is found | |
Build a string from self.content, to be overriden by sub-classes | |
Parse a string that is to be the content, to be overriden by the sub-classes | |
Undo all the manipulations done by PyFOAM | |
read the whole File into memory | |
write the whole File from memory | |
Inherited from Utilities | |
Execute the command cmd | |
Lists the files in a directory, but excludes certain names and files with certain endings | |
Writes a dummy header so OpenFOAM accepts the file as a dictionary |
Class Variable Summary | |
---|---|
Inherited from FileBasis | |
str |
addedString = '//PyFoamAdded'
|
str |
removedString = '//PyFoamRemoved: '
|
Inherited from Utilities | |
list |
excludeNames = ['^.svn$', '~$']
|
Method Details |
---|
__init__(self,
directory,
name)
|
dimensionPattern(self)pattern for the dimension string |
getDimensionString(self)builds a dimension string from the dimension information in the file |
internalPattern(self)pattern for internal fields |
internalPatternUniform(self)pattern for internal fields |
makeTemp(self)creates a temporary file (if the original is zipped, this is zipped too |
openFile(self)opens the file (if zipped, the file is written zipped) |
readBoundary(self, name)read the value at a boundary name - the name of the boundary patch |
readDimension(self)read the dimension of the field |
readInternal(self)read the value of the internal field |
readInternalUniform(self)read the value of the internal field |
replaceBoundary(self, name, newval)write the value at a boundary
|
replaceInternal(self, newval)overwrite the value of the internal field newval - the new value |
stopPattern(self)pattern that ends a boundary |
valuePattern(self)pattern for values |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 | http://epydoc.sf.net |