CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   -   Transient Sliding Mesh - StarCD v3.26 (https://www.cfd-online.com/Forums/cd-adapco/57002-transient-sliding-mesh-starcd-v3-26-a.html)

 Sameera February 9, 2009 21:50

Transient Sliding Mesh - StarCD v3.26

Does anyone know how to calculate the mass flow rate through a given surface, over some specified time interval? I know that the mass flux can be plotted for a single cell for some time period, but what I need is to get the mass flux over a specified surface over sometime period.

 ping February 10, 2009 09:05

Re: Transient Sliding Mesh - StarCD v3.26

You could use a boundary monitor for this - assuming the surface is aligned with cell faces, then apply an Internal Boundary.

 Sameera February 10, 2009 09:55

Re: Transient Sliding Mesh - StarCD v3.26

Ping, Thanks. But the boundary surface that I'm interested in is of Attach boundary type.

 KO March 12, 2009 19:54

Re: Transient Sliding Mesh - StarCD v3.26

Try putting this into your posdat.f subroutine.

DO i = 1, NBMAXU

IRNB = IRN(IB)

if (irnb.eq."boundary region number of interest") then

ic=LX(i)/7

ip=ICLMAP(ic)

indx=MOD(LX(IB),7)

ibnd=LQ(indx,ip)

IDIR = NDIN(INDX)

IF ( IDIR.GT.0 ) THEN

IBS = IP

ISENS = 1

ELSE

IBS = IBND

IDIR =-IDIR

ISENS =-1

ENDIF

flux = flux+(F(IDIR,IBS)*ISENS) ! kg/s

ENDIF ENDDO

This will loop though all of the boundaries and calculate the mass flux in kg/s across any boundary number of interest.

 All times are GMT -4. The time now is 00:20.