Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New welcome message #1

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
992959d
New welcome message
OlafKolditz May 2, 2019
54eead7
Add files via upload
OlafKolditz Apr 15, 2021
e11fb58
first change for commit
OlafKolditz Apr 15, 2021
730e731
Add files via upload
OlafKolditz Apr 25, 2021
a34a714
Add files via upload
OlafKolditz May 7, 2021
16f1833
Add files via upload
OlafKolditz May 7, 2021
67072e0
Add files via upload
OlafKolditz May 7, 2021
ccf1842
Add my new files
OlafKolditz May 14, 2021
3d97231
Add new files from lecture on 21.05.2021
OlafKolditz May 21, 2021
3c9a03a
Add files via upload
OlafKolditz Jun 11, 2021
486d996
Add files via upload
OlafKolditz Jun 11, 2021
d005cac
Add files via upload
OlafKolditz Jun 17, 2021
abcd3d9
EX09 fdm implicit exercise
OlafKolditz Jun 17, 2021
b04ca11
Merge branch 'master' of https://github.com/OlafKolditz/Hydroinformat…
OlafKolditz Jun 17, 2021
5f9c040
Add files via upload
OlafKolditz Jun 24, 2021
8f13e53
Add files via upload
OlafKolditz Jun 24, 2021
e93404d
Merge branch 'master' of https://github.com/OlafKolditz/Hydroinformat…
OlafKolditz Jun 25, 2021
5944a76
Add files via upload
OlafKolditz Jul 1, 2021
8999d94
Merge branch 'master' of https://github.com/OlafKolditz/Hydroinformat…
OlafKolditz Jul 2, 2021
674712a
full newton scheme
OlafKolditz Jul 8, 2021
f89ac67
Add files via upload
OlafKolditz Jul 15, 2021
33d923b
update jupyter notebook for channel flow
OlafKolditz Jul 15, 2021
66cb284
update EX11
OlafKolditz Jul 15, 2021
20e607c
Add files via upload
OlafKolditz May 5, 2022
d5dd86b
Add files via upload
OlafKolditz May 5, 2022
3a7d7b2
including 2021 exercises
OlafKolditz May 14, 2022
661a824
jupyter notebooks exercises
OlafKolditz May 25, 2022
374f607
jupypter notebook template
OlafKolditz May 27, 2022
78951e4
Aktualisierung der FDM Übungen
OlafKolditz Jun 3, 2022
fad6bac
rework of implicit FDM exercises
OlafKolditz Jun 23, 2022
89371f6
changes during todays lecture 24.06.2022
OlafKolditz Jun 24, 2022
d519bb9
update channel python
OlafKolditz Jul 7, 2022
94544a3
update excercise
OlafKolditz Jul 14, 2022
cab7713
updating channel flow jupyter
OlafKolditz Jul 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 132 additions & 0 deletions .ipynb_checkpoints/EX01-jupyter-notebook-checkpoint.ipynb

Large diffs are not rendered by default.

123 changes: 123 additions & 0 deletions .ipynb_checkpoints/EX02-jupyter-notebook-checkpoint.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions .ipynb_checkpoints/EX07-jupyter-notebook-template-checkpoint.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion BHYWI-08-01-E/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("<h1><i>Hello<!i>""<font color=red>Qt!</font></h1>");
// QLabel *label = new QLabel("<h1><i>Hello<!i>""<font color=red>Qt!</font></h1>");
QLabel *label = new QLabel("<h1>Hallo Hydroinformatik II 2019. Wir nutzen GitHub für die Übungen</h1>");
label->show();
return app.exec();
}
Expand Down
Binary file not shown.
Binary file added BHYWI-08-02-E-Script/._data_from_file.py
Binary file not shown.
Binary file added BHYWI-08-02-E-Script/._main.cpp
Binary file not shown.
Binary file added BHYWI-08-02-E-Script/._out.csv
Binary file not shown.
Binary file added BHYWI-08-02-E-Script/._run.bat
Binary file not shown.
Binary file added BHYWI-08-02-E-Script/._run.sh
Binary file not shown.
Binary file added BHYWI-08-02-E-Script/._test1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions BHYWI-08-02-E-Script/BHYWI-08-02-E-Python.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
######################################################################
# Automatically generated by qmake (3.1) Thu May 16 22:39:55 2019
######################################################################

TEMPLATE = app
TARGET = BHYWI-08-02-E-Python
INCLUDEPATH += .

# The following define makes your compiler warn you if you use any
# feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

# Input
SOURCES += main.cpp
19 changes: 19 additions & 0 deletions BHYWI-08-02-E-Script/data_from_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import matplotlib.pyplot as plt
import csv

x = []
y = []

with open('out.csv','r') as csvfile:
plots = csv.reader(csvfile, delimiter=',')
for row in plots:
x.append(float(row[0]))
y.append(float(row[1]))

plt.plot(x,y, label='Data loaded from file: out.cvs')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Hydroinformatics II\nExercise BHYWI-08-02-for-python')
plt.legend()
plt.savefig("test1.png")
plt.show()
Binary file added BHYWI-08-02-E-Script/diffusion-equation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions BHYWI-08-02-E-Script/diffusion-equation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import math
import matplotlib.pylab as plt
PI = 3.14159265358979323846
numPoints = 100
alpha = 1.0
t = [0.1,0.5,1.0,2.0]
x = []
y = []
for n in t:
for i in range(0,numPoints+1):
x.append(float(i)/float(numPoints))
y.append(math.sin(PI*x[i]) * math.exp(-alpha*n*n))
plt.plot(x,y,color='red',marker="o")
x = []
y = []
plt.xlabel('x')
plt.ylabel('u')
plt.axis('tight')
plt.savefig("diffusion-equation.png")
plt.show()
29 changes: 29 additions & 0 deletions BHYWI-08-02-E-Script/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include <cmath>
#include <fstream>
#define PI 3.14159265358979323846

int main(int argc, char *argv[])
{
//1-Definitionen
int numPoints = 1000;
double x,y,alpha=1.,t=0.01;
std::ofstream out_file;
out_file.open("out.csv");
//2-Berechnung
//y = sin(pi*x) * exp(-alpha*t^2)
for (int i = 0; i < numPoints+1; ++i)
{
x = double(i)/double(numPoints);
//y=sin(PI*x) * exp(-alpha*t*t);
//y=sin(sqrt(PI*alpha)*x) * exp(-PI*t);
//y=sin(PI/sqrt(alpha)*x) * exp(-PI*PI*t);
y=sin(PI*x) * exp(-alpha*PI*PI*t);
out_file << x << "," << y << std::endl;
}
//3-Ausgabe
}
//HW1 L�sung: y=sin(sqrt(pi*alpha)*x) * exp(-pi*t) plotten
//HW2 L�sung: y=sin(pi/sqrt(alpha)*x) * exp(-pi*pi*t) plotten
//HW3 L�sung: y=sin(pi*x) * exp(-alpha*pi*pi*t) plotten
//HW4 L�sungen vergleichen
//HW5 Verschiedene Zeiten (aus Eingabedatei) lesen und rechnen
Loading