| 75 | } |
| 76 | |
| 77 | std::vector<MatrixFr> PhantomMeshGenerator::get_shape_velocities() const { |
| 78 | if (m_with_shape_velocities) { |
| 79 | return m_shape_velocities; |
| 80 | } else { |
| 81 | std::stringstream err_msg; |
| 82 | err_msg << "Shape velocity support is turned off. " |
| 83 | << "Please call with_shape_velocity() method to turn it on."; |
| 84 | throw RuntimeError(err_msg.str()); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | void PhantomMeshGenerator::initialize_wire_network() { |
| 89 | m_wire_network->center_at_origin(); |