Page 1 of 1

electric potential-comsol

Posted: 25 Jun 2018, 00:48
by m94
can anyone know please know how can i impose the electrode surface potential to vary lineary and periodically with time as:
E(t)= phimin+v*t for 0<=t<t0
phimax-v*(t-t0) for t0<=t<2*t0
with t0=(phimax-phimin)/v
v=scan rate in V/s

Re: electric potential-comsol

Posted: 25 Jun 2018, 10:24
by raback
Hi

In Elmer

Code: Select all

$t0=1.23
$phimin=0.0
$phimax=1.0
Simulation
  Time Period = $2*t0 ! used to define periodic time
  ...
and

Code: Select all

Boundary Condition 1
  Potential = Variable "periodic time"
   Real
     $0.0   phimin  
     $t0    phimax
     $2*t0  phimin  
   End 
End 
In Comsol, I would not know.

-Peter