paraview_disp_warp_x3d.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:CAEML 作者: Renumics 项目源码 文件源码
def launchCmd(self, inputs, tmpStore, stdout_file):
        mesh = inputs['mesh']

        absPath = os.path.abspath(os.path.join('/data', mesh.path))

        env = Environment(
            loader=PackageLoader('pkg_codeaster.tools', 'templates')
        )

        templatePara = env.get_template('paraview_warp_by_displacement_template.py')

        with open('disp_warp_output_script.py', 'w') as file:
            file.write(templatePara.render(input_mesh=absPath))

        return {'script_file': 'disp_warp_output_script.py'
                }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号