| ... | ... | @@ -49,9 +49,9 @@ Unsteady flexible motions (mode shapes) can be added using |
|
|
|
x_modes, amp_modes = sdpm.utils.interpolate_modes(modes_path, wing.getNodes())
|
|
|
|
for i in range(n_modes):
|
|
|
|
wing.addMotion()
|
|
|
|
wing.setFlexibleMotion(i, 1 / amp_modes[i], x_modes[:, 3*i:3*i+3])
|
|
|
|
wing.setFlexibleMotion(i, 1 / amp_modes[i], x_modes[:, 6*i:6*i+6])
|
|
|
|
```
|
|
|
|
where `modes_path` is the path to the file containing the mode shapes. Each row of this file must contain the x, y and z coordinates of each point on the body surface, as well as the components corresponding to the displacement along z and to the rotations around x and y. The data must then be organized as: x, y, z, dz0, rx0, ry0, dz1, rx1, ry1, etc. The utility `interpolate_modes` uses SciPy RBF implementation to interpolate the modes on the aerodynamic grid.
|
|
|
|
where `modes_path` is the path to the file containing the mode shapes. Each row of this file must contain the x, y and z coordinates of each point on the body surface, as well as the components corresponding to the displacement along z and to the rotations around x and y. The data must then be organized as: x, y, z, dx0, dy0, dz0, rx0, ry0, rz0, dx1, dy1, dz1, rx1, ry1, rz1, etc. The utility `interpolate_modes` uses SciPy RBF implementation to interpolate the modes on the aerodynamic grid.
|
|
|
|
A transonic correction can be added using
|
|
|
|
```python
|
|
|
|
dcp = sdpm.utils.interpolate_pressure(pres_path, wing.getNodes())
|
| ... | ... | |
| ... | ... | |