I wanted to know that does imposed displacement/velocity on the mesh walls or structure on which fluid forces act when used and the following added(source FSI Tutorial from CS Version 2):
double precision xfor(3)
Then, in the body of the subroutine, add the following source code:
! set the force components to zero
do ii = 1, ndim
xfor(ii) = 0.d0
enddo
! get the cells corresponding to the cylinder surface
call getfbr(’1’, nlelt, lstelt)
!==========
! loop over the cells to integrate the force
! over the structure surface
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
! update the force
do ii = 1, ndim
xfor(ii) = xfor(ii) + ra(iforbr + (ifac-1)*ndim + ii-1)
enddo
enddo
! if the calculation is parallel, add the data from the
! other processes
if (irangp.ge.0) then
call
parrsm(ndim,xfor)
endif
will this give me the forces acting on the structure wall due the fluid flow?Or will it give me the forces due to which it will deform as I defined(might be just external forces instead of the fluid and affect the fluid flow instead in which case it is the reverse scenario).Quite confused.
