@@ -616,18 +616,8 @@ PYBIND11_MODULE(wincalcbindings, m) {
616
616
&OpticsParser::ProductData::youngsModulus)
617
617
.def_readwrite (" pv_power_properties" ,
618
618
&OpticsParser::ProductData::pvPowerProperties)
619
- .def_readwrite (" composition" , &OpticsParser::ProductData::composition);
620
-
621
- py::class_<OpticsParser::CompositionInformation,
622
- std::shared_ptr<OpticsParser::CompositionInformation>>(
623
- m, " ProductComposistionData" )
624
- .def (py::init<std::shared_ptr<OpticsParser::ProductData>,
625
- std::shared_ptr<OpticsParser::ProductGeometry>>(),
626
- py::arg (" solid_layers" ), py::arg (" product_geometry" ))
627
- .def_readwrite (" material" ,
628
- &OpticsParser::CompositionInformation::material)
629
- .def_readwrite (" geometry" ,
630
- &OpticsParser::CompositionInformation::geometry);
619
+ .def_readwrite (" material_definition" , &OpticsParser::ProductData::materialDefinition)
620
+ .def_readwrite (" geometry" , &OpticsParser::ProductData::geometry);
631
621
632
622
py::enum_<window_standards::Spectrum_Type>(m, " SpectrumType" ,
633
623
py::arithmetic ())
@@ -1836,26 +1826,26 @@ PYBIND11_MODULE(wincalcbindings, m) {
1836
1826
py::arg (" back_emissivity" ) = 0.84 ,
1837
1827
py::arg (" back_transmittance" ) = 0.0 );
1838
1828
1839
- layers.def (" gap" , py::overload_cast<double >(&Tarcog::ISO15099::Layers::gap),
1829
+ layers.def (" gap" , py::overload_cast<double , bool >(&Tarcog::ISO15099::Layers::gap),
1840
1830
" Factory function to create a Tarcog gap with basic parameters" ,
1841
- py::arg (" thickness" ));
1831
+ py::arg (" thickness" ), py::arg ( " is_dcenter " ) = false );
1842
1832
1843
- layers.def (" gap" , py::overload_cast<double , double >(&Tarcog::ISO15099::Layers::gap),
1833
+ layers.def (" gap" , py::overload_cast<double , double , bool >(&Tarcog::ISO15099::Layers::gap),
1844
1834
" Factory function to create a Tarcog gap with thickness and pressure" ,
1845
- py::arg (" thickness" ), py::arg (" pressure" ) = 101325 );
1835
+ py::arg (" thickness" ), py::arg (" pressure" ) = 101325 , py::arg ( " is_dcenter " ) = false );
1846
1836
1847
- layers.def (" gap" , py::overload_cast<double , const Gases::CGas &>(&Tarcog::ISO15099::Layers::gap),
1837
+ layers.def (" gap" , py::overload_cast<double , const Gases::CGas &, bool >(&Tarcog::ISO15099::Layers::gap),
1848
1838
" Factory function to create a Tarcog gap with thickness and gas" ,
1849
- py::arg (" thickness" ), py::arg (" gas" ));
1839
+ py::arg (" thickness" ), py::arg (" gas" ), py::arg ( " is_dcenter " ) = false );
1850
1840
1851
- layers.def (" gap" , py::overload_cast<double , double , const Gases::CGas &>(&Tarcog::ISO15099::Layers::gap),
1841
+ layers.def (" gap" , py::overload_cast<double , double , const Gases::CGas &, bool >(&Tarcog::ISO15099::Layers::gap),
1852
1842
" Factory function to create a Tarcog gap with thickness, pressure and gas" ,
1853
- py::arg (" thickness" ), py::arg (" pressure" ), py::arg (" gas" ));
1843
+ py::arg (" thickness" ), py::arg (" pressure" ), py::arg (" gas" ), py::arg ( " is_dcenter " ) = false );
1854
1844
1855
- layers.def (" gap" , py::overload_cast<double , double , const Gases::CGas &, double , double >(&Tarcog::ISO15099::Layers::gap),
1845
+ layers.def (" gap" , py::overload_cast<double , double , const Gases::CGas &, double , double , bool >(&Tarcog::ISO15099::Layers::gap),
1856
1846
" Factory function to create a Tarcog gap with all parameters" ,
1857
1847
py::arg (" thickness" ), py::arg (" pressure" ), py::arg (" gas" ),
1858
- py::arg (" accommodation1" ), py::arg (" accommodation2" ));
1848
+ py::arg (" accommodation1" ), py::arg (" accommodation2" ), py::arg ( " is_dcenter " ) = false );
1859
1849
1860
1850
layers.def (" forced_ventilation_gap" , &Tarcog::ISO15099::Layers::forcedVentilationGap,
1861
1851
" Function to create a forced ventilation Tarcog gap" ,
0 commit comments