Regarding thread214-1609970,
I would like to find out how to arrange the output data from Fortran into a text file with specified column widths?
My code is as follows:
write(3,*)'Model Parameters: '
write(3,*)'Column length :',int(RPAR(2)),' m'
write(3,*)'Mass transfer coeff N2 :',int(RPAR(3)),' 1/s'
write(3,*)'Mass transfer coeff O2 :',int(RPAR(4)),' 1/s'
write(3,*)'Saturation constants :',real(RPAR(7)),' kg/kgs'
write(3,*)'Overall heat transfer coeff:',int(RPAR(13)),' J/m2.s.K'
write(3,*)'Gas heat capacity :',int(RPAR(14)),' J/kg.K'
write(3,*)'Solid heat capacity :',int(RPAR(15)),' J/kg.K'
write(3,*)'Temperature ambient :',int(RPAR(16)),' K'
write(3,*)'Pressure atmospheric :',int(RPAR(29)),' Pa'
write(3,*)'Pressure feed :',int(RPAR(30)),' Pa'
write(3,*)'Heat of Adsorption :',int(RPAR(33)),' J/kg'
My output is not aligned in columns and looks untidy.
Please assist.
I would like to find out how to arrange the output data from Fortran into a text file with specified column widths?
My code is as follows:
write(3,*)'Model Parameters: '
write(3,*)'Column length :',int(RPAR(2)),' m'
write(3,*)'Mass transfer coeff N2 :',int(RPAR(3)),' 1/s'
write(3,*)'Mass transfer coeff O2 :',int(RPAR(4)),' 1/s'
write(3,*)'Saturation constants :',real(RPAR(7)),' kg/kgs'
write(3,*)'Overall heat transfer coeff:',int(RPAR(13)),' J/m2.s.K'
write(3,*)'Gas heat capacity :',int(RPAR(14)),' J/kg.K'
write(3,*)'Solid heat capacity :',int(RPAR(15)),' J/kg.K'
write(3,*)'Temperature ambient :',int(RPAR(16)),' K'
write(3,*)'Pressure atmospheric :',int(RPAR(29)),' Pa'
write(3,*)'Pressure feed :',int(RPAR(30)),' Pa'
write(3,*)'Heat of Adsorption :',int(RPAR(33)),' J/kg'
My output is not aligned in columns and looks untidy.
Please assist.