I created testing circuits with two batbox (one fully charged and one discharged) and two MV transformers, placed like in picture below:
And it seems, when i use EU-reader to check voltage in cables between i've got those values:
32 EU/t
16 kV
For line between transformers and
32 EU/t
1 kV
without transformer.
But when i use my TileEntities to check voltage with this code:
Code
public double injectEnergy(ForgeDirection directionFrom, double amount,
double voltage1) {
{
this.energy+=amount;
this.voltage=voltage1;
this.total20TicksEUperV+=amount*1000000D/voltage1;
int tickCounter = MinecraftServer.getServer().getTickCounter();
if(tickCounter-lastTickCounter<0)
{
lastTickCounter=tickCounter;
this.total20TicksEUperV=0D;
}
int d=tickCounter-lastTickCounter;
if(d>=20 && voltage>1D)
{
this.amperage=this.total20TicksEUperV/(double)d;
lastTickCounter=tickCounter;
System.out.println("Voltage, kV="+voltage/1000);
System.out.println("this.amperage="+this.amperage);
this.total20TicksEUperV=0D;
}
}
Display More
I've got those:
244.14 EU/V*10^-6
131.1 kV
244.14 EU/V*10^-6
65.5 kV
It seems, that no matter if transformers are used or not, amount/voltage ratio is constant. I would like to know, from what depends voltage value in "injectEnergy" from IEnergySink interface?