Skip to content

Parallel Integral #120

Answered by mathrack
MarcoArtiano asked this question in Q&A
Sep 22, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,
Have you looked at the estimation of the bulk velocity in the channel flow subroutine ? See https://github.com/xcompact3d/Incompact3d/blob/master/src/BC-Channel-flow.f90#L320
In your case, some minor modification is probably needed at i=1, i=nx and when xstart(3)=1 or xend(3)=nz. But it should be a good starting point.

EDIT : avoid the comparison between i (k as well) and "one" because "one" is a floating point number

EDIT2 : the loops do k=xstart(3),xsize(3) and do j=xstart(2),xend(2) are not consistent with epsni(i,j,k). It should be epsni(i,j-xstart(2)+1,k-xstart(3)+1). The i loop is ok because xstart(1)=1 and xend(1)=xsize(1)=nx. Also, the ending index of the k loop is wrong.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarcoArtiano
Comment options

Answer selected by MarcoArtiano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants