How Can I Parse MCNP Output Files in MATLAB?

  • Context: MATLAB 
  • Thread starter Thread starter WWYY
  • Start date Start date
  • Tags Tags
    Matlab Mcnp
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 3K views
WWYY
Messages
1
Reaction score
0
Hello! I am really glad to find this forum!

I was wondering if anyone has a MATLAB code to parse the MCNP output file MCTAL? I did some Lattice simulation but it seemed hard to read the MCTAL file directly..

Best regards
 
on Phys.org
WWYY said:
Hello! I am really glad to find this forum!

I was wondering if anyone has a MATLAB code to parse the MCNP output file MCTAL? I did some Lattice simulation but it seemed hard to read the MCTAL file directly..

Best regards
I'm not familiar with MATLAB, but as far as I can tell, .mctal files are ASCII format, so if one knows the format, one should be able to read the files into MATLAB with whatever function reads an ASCII-format file.

A member here apparently has done that.
https://www.physicsforums.com/threads/mcnp-help.829473/#post-5269680

How do others read ASCII files with MATLAB?