OpenFoam Core¶
This stores the basic classes and functions needed to interact with OpenFoam
files.
Written By: Matthew Stadelman
Date Written: 2016/03/22
Last Modifed: 2016/08/08
-
class
apmapflow.openfoam.openfoam.
OpenFoamDict
(name, values=None)[source]¶ Class used to build the dictionary style OpenFoam input blocks
-
class
apmapflow.openfoam.openfoam.
OpenFoamFile
(*args, **kwargs)[source]¶ Class used to build OpenFoam input files
-
__init__
(*args, **kwargs)[source]¶ Creates and instance of the class passing the first three arguments to the FileFile header dict and the final argument can be used to initialize the OpenFoamFile object with entries.
- location : string, sets the subdirectory location of the file
- during output.
- object_name : string, sets initial value of self.name attribute used
- to name the output file and the ‘object’ key in the FoamFile dict
- class_name : string, optional, sets the ‘class’ key in the FoamFile
- dict, it defaults to ‘dictionary’
- values : iterable, optional, any valid iterable that can be used to
- initialize a regular Python dictionary
-
-
class
apmapflow.openfoam.openfoam.
OpenFoamList
(name, values=None)[source]¶ Class used to build the output lists used in blockMeshDict.
-
__init__
(name, values=None)[source]¶ - Creates an OpenFoamList:
name - string printed at top of dictionary in files values - any valid iterable that can be used to initialize
a list
-
__weakref__
¶ list of weak references to the object (if defined)
-