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.
the attached zip contains an edited csv and patran session file will illustrate one way to do this.
put them both in a folder and run the ses file.
ISSUES: your xyz and temp data contains duplicate points with different temperatures.
When creating a file for Nastran as I did here, it is important that real numbers are formatted for Nastran with a "." in them. Edit the csv file in excel to turn the data into grids and temp data for the grids.
Manually create a mesh to utilise the data points, as it was a regular arrangement this was very quick. Done as a 2D mesh that was then extruded.
Equivalence the nodes to get rid of coincident ones and create a plot of the temperature. This is then used to create a continuous FEM field.
A new bit of geometry is created and meshed and the field used to apply temps to this.
The temps on the two models are then plotted in separate windows.
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 :
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.