DriverComponent#

class DriverComponent(element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine)#

Bases: ansys.modelcenter.workflow.grpc_modelcenter.component.Component, ansys.modelcenter.workflow.grpc_modelcenter.abstract_control_statement.AbstractControlStatement, ansys.modelcenter.workflow.api.IDriverComponent

Defines a driver component in the workflow.

In process-mode workflows, driver components can contain children. In data-mode workflows, driver components should still be instantiated with an instance of this class, but the method to get child elements simply returns an empty collection.

Note

This class should not be directly instantiated by clients. Get a Workflow object from an instantiated Engine instance and use it to get valid Assembly, Component, or DriverComponent instances.

Import detail#

from ansys.modelcenter.workflow.grpc_modelcenter.driver_component import DriverComponent