sdr_truncate_qVal Subroutine

private subroutine sdr_truncate_qVal(proto, qVal, BCID, neighPos, treeID_periodic)

This routine gives special treatment when qVal > 1.0 or qVal == -1.0 for flooded neighbor, treat it as normal fluid: clean BCID, set qVal to -1 (no itersection). for non-flooded neighbor, treat it as high order wall: set qVal to 1

Arguments

Type IntentOptional Attributes Name
type(sdr_protoTree_type), intent(in) :: proto

preliminary tree

real(kind=rk), intent(inout) :: qVal

qValue

integer(kind=long_k), intent(inout) :: BCID

boundary id

integer, intent(in) :: neighPos

neighbor position in proto tree

integer(kind=long_k), intent(in), optional :: treeID_periodic

negative treeID of periodic domain