Author Topic: Boundary conditions  (Read 3568 times)

0 Members and 1 Guest are viewing this topic.

Offline DSarkar

  • Regular QuantumATK user
  • **
  • Posts: 22
  • Country: us
  • Reputation: 0
    • View Profile
Boundary conditions
« on: March 23, 2016, 07:28 »
Hi,

How do I know if periodic boundary conditions are applied to my simulation structure? And how would I change the boundary conditions?

Regards,

Debarghya

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: Boundary conditions
« Reply #1 on: March 23, 2016, 09:36 »
The boundary conditions are implemented on the Poisson Solver, see attached PNG. The default Poisson Solver for a bulk configuration is FFT with periodic BCs on all sides of the supercell. If no Poisson Solver is specified in the script, the default one is used. For device configurations, the default BCs on the electrodes are also fully periodic:
Code
left_electrode_poisson_solver = FastFourier2DSolver(
    boundary_conditions=[[PeriodicBoundaryCondition(),PeriodicBoundaryCondition()],
                         [PeriodicBoundaryCondition(),PeriodicBoundaryCondition()],
                         [PeriodicBoundaryCondition(),PeriodicBoundaryCondition()]]
    )

Offline DSarkar

  • Regular QuantumATK user
  • **
  • Posts: 22
  • Country: us
  • Reputation: 0
    • View Profile
Re: Boundary conditions
« Reply #2 on: March 24, 2016, 08:30 »
Thanks for the clarification, Jess.