安装code-aster并使其易于通过python和shell/cmd进行访问
code-aster-win的Python项目详细描述
Code-unaster-Python包
这个软件包使仿真软件代码易于在python中安装和使用,并注册命令,以便在CMD/终端中使用它。有一个用于Windows和Linux的版本(正在构建中)。在
What is Code_Aster ?
Code_Aster offers a full range of multiphysical analysis and modelling methods that go well beyond the standard functions of a thermomechanical calculation code: from seismic analysis to porous media via acoustics, fatigue, stochastic dynamics, etc. Its modelling, algorithms and solvers are constantly under construction to improve and complete them (1,200,000 lines of code, 200 operators). Resolutely open, it is linked, coupled and encapsulated in numerous ways
安装
pip install code-aster-win
就这些!在
Test your installation
importcode_asterasca# Returns a log with all the informationlogs=ca.test_installation()# For example you can extract the output the command generatedprint(logs.stdout)It will start a test simulation and if it runs without error the installation is ok.
如何使用它
使用as_run命令
^{pr2}$使用run_astk命令
importcode_asterascafrompathlibimportPath# Returns a log with all the informationlogs=ca.run_astk()# For example you can extract the output the command generatedprint(logs.stdout)
直接在终端/CMD中使用
py_as_run
或者
py_run_astk
或者
py_test_installation
- 项目
标签: