PurposeThis study aims to generate different three-dimensional (3D) foam models using computer tomography (CT) scan and solid continuum techniques. The generated foam models were used to study deformation mechanism and the elastic-plastic behaviour with the existing experimental foam behaviour.Design/methodology/approachCT scan model was generated by combing 2D images of foam in MIMICS software. Afterwards, it was imported in ABAQUS/CAE software. However, solid continuum model was generated in ABAQUS/CAE software by using crushable foam properties. Then, the generated foam models were sets boundary conditions for a compression test.FindingsCT scans capture the actual morphology of foam sample which may directly an image based finite element foam model. The sectional views of both the models were used to observe deformation mechanism on compression. The real compressive behaviour of foam was visualised in CT-Scan foam model. It was observed that CT-scan model was the more accurate modelling method than crushable foam model.Originality/valueThe internal structure of foam is very complex and difficult to analyse. Therefore, CT-scanning may be the accurate method for capturing the macro-level detailing of foam structure. A CT-scan foam model can be used for multiple times for mechanical analysis using a simulation software, which may reduce the manufacturing and the experimental cost and time.