Hi John and all,
Thank you very muchh for all the help.I have tried to proceed further.
Now, I have extracted the data from [b]my[/b] finite element software/program (Software A) and am now in process of writing the binary file needed for another finite element software (Software B).
I have got the information from the software B from its documentation about the variables used,etc.
I'm in the process of running an example and validated that the data extracted from software A is correct.
I now have written the binary file as follows;
character*40 file_name
integer nelems
integer(KIND=8) :: NEL8,NEL4,NEL2,NUMMAT8,NUMMAT4
integer(KIND=8) :: NUMMAT2,NUMNP,NDIM
REAL(KIND=8):: X(NDIM,nelems)
INTEGER(KIND=8)::IX8(9,nelems)
file_name = 'my_d3pfile.d3plot'
open (unit=21, file=file_name, form='UNFORMATTED', iostat=iostat)
!write (*,*) ' File ',trim(file_name),' Opened for writing: iostat=', iostat
!Below, the CONTROL data is written to
write(21) NEL8 !Number of 8 noded brick elements
write(21) NEL4 !Number of 4 noded quadrilateral elements
write(21) NEL2 !Number of 2 noded line elements
write(21) NUMMAT8 !Total number of materials used by 8 noded brick elements
write(21) NUMMAT4 !Total number of materials used by 4 noded quadrilateral elements
write(21) NUMMAT2 !Total number of materials used by 2 noded line el;ements
write(21) NUMNP !Total number of nodal points
write(21) NDIM !Total number of dimensions (1,2 or 3)
!Below the geometry data (i.e. the mesh is written to the d3plot file opened above)
write (21) ((X(i,j),i=1,3),j=1,NUMNP) !Nodal coordinates
write(21) ((IX8(i,j),i=1,9),j=1,nelems) !Element connectivity
close(unit=21)
end[/code]
Any suggestions?Please help-any suggestion on the next step?