How can I visualize data from .dat file ?

Altair Forum User
Altair Forum User
Altair Employee
edited November 2020 in Community Q&A

I'm working on a Finite Element Fortran code(it is not very common)  where the output results are in *.dat format; is there a way to visualize the results(stress,strain...) using Hyperview? knowing that I have the node coordinates, element connectivity and of course the results of stress and strain at each node(see the file attached).

if it is not the case, is there any other software that does the trick.

thank you very much  

Unable to find an attachment - read this blog

Tagged:

Answers

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited February 2018

    Could I know the name of the code?

    If the format is not supported, you can always build a HWASCII output from your results.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

    First things first, thank you for your reply  Mr.Q.Nguyn-dai

    could you show me how can i build and HWASCII output from my results? by the way, I am not very acquainted with Hyperview 

    Thank you in advance.  

     

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited February 2018

    Have a look at 'Generic ASCII Reader'

    ascii_reader.png.8d69c7ae7cb800382c89587c08518b1e.png

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

    THANK YOU A LOT Q.Nguyen-Dai. I'll do :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />:)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited February 2018

    Your result (displacement along Y-axis) looks like that?

    <?xml version="1.0" encoding="UTF-8"?>displacement_Y.thumb.png.1e626f17807651525c83d86772ff89c6.png

     

    Model H3D:   

    Unable to find an attachment - read this blog

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

     u hit the nail on the head, that's exactly what i need  hhh very nice dude;)/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />;)/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />.

    how can i convert my output file to .h3d? are there available materials about that? 

     

    I know that i've been asking questions all day:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />, 

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited February 2018

    Alot of work to make this H3D :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

    1. From your output.res => Extract nodes & elems information => make *.hmascii => Import into Hypermesh => Export to *.fem
    2. From your output.res => Extract results. In my test, I tested with nodal displacement of 1st step. => write to *.hwascii

    (I used Perl as scripting programming language)

     

    Run Hyperview:

    1. Open *.fem as 'model'
    2. Open *.hwascii as 'result'

    When you have all within Hyperview, you can export again into H3D format.

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

    Nice, I'll try to give it a shot so that i can plot stresses;; thank you a lot Q.Nguyen-Dai

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2018

    Dear Mr. Q.Nguyen-Dai,

    Hope you are doing great,  I have some issues concerning the topic we discussed earlier and I hope you can assist me with the matter;  could you please provide me with a video describing in details the method you used to create the mesh from the data file as well as visualizing results using Hyperview. 

    thank you for your time and I look forward to hearing from u soon.

    best regards.

     

     

     

     

     

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited March 2018

    Sorry, I do not have free time for this video.

    Do you have some programming skill?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2018

    Thank you Q.Nguyen-Dai, I've finally managed to do it right.

    best regards