|
def | __init__ (self, echo_level, dry_run) |
|
def | Connect (self, xml_input_file) |
| Establishes the necessary connection with the Emperor. More...
|
|
def | Disconnect (self) |
| Performs disconnection and finalization operations to the Emperor. More...
|
|
def | SendMesh (self, mesh_name, model_part) |
| Send the mesh to the server. More...
|
|
def | ReceiveMesh (self, mesh_name, model_part) |
| Recieve mesh from the server. More...
|
|
def | SendDataField (self, mesh_name, data_field_name, kratos_variables) |
| Send data field to the server. More...
|
|
def | ReceiveDataField (self, mesh_name, data_field_name, kratos_variables) |
| Receive data field from the server. More...
|
|
def | SendArray (self, array_name, array_to_send) |
| Send signal to the server. More...
|
|
def | ReceiveArray (self, array_name, array_size) |
| Receive signal from the server. More...
|
|
def | SendConvergenceSignal (self, signal) |
| Send the convergence signal of an loop. More...
|
|
def | ReceiveConvergenceSignal (self) |
| Receive the convergence signal of an loop. More...
|
|
◆ __init__()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.__init__ |
( |
|
self, |
|
|
|
echo_level, |
|
|
|
dry_run |
|
) |
| |
Constructor #####
◆ Connect()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.Connect |
( |
|
self, |
|
|
|
xml_input_file |
|
) |
| |
Establishes the necessary connection with the Emperor.
Public Functions #####
◆ Disconnect()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.Disconnect |
( |
|
self | ) |
|
Performs disconnection and finalization operations to the Emperor.
◆ ReceiveArray()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.ReceiveArray |
( |
|
self, |
|
|
|
array_name, |
|
|
|
array_size |
|
) |
| |
Receive signal from the server.
- Parameters
-
[in] | name | name of the signal |
[in] | sizeOfArray | size of the array (signal) |
[in] | signal | the signal |
void EMPIRE_API_recvSignal_double(char *name, int sizeOfArray, double *signal);
◆ ReceiveConvergenceSignal()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.ReceiveConvergenceSignal |
( |
|
self | ) |
|
◆ ReceiveDataField()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.ReceiveDataField |
( |
|
self, |
|
|
|
mesh_name, |
|
|
|
data_field_name, |
|
|
|
kratos_variables |
|
) |
| |
Receive data field from the server.
- Parameters
-
[in] | name | name of the field |
[in] | sizeOfArray | size of the array (data field) |
[out] | dataField | the data field to be received |
void EMPIRE_API_recvDataField(char *name, int sizeOfArray, double *dataField);
◆ ReceiveMesh()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.ReceiveMesh |
( |
|
self, |
|
|
|
mesh_name, |
|
|
|
model_part |
|
) |
| |
Recieve mesh from the server.
- Parameters
-
[in] | name | name of the mesh |
[in] | numNodes | number of nodes |
[in] | numElems | number of elements |
[in] | nodes | coordinates of all nodes |
[in] | nodeIDs | IDs of all nodes |
[in] | numNodesPerElem | number of nodes per element |
[in] | elems | connectivity table of all elements |
void EMPIRE_API_recvMesh(char *name, int *numNodes, int *numElems, double **nodes, int **nodeIDs, int **numNodesPerElem, int **elem);
◆ SendArray()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.SendArray |
( |
|
self, |
|
|
|
array_name, |
|
|
|
array_to_send |
|
) |
| |
Send signal to the server.
- Parameters
-
[in] | name | name of the signal |
[in] | sizeOfArray | size of the array (signal) |
[in] | signal | the signal |
void EMPIRE_API_sendSignal_double(char *name, int sizeOfArray, double *signal);
◆ SendConvergenceSignal()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.SendConvergenceSignal |
( |
|
self, |
|
|
|
signal |
|
) |
| |
Send the convergence signal of an loop.
- Parameters
-
[in] | signal | 1 means convergence, 0 means non-convergence void EMPIRE_API_sendConvergenceSignal(int signal); |
◆ SendDataField()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.SendDataField |
( |
|
self, |
|
|
|
mesh_name, |
|
|
|
data_field_name, |
|
|
|
kratos_variables |
|
) |
| |
Send data field to the server.
- Parameters
-
[in] | name | name of the field |
[in] | sizeOfArray | size of the array (data field) |
[in] | dataField | the data field to be sent |
void EMPIRE_API_sendDataField(char *name, int sizeOfArray, double *dataField);
◆ SendMesh()
def empire_wrapper.EmpireWrapper.__EmpireWrapper.SendMesh |
( |
|
self, |
|
|
|
mesh_name, |
|
|
|
model_part |
|
) |
| |
Send the mesh to the server.
- Parameters
-
[in] | name | name of the mesh |
[in] | numNodes | number of nodes |
[in] | numElems | number of elements |
[in] | nodes | coordinates of all nodes |
[in] | nodeIDs | IDs of all nodes |
[in] | numNodesPerElem | number of nodes per element |
[in] | elems | connectivity table of all elements |
void EMPIRE_API_sendMesh(char *name, int numNodes, int numElems, double *nodes, int *nodeIDs, int *numNodesPerElem, int *elems);
◆ dry_run
empire_wrapper.EmpireWrapper.__EmpireWrapper.dry_run |
◆ echo_level
empire_wrapper.EmpireWrapper.__EmpireWrapper.echo_level |
◆ libempire_api
empire_wrapper.EmpireWrapper.__EmpireWrapper.libempire_api |
◆ model_parts
empire_wrapper.EmpireWrapper.__EmpireWrapper.model_parts |
The documentation for this class was generated from the following file:
- /home/runner/work/Documentation/Documentation/master/applications/CoSimulationApplication/python_scripts/empire_wrapper.py