Example #1
0
def myplot(frame, fig):

    ax = fig.add_subplot(111)

    plot.cells(frame, ax)
    plot.solidarea(frame, ax)
    plot.shape(frame, ax)
    plot.velocity(frame, ax)
    plot.pressure_force(frame, ax)
    plot.walls(frame, ax)

    ax.axes.set_aspect('equal', adjustable='box')
    ax.set_xlim([0, frame.parameters['Size'][0]-1])
    ax.set_ylim([0, frame.parameters['Size'][1]-1])
    ax.axis('off')
Example #2
0
def myplot(frame, fig):

    ax1 = fig.add_subplot(121)
    ax2 = fig.add_subplot(122)

    plot.cells(frame, ax1)
    plot.shape(frame, ax1)

    plot.velocity_field(frame, avg=5, cbar=False, engine=ax2)

    for ax in [ax1, ax2]:
        ax.axes.set_aspect('equal', adjustable='box')
        ax.set_xlim([0, frame.parameters['Size'][0] - 1])
        ax.set_ylim([0, frame.parameters['Size'][1] - 1])
        ax.axis('off')
Example #3
0
def myplot(frame, fig):

    ax1 = fig.add_subplot(121)
    ax2 = fig.add_subplot(122)

    plot.cells(frame, ax1)
    plot.nematic(frame, ax1)

    plot.nematic_field(frame, engine=ax2, avg=2, show_def=True)

    for ax in [ax1, ax2]:
        ax.axes.set_aspect('equal', adjustable='box')
        ax.set_xlim([0, frame.parameters['Size'][0] - 1])
        ax.set_ylim([0, frame.parameters['Size'][1] - 1])
        ax.axis('off')
Example #4
0
def myplot(frame, fig):

    ax1 = fig.add_subplot(121)
    ax2 = fig.add_subplot(122)

    plot.cells(frame, ax1)
    plot.solidarea(frame, ax1)
    plot.shape(frame, ax1)
    plot.velocity(frame, ax1)
    plot.pressure_force(frame, ax1)

    plot.interfaces(frame, ax2)

    for ax in [ax1, ax2]:
        ax.axes.set_aspect('equal', adjustable='box')
        ax.set_xlim([0, frame.parameters['Size'][0] - 1])
        ax.set_ylim([0, frame.parameters['Size'][1] - 1])
        ax.axis('off')