本文整理汇总了Python中process.Process.initialise_process方法的典型用法代码示例。如果您正苦于以下问题:Python Process.initialise_process方法的具体用法?Python Process.initialise_process怎么用?Python Process.initialise_process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类process.Process
的用法示例。
在下文中一共展示了Process.initialise_process方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup_analysis
# 需要导入模块: from process import Process [as 别名]
# 或者: from process.Process import initialise_process [as 别名]
def setup_analysis(self, geom_file: str, mass_file: str, config_file: str,
*required_files: str):
"""
sets up AVL analysis
Inputs:
geom_file: geometry file path for AVL
mass_file: mass file path for AVL
config_file: configuration file path for AVL
required_files: additional file paths for files used in analysis
"""
# move files to run time directory
self.geom_file = self._move_to_runtime(geom_file)
self.mass_file = self._move_to_runtime(mass_file)
self.config_file = self._move_to_runtime(config_file)
for required_file in required_files:
self._move_to_runtime(required_file)
# begin avl executable
self.process = Process.initialise_process(self.executable, cwd = self.run_time_directory)
self.process.command('LOAD ' + self.geom_file)
self.process.command('CASE ' + self.config_file)
self.process.command('MASS ' + self.mass_file)
self.process.command('MSET 0')