View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000777OpenFOAM[All Projects] Bugpublic2013-03-13 12:182013-03-13 12:18
Reporterdhora 
Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
StatusnewResolutionopen 
PlatformOSOS Version
Product Version2.2.x 
Target VersionFixed in Version 
Summary0000777: csv output format for functionObjects
DescriptionThe functionObjects use different output formats. CSV files would be much more convenient for the generation of plots and the monitoring of the simulations. Only small changes would be necessary. Example for the forces functionObject:

//file() << obr_.time().value() << tab
// << "(" << sum(force_[0]) << "," << sum(force_[1]) << ") "
// << "(" << sum(moment_[0]) << "," << sum(moment_[1]) << ")"
// << endl;

file() << obr_.time().value() << ", "
       << sum(force_[0])[0] << ", " << sum(force_[0])[1] << ", " << sum(force_[0])[2] << ", "
       << sum(force_[1])[0] << ", " << sum(force_[1])[1] << ", " << sum(force_[1])[2] << ", "
       << sum(moment_[0])[0] << ", " << sum(moment_[0])[1] << ", " << sum(moment_[0])[2] << ", "
       << sum(moment_[1])[0] << ", " << sum(moment_[1])[1] << ", " << sum(moment_[1])[2]
       << endl;


It's not a major issue, just a proposal.

Best regards
David

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-03-13 12:18 dhora New Issue