MCPcopy Create free account
hub / github.com/Cantera/cantera / newFlowDevice

Function newFlowDevice

src/zeroD/ConnectorFactory.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55shared_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
68shared_ptr<FlowDevice> newFlowDevice(const string& model, const string& name)
69{

Callers 1

TESTFunction · 0.85

Calls 3

newConnectorNodeFunction · 0.85
CanteraErrorClass · 0.85
warn_deprecatedFunction · 0.50

Tested by 1

TESTFunction · 0.68