hippylib.utils package¶
Submodules¶
hippylib.utils.checkDolfinVersion module¶
hippylib.utils.parameterList module¶
hippylib.utils.vector2function module¶
hippylib.utils.random module¶
-
class
hippylib.utils.random.Random(myid=0, nproc=1, blocksize=1000000, seed=1)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObjectThis class handles parallel generation of random numbers in hippylib.
Create a parallel random number number generator.
INPUTS:
myid: id of the calling process.nproc: number of processor in the communicator.blocksize: number of consecutive random number to be generated before jumping headed in the stream.seed: random seed to initialize the random engine.
-
hippylib.utils.random.parRandom¶ This class handles parallel generation of random numbers in hippylib.
hippylib.utils.nb module¶
-
hippylib.utils.nb.animate(Vh, state, same_colorbar=True, colorbar=True, subplot_loc=None, mytitle=None, show_axis='off', logscale=False)[source]¶ Show animation for a :code:TimeDependentVector
-
hippylib.utils.nb.multi1_plot(objs, titles, same_colorbar=True, show_axis='off', logscale=False, vmin=None, vmax=None, cmap=None)[source]¶ Plot a list of generic dolfin object in a single row
-
hippylib.utils.nb.plot(obj, colorbar=True, subplot_loc=None, mytitle=None, show_axis='off', vmin=None, vmax=None, logscale=False, cmap=None)[source]¶ Plot a generic dolfin object (if supported)
-
hippylib.utils.nb.plot_eigenvectors(Vh, U, mytitle, which=[0, 1, 2, 5, 10, 15], cmap=None)[source]¶ Plot specified vectors in a :code:MultiVector