fluidsim.base.output.phys_fields3d

Physical fields output 3d (fluidsim.base.output.phys_fields3d)

Provides:

class fluidsim.base.output.phys_fields3d.MoviesBasePhysFields3D(output, phys_fields)[source]

Bases: fluidsim.base.output.phys_fields2d.MoviesBasePhysFields2D

class fluidsim.base.output.phys_fields3d.PhysFieldsBase3D(output)[source]

Bases: fluidsim.base.output.phys_fields2d.PhysFieldsBase2D

set_equation_crosssection(self, equation)[source]

Set the equation defining the cross-section.

Parameters
equationstr

The equation can be of the shape ‘iz=2’, ‘z=1’, …

plot(self, field=None, time=None, QUIVER=True, vector='v', equation=None, nb_contours=20, type_plot='contourf', vmin=None, vmax=None, cmap='viridis', numfig=None)[source]

Plot a field.

Parameters
field{str, np.ndarray}, optional
timenumber, optional
QUIVERTrue
vecx‘ux’
vecy‘uy’
nb_contours20
type_plot‘contourf’
vminNone
vmaxNone
cmap‘viridis’
numfigNone
_quiver_plot(self, ax, vecx='ux', vecy='uy', XX=None, YY=None)[source]

Superimposes a quiver plot of velocity vectors with a given axis object corresponding to a 2D contour plot.

Classes

MoviesBasePhysFields3D(output, phys_fields)

PhysFieldsBase3D(output)