hexagon logo

Hi I like to import thermal results from another software into patran to define a temperature boundary condition. The results are in csv format, with x, y, z coordinates and the temperature.

These results should be used for defining nodal temperatures on a nastran mesh.

Attached Files (1)
Parents
  • OK - if you have one temperature per element then I suggest using a Patran 2 format element result file.
    I have put one in the attached zip for the mesh built by the previous ses file for the temp points.
    The els file can contain multiple results and so needs a template file to define to the Patran import process what it does contain. I have put an example result template in the zip.
    so if you open the database built by the last ses file, then File/import Object:Results Format: PATRAN2 .els
    you then select the Template file and the result file and -Apply-
    Under results you can now create a fringe of the temp result - then create the field from this and map to the new model.
    Note that the Patran 2 file is a fixed format (aka Fortran style write statements :
    line1 : header : (80A1)
    line2:no, of results: (I5)
    line3:subtitle1 : (80A1)
    line4:subtitle2:(80A1)
    line5 - onwards: ID, NSHAPE, (DATA(J),J=1,NWIDTH) (2I8, /, 6E13.7)
     
    so the Result Data is on pairs of lines, Element ID, Element Shape then the elements results. If there were more than 6 result values (this data is specified with just 1) then there would be more result lines per element.
     
    The element shape code in the attached file I set to 4 (=Quad) this was a test to confirm that the current Patran ignores it. For Patran 2 the shape codes were 3=Tri, 4=Quad, 7=Wedge, 8=Hex.
     
    best regard
    Arthur
     
     

    Attached Files (1)
Reply
  • OK - if you have one temperature per element then I suggest using a Patran 2 format element result file.
    I have put one in the attached zip for the mesh built by the previous ses file for the temp points.
    The els file can contain multiple results and so needs a template file to define to the Patran import process what it does contain. I have put an example result template in the zip.
    so if you open the database built by the last ses file, then File/import Object:Results Format: PATRAN2 .els
    you then select the Template file and the result file and -Apply-
    Under results you can now create a fringe of the temp result - then create the field from this and map to the new model.
    Note that the Patran 2 file is a fixed format (aka Fortran style write statements :
    line1 : header : (80A1)
    line2:no, of results: (I5)
    line3:subtitle1 : (80A1)
    line4:subtitle2:(80A1)
    line5 - onwards: ID, NSHAPE, (DATA(J),J=1,NWIDTH) (2I8, /, 6E13.7)
     
    so the Result Data is on pairs of lines, Element ID, Element Shape then the elements results. If there were more than 6 result values (this data is specified with just 1) then there would be more result lines per element.
     
    The element shape code in the attached file I set to 4 (=Quad) this was a test to confirm that the current Patran ignores it. For Patran 2 the shape codes were 3=Tri, 4=Quad, 7=Wedge, 8=Hex.
     
    best regard
    Arthur
     
     

    Attached Files (1)
Children
No Data