From: Stefan Jahn <stefan@gr...>  20050418 06:27:45

Hello! >> > By the way the meaning of my asking was this one : assuming that we >> > are working on sparameter simulation. I'am suggesting to create a >> > "format" describing variables that you can pass to a subroutine of >> > your own and this subroutine (it can be mathlab, c, fortran,...) >> > returns the Yparameters (or S or Z,...) >> >> There is such a thing: twoport(S, 'S', 'Y') OR stoy(S) >> > I have already try this option, and it work perfectly. I would like to > extand the idea to a sparameter box with more ports (I need 4 in > facts) the 4port also works with stoy(S), stoz(S) ... >> See math epressions in the help (F1 > mathematical functions).. >> >> > By the way I have look at the code of qucs and I would like to know >> > where you describe the sparameters blocs so that I could create snp >> > objects with n > 6 (actually I am thinking of creating an object with >> > a parameter : n). >> >> What would be the sense of this? > > I would like to use qucs in order to describe Surface Acoustic Wave > (SAW) filters, the idea is to describe the acoustic elements as a 4 > port element, two ports are dedicated to input/output electrical > connections and the two last one describes the acoustic waves (in an > electrical formalism). > After doing that, I would like to connect thoses boxes together and to > and EM simulation (wich can have more than 30 ports). > The admitance of the "4 ports acoustic boxes" are computed in a > fortran routine for the moment. > The input of this routine is some geometrical parameters and tables of > physical parameters (velocity...) that describes the spiezoelectrical > substrate. Now I got the idea... Cheers, Stefan. 