Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"cells": [
{
"cell_type": "markdown",
"source": [
"Well use a GenericCascadeCase and we will load the example dataset, generated with OpenFOAM.\n",
"We don't necessarily need a complete dataset for postprocessing procedures."
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%% md\n"
}
}
},
{
"cell_type": "code",
"execution_count": 1,
"outputs": [],
"source": [
"from ntrfc.cascade_case.solution.generic import GenericCascadeCase\n",
"\n",
"inlet_path = \"../data/openfoam_cascade_case/boundary/inlet.vtp\"\n",
"outlet_path = \"../data/openfoam_cascade_case/boundary/outlet.vtp\"\n",
"blade_path = \"../data/openfoam_cascade_case/boundary/blade_wall.vtp\"\n",
"fluid_path = \"../data/openfoam_cascade_case/internal.vtu\"\n",
"\n",
"case = GenericCascadeCase()\n",
"\n",
"case.read_inlet(inlet_path)\n",
"case.read_outlet(outlet_path)\n",
"case.read_fluid(fluid_path)\n"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [
{
"data": {
"text/plain": "ViewInteractiveWidget(height=768, layout=Layout(height='auto', width='100%'), width=1024)",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "0007cf90b2614369bcb98213b3020048"
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}