First attempt at working with a distribution function with u

This commit is contained in:
Jorge Gonzalez 2026-02-03 11:48:43 +01:00
commit 2b6ea0ff84

View file

@ -220,6 +220,7 @@ MODULE moduleMeshBoundary
subroutine outflowAdaptive(edge, part)
use moduleRandom
use moduleRefParam, only: v_ref
implicit none
class(meshEdge), intent(inout):: edge
@ -228,14 +229,19 @@ MODULE moduleMeshBoundary
select type(bound => edge%boundary%bTypes(part%species%n)%obj)
type is(boundaryOutflowAdaptive)
if (random() < 0.844d0) then
! if (random() < 0.844d0) then
call reflection(edge, part)
else
part%v = part%v + 40e3/v_ref
if (dot_product(part%v, edge%normal) <= 0.d0) then
call transparent(edge, part)
end if
! else
! call transparent(edge, part)
! end if
end select
end subroutine outflowAdaptive