I have currently created a model of a labyrinth seal and would like to output directly the flow rates from the calculation process. To start with i have tried to develop a user extra operation to compute the mass flow rate at the exit boundary and another section in the seal and export them into a .dat file (although ideally i would prefer a .csv file).
this is the current error i am receiving:
cs_user_extra_operations-global_efforts.o: dans la fonction « cs_f_user_extra_operations_ »:
cs_user_extra_operations-global_efforts.f90:(.text+0x53): référence indéfinie vers « ifluma_ »
cs_user_extra_operations-global_efforts.f90:(.text+0x7e): référence indéfinie vers « ifluma_ »
cs_user_extra_operations-global_efforts.f90:(.text+0x500): référence indéfinie vers « ifluma_ »
collect2: error: ld returned 1 exit status
Except i cannot find anywhere on the Doxygen website any variables to extract the flow rate so i re-used some variables i found on an old post. This is what i thought was possible to get the field values :
call field_get_val_v(ifluma(iw), flumab)
call field_get_val_v(ifluma(iw), flumas)
Further in the script i loop on the cells on the surface to retrieve the total sum by readapting an old script i found on the forum:
call getfbr('outlet', nlelt,lstelt)
do ilelt = 1, nlelt
ifac = lstelt(ilelt)
massout = massout + flumab(ifac, iflmab)
enddo
I've added my scripts below if someone could please help it would be great

Thanks