当前位置: 首页>>代码示例>>Python>>正文


Python PyFoamApplication.__init__方法代码示例

本文整理汇总了Python中PyFoamApplication.PyFoamApplication.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PyFoamApplication.__init__方法的具体用法?Python PyFoamApplication.__init__怎么用?Python PyFoamApplication.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PyFoamApplication.PyFoamApplication的用法示例。


在下文中一共展示了PyFoamApplication.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:LeeRuns,项目名称:PyFoam,代码行数:27,代码来源:PVSnapshot.py

示例2: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:11,代码来源:RunAtMultipleTimes.py

示例3: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:12,代码来源:ChangeBoundaryType.py

示例4: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:12,代码来源:Comparator.py

示例5: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:GoldenMan123,项目名称:openfoam-extend-foam-extend-3.1,代码行数:13,代码来源:InitMixingPlaneInterface.py

示例6: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:13,代码来源:Decomposer.py

示例7: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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,代码行数:13,代码来源:ConvertMixingPlaneBoundaryToNewSyntax.py

示例8: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:13,代码来源:CreateModuleFile.py

示例9: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:GoldenMan123,项目名称:openfoam-extend-foam-extend-3.1,代码行数:13,代码来源:ChangeGGIBoundary.py

示例10: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:13,代码来源:ChangeBoundaryName.py

示例11: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:14,代码来源:STLUtility.py

示例12: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:14,代码来源:Execute.py

示例13: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:houkensjtu,项目名称:interFOAM,代码行数:14,代码来源:CaseReporter.py

示例14: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:floli,项目名称:tools,代码行数:14,代码来源:CaseBuilder.py

示例15: __init__

# 需要导入模块: from PyFoamApplication import PyFoamApplication [as 别名]
# 或者: from PyFoamApplication.PyFoamApplication import __init__ [as 别名]
    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)
开发者ID:LeeRuns,项目名称:PyFoam,代码行数:15,代码来源:APoMaFoX.py


注:本文中的PyFoamApplication.PyFoamApplication.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。