MATLAB How Can I Parse MCNP Output Files in MATLAB?

  • Thread starter Thread starter WWYY
  • Start date Start date
  • Tags Tags
    Matlab Mcnp
Click For Summary
Parsing MCNP output files, specifically the MCTAL file, can be challenging due to its ASCII format. Users are seeking MATLAB code to facilitate this process, as direct reading of the MCTAL file is difficult. It is noted that if one understands the ASCII format, MATLAB can read these files using appropriate functions. A member has previously shared a solution for this issue, indicating a community resource available for assistance. Overall, the discussion emphasizes the need for effective methods to handle MCNP output files in MATLAB.
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
 
Physics news 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?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
5
Views
2K