CFRP Laminate with Delamination B-Scan 2D


B-Scans are often used in CFRP applications to characterise defects. In this example we will simulate an immersion B-Scan inspection of a CFRP laminate with a delamination defect. 

Model Description

This simple 2D model simulates an immersion inspection of a CFRP laminate containing a delamination defect. The model comprises of a CFRP laminate with 24 ply layers and thin inter-ply resin layers. The number of plies is variable and their orientation is read into the model from an external CSV file, allowing for different laminates to be simulated.

Download and Open the Model

Download: CFRP 2D

OnScale Input Files have the file extension *.flxinp. To open the downloaded file:

  1. Open OnScale 
  2. Select Analyst Mode
  3. Select the Menu button in the top left of the application
  4. Select Open

Preview Model


Preview model is used to see the geometry dimensions and material assignment of your model to check your script is correct. To preview a model, select the Preview Model icon in the Home tab of the application ribbon.


Note: Preview model will display data from any grph commands that come before the prcs command. If you have more than one grph command, you can cycle through the graphics by continuously selecting Preview Model. To close the preview, select Stop Preview.

Run Model on Cloud 

  1. Select Run on Cloud
  2. Select Estimate
  3. Select Run

Download Results

  1. From the Home tab, select the Storage icon
  2. Select the Refresh icon to refresh storage
  3. Select the Job Name from the dropdown menu
  4. Right click a fold Download > Download All

Choose a directory to download the results to. These results will be stored in the folder: CFRP_Laminate-YYYYMMDD-HHMMSS\X where YYYYMMDD-HHMMSS is the current date and time and X is the simulation number.

Switch to Post Processor

Post Processor is a suite of tools used to visualise and analyse output data generated from OnScale simulations. Switch to Post Processor.


What kind of analysis can I do in Post Processor? Find out here.

Analyse Results

To plot the B-Scan, we have created a script in Matlab, however this can also be done in your post-processing language of choice - Python, Octave etc. 

Download: MATLAB B-Scan Files

  1. Navigate to the directory which the MATLAB Files where downloaded to
  2. Right click the downloaded folder and select Extract All > Extract
  3. Open the downloaded folder and copy the contents into same directory as CFRP_Laminate-YYYYMMDD-HHMMSS 
  4. Open BscanPP.m in MATLAB
  5. Change folder variable to reflect your job folder CFRP_Laminate-YYYYMMDD-HHMMSS 
  6. Select Run


What's Next?

Simulate CFRP Laminate with Delaminate in 3D

0 out of 0 found this helpful


  • Hello,

    The Matlab file doesn't seem to work for me and gives me an error


    Please help me resolve this problem




    Comment actions Permalink
  • Hi Robin,

    In the script, have you put in the appropriate folder for the directory you are running from?

    Best Regards,

    Comment actions Permalink
  • Hello Chloe,

    Yes, I put it into the appropriate folder named "CFRP_Laminate-YYYYMMDD-HHMMSS " as stated in the instructions.

    According to the script, it will go into the "1" folder inside and look for the flxhst file. I also put the files inside the "1" folder and it still did not work.


    Comment actions Permalink
  • Hi Robin,

    Could you send your working directory and all the files to and someone will look into this.


    Comment actions Permalink

Please sign in to leave a comment.