PyFluent常用代码 1
导入fluent模块:
import ansys.fluent.core as pyfluent
import ansys.fluent.core as pyfluent
启动Fluent时,可输入条件:
pyfluent.launch_fluent(dimension=None, precision=None, processor_count=None, journal_filename=None, mode=None, start_timeout=100, additional_arguments='', env=None, start_instance=None, ip=None, port=None, cleanup_on_exit=True, start_transcript=True, show_gui=None)
参数介绍:
- dimension:可选参数为
2
或3
,不设置则默认为3
precision
:可选参数为'single'或'double'
,不设置则默认为'double'
processor_count
:指定处理器数量,默认值为1
journal_filename
:指定journa