MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / clone

Method clone

src/model/SubSurface.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 3

addShadingControlMethod · 0.80
cloneFunction · 0.50
setSurfaceMethod · 0.45

Tested by

no test coverage detected