PrincetonUniversity / EDIPIC-2D

GNU General Public License v3.0
34 stars 20 forks source link

Considering "resistor" in pic2d_ExternalCircuits.f90 #7

Open thstjdgus9 opened 2 years ago

thstjdgus9 commented 2 years ago

Hello, I'd like to ask about the external circuit module (pic2d_ExternalCircuits.f90)

I'd like to make a boundary as a circuit with one DC voltage source and one resistor. However, it seems that current version of EDIPIC can solve for a circuit only with a capacitor. (Line 1771- at pic2d_ExternalCircuits.f90) I tried to revise it, but it didn't work. Do you have versions that includes resistor?

Thank You

thstjdgus9 commented 2 years ago

(adding on...)

This is my revision for resistor consideration. I added it in pic2d_ExternalCircuits.f90


CASE (4)
! Just a simple circuit with a resistor
potential_of_object = (ECPS_Voltage(1, T_cntr) - resistor_R_Ohm * (dQ_full - dQ_plasma_of_object(1)) * &
& (e_Cl * N_plasma_m3 * delta_x_m**2 / (DBLE(N_of_particles_cell) * delta_t_s)))