|
TRUST 1.9.8
HPC thermohydraulic platform
|
Victor Banon Garcia CEA Saclay - DM2S/STMF/LGLS Mars 2021 - Stage 6 mois
We provide here a python package that can be used to create interactive plots in jupyterlab.
Class Show, which allow to use visit command in a python enviroment
Constructor: Inter(self, fichier, field, name, rotx=..., roty=..., rotz=..., iteration=..., plotmesh=..., casnum=..., cm=..., addfield=..., fichier_add=..., field_add=..., name_add=..., visitcomand=...)
Initialise the class
Parameters:
| Name | Type | Description |
|---|---|---|
| fichier | str | The .lata file we want to plot its mesh with visit. |
| field | str | The field we want to plot. |
| fichier | str | The fichier of the field. |
| rotx | int | Rotation along the x axis. |
| roty | int | Rotation along the y axis. |
| rotz | int | Rotation along the z axis. |
| iteration | str | number of the time frame or iteration (default=-1). |
| plotmesh | str | plot the mesh. |
| cm | str | color of the mesh. |
| addfield | str | if true plot of the addfield. |
| fichier_add | str | The .lata file we want to plot its mesh with visit of the addfield. |
| field_add | str | The field we want to plot of the addfield. |
| fichier_add | str | The fichier of the field of the addfield. |
| visitcomand | str | visitcomand. |
Returns: None
Method to interact with the widgets.
Parameters:
None
Returns: None
Function to change the file.
Parameters:
| Name | Type | Description |
|---|---|---|
| addfield | str | if true plot of the addfield. |
| fichier_add | str | The .lata file we want to plot its mesh with visit of the addfield. |
| field_add | str | The field we want to plot of the addfield. |
| fichier_add | str | The fichier of the field of the addfield. |
Returns: None
Function to change the file.
Parameters:
| Name | Type | Description |
|---|---|---|
| fichier | str | The .lata file we want to plot its mesh with visit. |
| field | str | The field we want to plot. |
| fichier | str | The fichier of the field. |
Returns: None
Function to manage the time frame or iteration.
Parameters:
| Name | Type | Description |
|---|---|---|
| iteration | str | number of the time frame or iteration. |
Returns: None
Function to manage the the mesh&&.
Parameters:
| Name | Type | Description |
|---|---|---|
| plotmesh | str | plot the mesh. |
| cm | str | color of the mesh. |
Returns: None
Function to manage the rotation.
Parameters:
| Name | Type | Description |
|---|---|---|
| rotx | int | Rotation along the x axis. |
| roty | int | Rotation along the y axis. |
| rotz | int | Rotation along the z axis. |
Returns: None
Function to manage the the mesh&&.
Parameters:
| Name | Type | Description |
|---|---|---|
| visitcomand | str | visitcomand. |
Returns: None
Create a unpolish interface for interactive ploting.
Parameters:
| Name | Type | Description |
|---|---|---|
| fichier | str | The .lata file we want to plot its mesh with visit. |
| field | str | The field we want to plot. |
| fichier | str | The fichier of the field. |
| rotx | int | Rotation along the x axis. |
| roty | int | Rotation along the y axis. |
| rotz | int | Rotation along the z axis. |
| iteration | str | number of the time frame or iteration (default=-1). |
| plotmesh | str | plot the mesh. |
| cm | str | color of the mesh. |
| addfield | str | if true plot of the addfield. |
| fichier_add | str | The .lata file we want to plot its mesh with visit of the addfield. |
| field_add | str | The field we want to plot of the addfield. |
| fichier_add | str | The fichier of the field of the addfield. |
| visitcomand | str | visitcomand. |
Returns: None
Function used to plot like VisIt.
Parameters:
| Name | Type | Description |
|---|---|---|
| fichier | str | The .lata file we want to plot its mesh with visit. |
| field | str | The field we want to plot. |
| fichier | str | The fichier of the field. |
| rotx | int | Rotation along the x axis. |
| roty | int | Rotation along the y axis. |
| rotz | int | Rotation along the z axis. |
| iteration | str | number of the time frame or iteration (default=-1). |
| plotmesh | str | plot the mesh. |
| cm | str | color of the mesh. |
| addfield | str | if true plot of the addfield. |
| fichier_add | str | The .lata file we want to plot its mesh with visit of the addfield. |
| field_add | str | The field we want to plot of the addfield. |
| fichier_add | str | The fichier of the field of the addfield. |
| visitcomand | str | visitcomand. |
Returns: None