


{"id":318041,"date":"2023-11-16T16:14:29","date_gmt":"2023-11-16T16:14:29","guid":{"rendered":"\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/"},"modified":"2023-11-16T16:14:29","modified_gmt":"2023-11-16T16:14:29","slug":"data-export-from-simulation-way-too-slow","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/","title":{"rendered":"Data export from simulation way too slow"},"content":{"rendered":"<p>Hi,<\/p>\n<p>&nbsp;<\/p>\n<p>I&#8217;m trying to export results in .csv format, from a static simulation.<\/p>\n<p>I&#8217;ve struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:<\/p>\n<p class=\"MsoNormal\">!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">\/POST1<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">RSYS,0<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">SET,1,LAST<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">csv_name = &#8216;out_node_U_s_1_LAST_post.csv&#8217;<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">*cfopen,csv_name<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">*cfwrite,&#8217;node_num&#8217;,S11,S22,S33,S12,S13,S23,SEQV<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">\/POST1<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">allsel<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">cmsel,s,N_POST,NODE<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"NL\">*vget,nodeIds_sel,NODE,,NLIST<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">*get,nNodes,NODE,0,COUNT<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">*do,i_noeud,1,nNodes,1<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"IT\">no_node=nodeIds_sel(i_noeud)<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"IT\"><span>&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-GB\">nsel,s,node,,no_node<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_S11,NODE,no_node,S,X<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_S22,NODE,no_node,S,Y<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_S33,NODE,no_node,S,Z<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_S12,NODE,no_node,S,XY<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_S13,NODE,no_node,S,XZ<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_S23,NODE,no_node,S,YZ<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*get,variable_SEQV,NODE,no_node,S,EQV<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\"><span>&nbsp;&nbsp;&nbsp; <\/span>*cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV<\/span><\/p>\n<p class=\"MsoNormal\"><span lang=\"EN-GB\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\">*enddo<\/p>\n<p class=\"MsoNormal\">*cfclos<\/p>\n<p class=\"MsoNormal\">!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p class=\"MsoNormal\">The simulation in itself takes less than a second, as the model is very light (around 12k nodes, shell181 elements, one step and simple load), but the export (the selection has around 10k nodes) takes more than 15min on a cluster with loads of ram and cpus.<\/p>\n<p class=\"MsoNormal\">I have a large amount of such simulation to carry, and I can&#8217;t understand how outputing 10k nodes can take that much time when the simulation itself wrote it in the .rst file in less than a second.<\/p>\n<p class=\"MsoNormal\">If you know a better way for outputs I&#8217;m listening, as I&#8217;m kinda stucked.<\/p>\n<p class=\"MsoNormal\">Sebastien<\/p>\n","protected":false},"template":"","class_list":["post-318041","topic","type-topic","status-closed","hentry","topic-tag-post1-1","topic-tag-output-files-and-saving"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hi, I&#039;m trying to export results in .csv format, from a static simulation.I&#039;ve struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = &#039;out_node_U_s_1_LAST_post.csv&#039;*cfopen,csv_name*cfwrite,&#039;node_num&#039;,S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Data export from simulation way too slow | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi, I&#039;m trying to export results in .csv format, from a static simulation.I&#039;ve struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = &#039;out_node_U_s_1_LAST_post.csv&#039;*cfopen,csv_name*cfwrite,&#039;node_num&#039;,S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-11-16T16:14:29+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-11-16T16:14:29+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Data export from simulation way too slow | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi, I&#039;m trying to export results in .csv format, from a static simulation.I&#039;ve struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = &#039;out_node_U_s_1_LAST_post.csv&#039;*cfopen,csv_name*cfwrite,&#039;node_num&#039;,S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/data-export-from-simulation-way-too-slow\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/\\\/post1-1\\\/#listItem\",\"name\":\"\\\/post1\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/\\\/post1-1\\\/#listItem\",\"position\":3,\"name\":\"\\\/post1\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/\\\/post1-1\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/data-export-from-simulation-way-too-slow\\\/#listItem\",\"name\":\"Data export from simulation way too slow\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/data-export-from-simulation-way-too-slow\\\/#listItem\",\"position\":4,\"name\":\"Data export from simulation way too slow\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/\\\/post1-1\\\/#listItem\",\"name\":\"\\\/post1\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/data-export-from-simulation-way-too-slow\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/data-export-from-simulation-way-too-slow\\\/\",\"name\":\"Data export from simulation way too slow | Ansys Learning Forum\",\"description\":\"Hi, I'm trying to export results in .csv format, from a static simulation.I've struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\\\/POST1RSYS,0SET,1,LASTcsv_name = 'out_node_U_s_1_LAST_post.csv'*cfopen,csv_name*cfwrite,'node_num',S11,S22,S33,S12,S13,S23,SEQV\\\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/data-export-from-simulation-way-too-slow\\\/#breadcrumblist\"},\"datePublished\":\"2023-11-16T16:14:29+00:00\",\"dateModified\":\"2023-11-16T16:14:29+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Data export from simulation way too slow | Ansys Learning Forum","description":"Hi, I'm trying to export results in .csv format, from a static simulation.I've struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = 'out_node_U_s_1_LAST_post.csv'*cfopen,csv_name*cfwrite,'node_num',S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/\/post1-1\/#listItem","name":"\/post1"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/\/post1-1\/#listItem","position":3,"name":"\/post1","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/\/post1-1\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/#listItem","name":"Data export from simulation way too slow"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/#listItem","position":4,"name":"Data export from simulation way too slow","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/\/post1-1\/#listItem","name":"\/post1"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/","name":"Data export from simulation way too slow | Ansys Learning Forum","description":"Hi, I'm trying to export results in .csv format, from a static simulation.I've struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = 'out_node_U_s_1_LAST_post.csv'*cfopen,csv_name*cfwrite,'node_num',S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/#breadcrumblist"},"datePublished":"2023-11-16T16:14:29+00:00","dateModified":"2023-11-16T16:14:29+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Data export from simulation way too slow | Ansys Learning Forum","og:description":"Hi, I'm trying to export results in .csv format, from a static simulation.I've struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = 'out_node_U_s_1_LAST_post.csv'*cfopen,csv_name*cfwrite,'node_num',S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/","article:published_time":"2023-11-16T16:14:29+00:00","article:modified_time":"2023-11-16T16:14:29+00:00","twitter:card":"summary_large_image","twitter:title":"Data export from simulation way too slow | Ansys Learning Forum","twitter:description":"Hi, I'm trying to export results in .csv format, from a static simulation.I've struggled to understand how to achieve that, but after looking around in various forum I came up with that bit of code:!--------------------------------------------------------------------------\/POST1RSYS,0SET,1,LASTcsv_name = 'out_node_U_s_1_LAST_post.csv'*cfopen,csv_name*cfwrite,'node_num',S11,S22,S33,S12,S13,S23,SEQV\/POST1allselcmsel,s,N_POST,NODE *vget,nodeIds_sel,NODE,,NLIST*get,nNodes,NODE,0,COUNT*do,i_noeud,1,nNodes,1 no_node=nodeIds_sel(i_noeud) nsel,s,node,,no_node *get,variable_S11,NODE,no_node,S,X *get,variable_S22,NODE,no_node,S,Y *get,variable_S33,NODE,no_node,S,Z *get,variable_S12,NODE,no_node,S,XY *get,variable_S13,NODE,no_node,S,XZ *get,variable_S23,NODE,no_node,S,YZ *get,variable_SEQV,NODE,no_node,S,EQV *cfwrite, %no_node%,variable_S11,variable_S22,variable_S33,variable_S12,variable_S13,variable_S23,variable_SEQV *enddo*cfclos!-------------------------------------------------------------------------- The simulation in itself takes less than a second,"},"aioseo_meta_data":{"post_id":"318041","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 17:33:16","updated":"2024-10-28 17:33:16","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/\/post1-1\/\" title=\"\/post1\">\/post1<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tData export from simulation way too slow\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"\/post1","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/\/post1-1\/"},{"label":"Data export from simulation way too slow","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/data-export-from-simulation-way-too-slow\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["58345","5977"],"_bbp_author_ip":["23.206.193.146"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["612"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["318041"],"_bbp_forum_id":["27791"],"_bbp_engagement":["5977","58345"],"_bbp_voice_count":["2"],"_bbp_reply_count":["5"],"_bbp_last_reply_id":["318628"],"_bbp_last_active_id":["318628"],"_bbp_last_active_time":["2023-11-20 16:19:07"]},"test":"sebastien-arrivetjimmy-energy-eu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/318041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/318041\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=318041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}