File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import matplotlib .animation as manimation
1111from output import writeOutputToVTK
1212import precice
13- from precice import action_write_initial_data , action_write_iteration_checkpoint , action_read_iteration_checkpoint
13+ from precice import action_write_initial_data , action_write_iteration_checkpoint , \
14+ action_read_iteration_checkpoint
1415
1516# physical properties of the tube
1617r0 = 1 / np .sqrt (np .pi ) # radius of the tube
2728dx = L / kappa
2829# helper function to create constant cross section
2930
31+
3032def velocity_in (t ): return u0 + ampl * np .sin (frequency *
3133 (t + t_shift ) * np .pi ) # inflow velocity
3234
Original file line number Diff line number Diff line change 55import argparse
66import numpy as np
77import precice
8- from precice import action_write_initial_data , action_read_iteration_checkpoint , action_write_iteration_checkpoint
8+ from precice import action_write_initial_data , action_read_iteration_checkpoint , \
9+ action_write_iteration_checkpoint
910
1011
1112r0 = 1 / np .sqrt (np .pi ) # radius of the tube
1718E = 10000 # elasticity module
1819c_mk = np .sqrt (E / 2 / r0 ) # wave speed
1920
21+
2022def crossSection0 (N ):
2123 return a0 * np .ones (N + 1 )
2224
You can’t perform that action at this time.
0 commit comments