| 137 | } |
| 138 | |
| 139 | ModelObject SubSurface_Impl::clone(Model model) const { |
| 140 | auto clone = ParentObject_Impl::clone(model).cast<SubSurface>(); |
| 141 | |
| 142 | auto coefficients = surfacePropertyConvectionCoefficients(); |
| 143 | if (coefficients) { |
| 144 | auto coefficientsClone = coefficients->clone(model).cast<SurfacePropertyConvectionCoefficients>(); |
| 145 | coefficientsClone.setSurface(clone); |
| 146 | } |
| 147 | |
| 148 | auto controls = shadingControls(); |
| 149 | for (const auto& sc : controls) { |
| 150 | auto shadingConrolClone = sc.clone(model).cast<ShadingControl>(); |
| 151 | clone.addShadingControl(shadingConrolClone); |
| 152 | } |
| 153 | |
| 154 | return std::move(clone); |
| 155 | } |
| 156 | |
| 157 | const std::vector<std::string>& SubSurface_Impl::outputVariableNames() const { |
| 158 | static const std::vector<std::string> result{"Surface Inside Face Temperature", |
nothing calls this directly
no test coverage detected