Skeleton of new free current BC

This commit is contained in:
Jorge Gonzalez 2026-04-16 09:26:35 +02:00
commit bd67bd6606

View file

@ -1113,6 +1113,31 @@ MODULE moduleMesh
end interface end interface
! Calculates the electric field normal to the surface based on Ampere's law (without magnetic field)
type, extends(boundaryEMGeneric):: boundaryEMFreeCurrent
type(meshEdgePointer), allocatable:: electricField(:) ! Electric field in each edge
contains
procedure, pass:: apply => applyFreeCurrent
end type boundaryEMFreeCurrent
interface
module subroutine initFreeCurrent(self, config, object)
use json_module
class(boundaryEMGeneric), allocatable, intent(inout):: self
type(json_file), intent(inout):: config
character(:), allocatable, intent(in):: object
end subroutine initFreeCurrent
module subroutine applyFreeCurrent(self, vectorF)
class(boundaryEMFreeCurrent), intent(in):: self
real(8), intent(inout):: vectorF(:)
end subroutine applyFreeCurrent
end interface
! Container for boundary conditions ! Container for boundary conditions
TYPE:: boundaryEMCont TYPE:: boundaryEMCont
CLASS(boundaryEMGeneric), ALLOCATABLE:: obj CLASS(boundaryEMGeneric), ALLOCATABLE:: obj