InputsRun
#
- class ansys.dpf.core.operators.result.run.InputsRun(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._Inputs
Intermediate class used to connect user inputs to run operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.run() >>> my_mapdl_exe_path = str() >>> op.inputs.mapdl_exe_path.connect(my_mapdl_exe_path) >>> my_working_dir = str() >>> op.inputs.working_dir.connect(my_working_dir) >>> my_number_of_processes = int() >>> op.inputs.number_of_processes.connect(my_number_of_processes) >>> my_data_sources = dpf.DataSources() >>> op.inputs.data_sources.connect(my_data_sources) >>> my_server_mode = bool() >>> op.inputs.server_mode.connect(my_server_mode)
Overview#
Allows to connect mapdl_exe_path input to the operator. |
|
Allows to connect working_dir input to the operator. |
|
Allows to connect number_of_processes input to the operator. |
|
Allows to connect data_sources input to the operator. |
|
Allows to connect server_mode input to the operator. |
Import detail#
from ansys.dpf.core.operators.result.run import InputsRun
Property detail#
- property InputsRun.mapdl_exe_path#
Allows to connect mapdl_exe_path input to the operator.
- Parameters:
my_mapdl_exe_path (str)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.run() >>> op.inputs.mapdl_exe_path.connect(my_mapdl_exe_path) >>> # or >>> op.inputs.mapdl_exe_path(my_mapdl_exe_path)
- property InputsRun.working_dir#
Allows to connect working_dir input to the operator.
- Parameters:
my_working_dir (str)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.run() >>> op.inputs.working_dir.connect(my_working_dir) >>> # or >>> op.inputs.working_dir(my_working_dir)
- property InputsRun.number_of_processes#
Allows to connect number_of_processes input to the operator.
Set the number of mpi processes used for resolution (default is 2)
- Parameters:
my_number_of_processes (int)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.run() >>> op.inputs.number_of_processes.connect(my_number_of_processes) >>> # or >>> op.inputs.number_of_processes(my_number_of_processes)
- property InputsRun.data_sources#
Allows to connect data_sources input to the operator.
Data sources containing the input file.
- Parameters:
my_data_sources (DataSources)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.run() >>> op.inputs.data_sources.connect(my_data_sources) >>> # or >>> op.inputs.data_sources(my_data_sources)
- property InputsRun.server_mode#
Allows to connect server_mode input to the operator.
Used when a user includes commands in the input file allowing to launch dpf server inside mapdl to interact with mapdl using dpf client api
- Parameters:
my_server_mode (bool)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.run() >>> op.inputs.server_mode.connect(my_server_mode) >>> # or >>> op.inputs.server_mode(my_server_mode)