Python electromagnetic cosimulation library
A new major version of CoSimPy is available. Version 2.0.0 comes along with the following modifications:
A scientific paper related to CoSimPy has been published in “Computer Methods and Programs in Biomedicine” journal. In the paper, the main features of CoSimPy are shown and its performance is tested again full-wave EM simulations.
A minor version of CoSimPy coming along with the following modifications:
The way the additional properties are managed in the EM_Field class has been substantially changed. From the user side, this will affect the following methods:
EM_Field.compPowDens;EM_Field.compDepPow;RF_Coil.powerBalance;RF_Coil.saveRFCoil: The RF_Coil instance is saved with a new file version;RF_Coil.loadRFCoil: It is not be possible to load the RF_Coil instances saved with a previous version of CoSimPy.New methods are available:
compQMatrix method is available for the EM_Field class;__getitem__ method is available for the EM_Field class;addProperty method is available for the EM_Field class;getProperty method is available for the EM_Field class;maskEMField method is available for the EM_Field class;plotEMField method is available for the EM_Field class. This method replaces the old plotB and plotE methods which will be removed in the next vesions of CoSimPy.plotProperty method is available for the EM_Field class.nPorts property is added to the RF_Coil class;__getitem__ method of the S_Matrix class is improved;compSensitivities method of the EM_Field class.saveRFCoil method when the RF coil is saved without description;importFields_cst method when only the b_field is imported.__sub__ method in the S_Matrix class allows to perform the cascade connection between the last port of a first S_Matrix instance and the first port of a second just as: S_res = S_1 - S_2;importTouchstone method of the SMatrix class has been improved to fully support the v1.1. Touchstone® File Format Specification by IBIS. It will be possible to import also Z- and Y-parameters. Furthermore, providing to the method the relevant information through a dictionary, the same method will also be able to import a simple ascii file formatted by columns;exportTouchstone method will be available in the S_Matrix class to export the S-, Z- or Y-parameters either according to the v1.1. Touchstone® File Format Specification by IBIS or to a columns formatted ascii file;sMatrixOpen, sMatrixShort) will allow to generate an instance of a 1-port open or 1-port short over defined frequency values;None arguments for longitudinal and transversal parameters respectively, to substitute them with short and open circuits respectively;setAsOriginal) to set the S_Matrix instance resulting from the connections with external circutries as unconnected. In this way, during powerBalance, the connected circuitry losses will be assigned to the source “other”;plotSPanel) allows to plot, in a single multipanel figure, the S parameters of a multiport device in dB;saveRFCoil, loadRFCoil) allow to save and load the RF_Coil instance in proprietary binary files;duplicatePortsParallel, duplicatePortsSeries) to duplicate existing ports of a simulated device;A new method is available in the RF_Coil class (connectPorts) to connect together two or more port pairs, through given circuitries, whose S matrices are properly given by the user.
sMatrixTrLine now allows for transmission lines with a characteristic impedance different from the port impedancesS_Matrix.__resSMatrix method;warnings library is now imported in the S_Matrix module to report non-fatal alerts to the user;info_warnings=True flag can be passed as argument to S_Matrix.init and S_Matrix.importTouchstone methods to allow for the print of additional information related to warnings;S_Matrix.importTouchstone method;EM_Field.importFields_s4l method;EM_Field importFields_s4l method.