Correcting some issues with the floating boundary condition
This commit is contained in:
parent
8edfd803e7
commit
cf75e5fb2b
3 changed files with 9 additions and 1 deletions
|
|
@ -1344,6 +1344,13 @@ MODULE moduleInput
|
||||||
|
|
||||||
! Specific assignments per type
|
! Specific assignments per type
|
||||||
select type(bound)
|
select type(bound)
|
||||||
|
type is(boundaryEMFloating)
|
||||||
|
if (associated(physicalSurfaces(ps)%EM, bound)) then
|
||||||
|
bound%edges = [bound%edges, physicalSurfaces(ps)%edges]
|
||||||
|
bound%nEdges = size(bound%edges)
|
||||||
|
|
||||||
|
end if
|
||||||
|
|
||||||
type is(boundaryEMFreeCurrent)
|
type is(boundaryEMFreeCurrent)
|
||||||
if (associated(physicalSurfaces(ps)%EM, bound)) then
|
if (associated(physicalSurfaces(ps)%EM, bound)) then
|
||||||
bound%edges = [bound%edges, physicalSurfaces(ps)%edges]
|
bound%edges = [bound%edges, physicalSurfaces(ps)%edges]
|
||||||
|
|
|
||||||
|
|
@ -1089,6 +1089,7 @@ MODULE moduleMesh
|
||||||
real(8):: invC ! Inverse of the capacitance of the surface
|
real(8):: invC ! Inverse of the capacitance of the surface
|
||||||
real(8):: charge ! Charge accumulated on surface
|
real(8):: charge ! Charge accumulated on surface
|
||||||
type(meshEdgePointer), allocatable:: edges(:) !Array with edges
|
type(meshEdgePointer), allocatable:: edges(:) !Array with edges
|
||||||
|
integer:: nEdges
|
||||||
contains
|
contains
|
||||||
! boundaryEMGeneric DEFERRED PROCEDURES
|
! boundaryEMGeneric DEFERRED PROCEDURES
|
||||||
procedure, pass:: apply => applyFloating
|
procedure, pass:: apply => applyFloating
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ submodule(moduleMesh) boundaryEM
|
||||||
|
|
||||||
select type(self)
|
select type(self)
|
||||||
type is(boundaryEMFloating)
|
type is(boundaryEMFloating)
|
||||||
do e = 1, size(self%edges)
|
do e = 1, self%nEdges
|
||||||
edge => self%edges(e)%obj
|
edge => self%edges(e)%obj
|
||||||
|
|
||||||
chargeTau = 0.0d0
|
chargeTau = 0.0d0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue