You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with PATH OBSCURATION on multi meshes #10225
I am running into an issue when calculating PATH OBSCURATION with line DEVC crossing multiple meshes.
When the x or y position of the endpoint of a line DEVC is lower than the start point and the line DEVC crosses multiple meshes, the result of PATH OBSCURATION is different to a single mesh simulation. Crossing X = 0 / Y = 0 or not also seems to make a difference.
I have summarized the issue in a simple example.
I have set a constant smoke density within the domain, similar to the beam detector validation case.
Delta X / Y / Z corresponds to the position of the end point in relation to the start point of the line DEVC.
Calculating the TRANSMISSION for line DEVC with the same coordinates works as expected. Therefore, it seems to me that the distance measurement is wrong for Multi Meshes.
I am running FDS with the following configuration:
Current Date : January 12, 2022 09:25:27
Revision : FDS6.7.7-0-gfe0d4ef38-release
Revision Date : Thu Nov 18 17:10:22 2021 -0500
Compiler : Intel ifort 2021.4.0
Compilation Date : Nov 19, 2021 08:14:42
MPI Enabled; Number of MPI Processes: 1
OpenMP Enabled; Number of OpenMP Threads: 4
Something is wrong in setting up the subdevices. I put in debug to write SDV%MESH, SDV%N_PATH and SDV%I/J/K_PATH in read.f90. For the issue_01_multi_x_negative case the first device is only writing path data for mesh 2 even though this device goes through four meshes.
It may be this line at 12005. This is before we check for meshes and in this case the XB is not ordered as expected for using XF and XS.
IF (QUANTITY/='PATH OBSCURATION' .AND. QUANTITY/='TRANSMISSION') CALL CHECK_XB(XB)
I'm not sure why PATH OBSCURATION and TRANSMISSION were singled out. In any case, removing the special treatment seems to solve the issue. As a work-around until the next release, make sure your Delta's are positive. In the next release, FDS would make the necessary adjustment.
PATH OBSCURATION and TRANSMISSION both use line from (x1,y1,z1) to (x2,y2,z2). If z2 is less than z1, CHECK_XB will flip z1 and z2. It looks like CHECK_XB is done before we assign XB to device variable which means this would change the path to be a line from (x1,y1,z2) to (x2,y2,z1) which would not be the same.
We could define XB_TEMP = XB, then CALL CHECK_XB(XB), and then after doing the check for being in the mesh if it is one of those two quantities set XB = XB_TEMP.
Thank you for resolving the issue!
As a workaround I calculated the distances by myself and determined PATH OBSCURATION from TRANSMISSION via post processing.
Activity
[-]Issue with PATH OBSCURATION un multi meshes[/-][+]Issue with PATH OBSCURATION on multi meshes[/+]drjfloyd commentedon Jan 12, 2022
Something is wrong in setting up the subdevices. I put in debug to write SDV%MESH, SDV%N_PATH and SDV%I/J/K_PATH in read.f90. For the issue_01_multi_x_negative case the first device is only writing path data for mesh 2 even though this device goes through four meshes.
drjfloyd commentedon Jan 12, 2022
It may be this line at 12005. This is before we check for meshes and in this case the XB is not ordered as expected for using XF and XS.
IF (QUANTITY/='PATH OBSCURATION' .AND. QUANTITY/='TRANSMISSION') CALL CHECK_XB(XB)
mcgratta commentedon Jan 12, 2022
OK, this is a bit tricky. I'll take a look.
FDS Source: Issue firemodels#10225. Fix bug in coords of 'PATH OBS'
Merge pull request #10230 from mcgratta/master
mcgratta commentedon Jan 12, 2022
I'm not sure why
PATH OBSCURATIONandTRANSMISSIONwere singled out. In any case, removing the special treatment seems to solve the issue. As a work-around until the next release, make sure your Delta's are positive. In the next release, FDS would make the necessary adjustment.drjfloyd commentedon Jan 12, 2022
PATH OBSCURATION and TRANSMISSION both use line from (x1,y1,z1) to (x2,y2,z2). If z2 is less than z1, CHECK_XB will flip z1 and z2. It looks like CHECK_XB is done before we assign XB to device variable which means this would change the path to be a line from (x1,y1,z2) to (x2,y2,z1) which would not be the same.
mcgratta commentedon Jan 12, 2022
OK, maybe this was why we singled these quantities out. Let me think some more.
drjfloyd commentedon Jan 12, 2022
We could define XB_TEMP = XB, then CALL CHECK_XB(XB), and then after doing the check for being in the mesh if it is one of those two quantities set XB = XB_TEMP.
mcgratta commentedon Jan 12, 2022
This is ugly, but I think it works.
FDS Source: Issue firemodels#10225. Rework previous fix.
Merge pull request #10232 from mcgratta/master
kriboe90 commentedon Jan 13, 2022
Thank you for resolving the issue!
As a workaround I calculated the distances by myself and determined
PATH OBSCURATIONfromTRANSMISSIONvia post processing.mcgratta commentedon Jan 13, 2022
Great, thanks for reporting this problem.
gjaeger commentedon Jan 13, 2022
@mcgratta A new nominee for the Boris Stock Award 2022? ;-)
mcgratta commentedon Jan 13, 2022
Will do. Good suggestion. That means we need to choose the 2021 winner.