Skip to content

Strange scaling factor #96

@ma-laforge

Description

@ma-laforge

There appears to be a strange scaling factor when I use ADMS in QUCS.

In order for my simple voltage-controlled-voltage-source (VCVS) to correctly work, I needed to apply a factor of -50 to my gain:

`include "disciplines.vams"

module cust_vcvs(p1, n1, p2, n2);
	parameter real gain = 1;
	inout p1, n1, p2, n2;
	electrical p1, n1, p2, n2;

	analog begin
		V(p2, n2) <+ V(p1, n1)*gain/-50;
	end
endmodule

In 2015, this factor was there as well (though it was different at that time: -1e12 instead of 50).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions