|
[Sponsors] |
March 29, 2023, 02:54 |
how to write dynamic list into excel file
|
#1 |
New Member
Parth
Join Date: Feb 2021
Posts: 14
Rep Power: 5 |
Hi
i have created a dynamic list in my solver and after the computations are completed i need to write this list of scalar in excel file or txt file pls help |
|
March 29, 2023, 03:20 |
|
#2 | |
New Member
Parth
Join Date: Feb 2021
Posts: 14
Rep Power: 5 |
Quote:
void out_it(Foam:ynamicList<float> bla,string outpit) { std:fstream output; output.open(outpit); for (label j=0; j < bla.size(); j++) { output << bla[j]; output << "\n"; } output.close(); } then after at the bottom of solver just before return i used this function here bla is ur dynamics list and outpit is the name of file in which you want ur output eg - "output.txt" etc this post helped me alotWriting/output of simple data into an ASCII-File |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
[OpenFOAM.com] swak4foam compiling issues on a cluster | saj216 | OpenFOAM Installation | 5 | January 17, 2023 17:05 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 19:13 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |