Make voltage ramp smooth around 0 and around end of ramp.

This commit is contained in:
Holger Vogt 2023-04-15 11:10:25 +02:00
parent 678a6582f6
commit a39052cd14
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ resume:
/* supply ramping, when opramptime > 0 */
if (opramptime > 0)
ckt->CKTsrcFact = MIN(1., optime / opramptime);
ckt->CKTsrcFact = 0.5 * (1 - cos(M_PI * optime / opramptime));
ckt->CKTdeltaOld[0]=ckt->CKTdelta;
NIcomCof(ckt);