CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Specify filename for postProcess function output file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2020, 17:36
Default Specify filename for postProcess function output file
  #1
det
New Member
 
Daniel Thomas
Join Date: Mar 2020
Posts: 10
Rep Power: 6
det is on a distinguished road
I'm using the postProcess function singleGraph to generate the profiles I need for plotting. It is convenient to have multiple profiles in the same .csv file, but I end up with an awkwardly long file name: "line_T_NO_NO2_N2O_NH3_NH2_NH_H2_H_OH_H2O_O_O2_NNH _HO2_H2O2.csv" for the code below.

Is there an option to specify the output filename? (Of course, I can rename it afterwards, but it seems like this should be something I can specify in my singleGraph definition file.)

Code:
start   (0 0 0);
end     (0 0 0.2);
fields  (T U NO NO2 N2O NH3 NH2 NH H2 H OH H2O O O2 NNH HO2 H2O2);

#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"

writeControl         writeTime;  //timeStep, writeTime,
outputInterval	     last;
interpolationScheme  cellPoint;
setFormat            csv;

setConfig
{
    type lineCell;
    axis z;        // y, z, xyz
}


#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"

// ************************************************************************* //
det is offline   Reply With Quote

Old   August 11, 2023, 14:24
Default
  #2
New Member
 
Abel Bonfil Garcia
Join Date: Mar 2023
Posts: 2
Rep Power: 0
Abonfil04 is on a distinguished road
Hi det.

I know this is a old post, but i wanto to know if can find a solution for your problem?

Abonfil
Abonfil04 is offline   Reply With Quote

Old   August 11, 2023, 14:54
Default
  #3
det
New Member
 
Daniel Thomas
Join Date: Mar 2020
Posts: 10
Rep Power: 6
det is on a distinguished road
I've continued to just rename the .csv files manually. So please let me know if you find a solution.
det is offline   Reply With Quote

Reply

Tags
postprocess function, singlegraph


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41


All times are GMT -4. The time now is 10:36.