Skip to content

Commit ec8203e

Browse files
authored
Kratos mdpa tutorial for new version (#213)
* Kratos mdpa tutorial with new version * Kratos mdpa tutorial as script * Dyna k tutorial as script
1 parent d562056 commit ec8203e

File tree

3 files changed

+183
-170
lines changed

3 files changed

+183
-170
lines changed

tutorials/tutorial-6-k.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import pygem as pg
2+
from pygem.khandler import KHandler
3+
4+
ffd = pg.FFD()
5+
ffd.read_parameters('../tests/test_datasets/parameters_test_ffd_pipe_unv_C0.prm')
6+
7+
handler = KHandler()
8+
mesh_points = handler.parse('../tests/test_datasets/test_pipe.k')
9+
10+
new_mesh_points = ffd(mesh_points)
11+
12+
ffd = pg.FFD()
13+
ffd.read_parameters('../tests/test_datasets/parameters_test_ffd_pipe_unv_C1.prm')
14+
15+
new_mesh_points = ffd(mesh_points)
16+
17+
handler.write(new_mesh_points, 'test_pipe_mod_C1.k')

0 commit comments

Comments
 (0)