| 53 | } |
| 54 | |
| 55 | shared_ptr<FlowDevice> newFlowDevice( |
| 56 | const string& model, |
| 57 | shared_ptr<ReactorBase> r0, shared_ptr<ReactorBase> r1, const string& name) |
| 58 | { |
| 59 | auto dev = std::dynamic_pointer_cast<FlowDevice>( |
| 60 | newConnectorNode(model, r0, r1, name)); |
| 61 | if (!dev) { |
| 62 | throw CanteraError("newFlowDevice", |
| 63 | "Detected incompatible ConnectorNode type '{}'", model); |
| 64 | } |
| 65 | return dev; |
| 66 | } |
| 67 | |
| 68 | shared_ptr<FlowDevice> newFlowDevice(const string& model, const string& name) |
| 69 | { |