Some of the iron pnictides show coexisting superconductivity and spin-density-wave order. We study the superconducting pairing instability in the spin-density-wave phase. Assuming that the pairing interaction is due to spin fluctuations, we calculate the effective pairing interactions in the singlet and triplet channels by summing the bubble and ladder diagrams, taking the reconstructed band structure into account. The leading pairing instabilities and the corresponding superconducting gap structures are then obtained from the superconducting gap equation. We illustrate this approach for a minimal two-band model of the pnictides. Analytical and numerical results show that the presence of spin and charge fluctuations in the spin-density-wave phase strongly enhances the pairing. Over a limited parameter range, a ${p}_{x}$-wave state is the dominant instability. It competes with various states, which have mostly ${s}^{\ifmmode\pm\else\textpm\fi{}}$-type structures. We analyze the effect of various symmetry-allowed interactions on the pairing in some detail.
An approach to automatically generate a dynamic energy simulation model in Modelica for a single existing building is presented. It aims at collecting data about the status quo in the preparation of energy retrofits with low effort and costs. The proposed method starts from a polygon model of the outer building envelope obtained from photogrammetrically generated point clouds. The open-source tools TEASER and AixLib are used for data enrichment and model generation. A case study was conducted on a single-family house. The resulting model can accurately reproduce the internal air temperatures during synthetical heating up and cooling down. Modelled and measured whole building heat transfer coefficients (HTC) agree within a 12% range. A sensitivity analysis emphasises the importance of accurate window characterisations and justifies the use of a very simplified interior geometry. Uncertainties arising from the use of archetype U-values are estimated by comparing different typologies, with best- and worst-case estimates showing differences in pre-retrofit heat demand of about ±20% to the average; however, as the assumptions made are permitted by some national standards, the method is already close to practical applicability and opens up a path to quickly estimate possible financial and energy savings after refurbishment.