Hello
I have problems modelling RF antenna.
Here is code:
Code:module ANTENNA (p1, p2, mag_field);
inout p1, p2;
input mag_field;
electrical p1, p2;
magnetic mag_field, mag_induct, mag_flux;
//Coil geometry description
.......................................
// Coil inductance innH
parameter real L = .....;
// Coil area in m^2
parameter real S = ....;
// Angle between magnetic field and normale to coil plane
parameter real alpha = 0;
analog begin
Phi(mag_induct) <+ `c_MU * Phi(mag_field);
Phi(mag_flux) <+ Phi(mag_induct) * S * cos(alpha);
V(p1,p2) <+ ddt(Phi(mag_flux));
V(p1,p2) <+ L * ddt(I(p1,p2));
end
endmodule
Coil geometry description, coil inductance and coil area calculation I bypassed as this is not significant vis-a-vis of problem.
As you could see from code, antenna coil has 3 ports - 2 electriacl p1 and p2 and one magnetic - mag_field.
Ports p1 and p2 i use to connect antenna coil to circuit, whereas mag_field I use to connect it to generator of magnetic field. The output of this generator has also nature magnetic.
In my schema I connect model in parallel to some capacitance and do transition simulation in ADE (Analog Design Environment).
The problem is that LC tank induced voltage isn't dependent on value of capacitance.
What is wrong in my verilogA description?
Regards
Pavel.