TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
trustutils.jupyter.widget

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.

Inter

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

dump

dump(self)

Method to interact with the widgets.

Parameters:

None

Returns: None


f_addfield

f_addfield(self, addfield, fichier, field, name)

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


f_file

f_file(self, fichier, field, name)

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


f_iteration

f_iteration(self, iteration)

Function to manage the time frame or iteration.

Parameters:

Name Type Description
iteration str number of the time frame or iteration.

Returns: None


f_mesh

f_mesh(self, plotmesh, cm)

Function to manage the the mesh&&.

Parameters:

Name Type Description
plotmesh str plot the mesh.
cm str color of the mesh.

Returns: None


f_rotation

f_rotation(self, rotx, roty, rotz)

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


f_visitcommmand

f_visitcommmand(self, visitcomand)

Function to manage the the mesh&&.

Parameters:

Name Type Description
visitcomand str visitcomand.

Returns: None


Functions

interface

interface(fichier, field, name, rotx=..., roty=..., rotz=..., iteration=..., plotmesh=..., cm=..., addfield=..., fichier_add=..., field_add=..., name_add=..., visitcomand=...)

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


plotFunction

plotFunction(fichier, field, name, rotx, roty, rotz, iteration, plotmesh, cm, addfield, fichier_add, field_add, name_add, visitcomand)

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