Skip to content

Abnahme 2 - Zeiten #24

Description

@Joni32do

Ich habe mal folgendes Programm, was etwas plottet:

image

Ich mache das noch etwas schöner

import numpy as np
import matplotlib.pyplot as plt


p = np.array([1, 2, 4, 8, 12, 16])

# Lid-driven cavity with size

# 20x20
time_20 = np.array([1.732, 0.701, 0.784, 1.881, 5.665, 5.666])

# 40x40
time_40 = np.array([6.54, 4.839, 3.091, 3.24, 20.0, 52.67])
time_40 = np.array([5.95, 3.904, 2.826, 3.271, 20.276, 21.042])

# 40x40
# simple decomposition

# 80x80
time_80 = np.array([90, 53, 34.4, 31.2, 100, 101])


plt.plot(p, time_20)
plt.show()



plt.bar(p, time_80)
plt.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions