本文整理汇总了Python中PyFoamApplication.PyFoamApplication类的典型用法代码示例。如果您正苦于以下问题:Python PyFoamApplication类的具体用法?Python PyFoamApplication怎么用?Python PyFoamApplication使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PyFoamApplication类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self,
args=None,
**kwargs):
description="""\
Generates snapshots of an OpenFOAM-case and a predefined
paraview-State-File using the PV3FoamReader that comes with OpenFOAM.
The state-file can be generated using a different case (the script
adjusts it before using) but the original case has to have a similar
structure to the current one. Also exactly one PV3Reader has to be
used in the state-file (this requirement is fullfilled if the
StateFile was generated using paraFoam)
In TextSources the string "%(casename)s" gets replaced by the
casename. Additional replacements can be specified
"""
CommonSelectTimesteps.__init__(self)
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog [options] <case>",
interspersed=True,
nr=1,
**kwargs)
示例2: __init__
def __init__(self,args=None):
description="""\
Runs a OpenFoam Utility that only supports being run for one or all
times to be run at multiple selected times
"""
PyFoamApplication.__init__(self,
exactNr=False,
args=args,
description=description)
示例3: __init__
def __init__(self,args=None):
description="""\
Changes the type of a boundary in the boundary-file
"""
PyFoamApplication.__init__(self,args=args,
description=description,
usage="%prog <caseDirectory> <boundaryName> <new type>",
changeVersion=False,
nr=3,
interspersed=True)
示例4: __init__
def __init__(self,args=None):
description="""\
Reads an XML-file that specifies a base case and a parameter-variation
and executes all the variations of that case
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog [options] <xmlfile>",nr=1,interspersed=True)
示例5: __init__
def __init__(self,args=None):
description="""
Init MixingPlane boundary condition parameters
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog <caseDirectory> mixingPlane_MasterPatchName mixingPlane_ShadowPatchName",
interspersed=True,
changeVersion=False,
nr=3)
示例6: __init__
def __init__(self,args=None):
description="""\
Generates a decomposeParDict for a case and runs the decompose-Utility
on that case
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog [options] <case> <procnr>",
interspersed=True,
nr=2)
示例7: __init__
def __init__(self,args=None):
description="""
Change MixingPlane boundary condition parameters
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog <caseDirectory>",
interspersed=True,
changeVersion=False,
nr=1)
开发者ID:GoldenMan123,项目名称:openfoam-extend-foam-extend-3.1,代码行数:11,代码来源:ConvertMixingPlaneBoundaryToNewSyntax.py
示例8: __init__
def __init__(self,args=None):
description="""
Create a Modules modulefile for OpenFOAM. Input parameter 'OpenFOAM configuration file': bashrc or cshrc file for OpenFOAM; usually $WM_PROJECT_DIR/etc/bashrc or $WM_PROJECT_DIR/etc/cshrc. Output parameter 'modulefile': the resulting module file. For more information on Modules, visit the Environment Modules Project: http://http://modules.sourceforge.net
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog OpenFOAM_cfgFile modulefile",
interspersed=True,
changeVersion=False,
nr=2)
示例9: __init__
def __init__(self,args=None):
description="""\
Change GGI boundary condition parameters
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog <caseDirectory> ggiPatchName",
interspersed=True,
changeVersion=False,
nr=2)
示例10: __init__
def __init__(self,args=None):
description="""\
Changes the name of a boundary in the boundary-file. Also if a
time-step is specified
"""
PyFoamApplication.__init__(self,args=args,
description=description,
usage="%prog <caseDirectory> <boundaryName> <new name>",
changeVersion=False,
nr=3,
interspersed=True)
示例11: __init__
def __init__(self,args=None):
description="""\
This utility does some basic manipulations with STL-files
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog <source1.stl> <source2.stl> ...",
interspersed=True,
changeVersion=False,
nr=1,
exactNr=False)
示例12: __init__
def __init__(self,args=None):
description="""\
Runs a command, but first switches the environment to a specific
OpenFOAM-version. Is of use for using wmake for a specific version
"""
PyFoamApplication.__init__(self,
nr=1,
exactNr=False,
args=args,
usage="%prog [options] <command> [arguments]",
description=description)
示例13: __init__
def __init__(self,args=None):
description="""\
Reads data from the sample-dictionary and generates appropriate
gnuplot-commands
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog [options] <casedir>",
nr=1,
interspersed=True)
示例14: __init__
def __init__(self,args=None):
description="""\
Gets a XML-file that describes how to build a case from a case
template and some parameters
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog <DescriptionFile>",
interspersed=True,
nr=0,
exactNr=False)
示例15: __init__
def __init__(self,args=None):
description="""\
APoMaFoX is "A Poor Mans FoamX".
A small text interface to the CaseBuilder-Functionality
"""
PyFoamApplication.__init__(self,
args=args,
description=description,
usage="%prog <caseBuilderFile>",
interspersed=True,
nr=0,
exactNr=False)