# how to output reslut along multiple lines

 Register Blogs Members List Search Today's Posts Mark Forums Read

 December 15, 2017, 03:49 how to output reslut along multiple lines #1 New Member   Bingchuan Join Date: Dec 2017 Posts: 16 Rep Power: 4 Hi, As we know, we can output results along a line using function singleGraph. We can define the start and end points in it. My question is how to output the results along multiple lines? Can I modify the singleGraph file like: ..... start (x11, y11,z11); end (x12,y12,z12); fileds (U p); start (x21,y21,z21); end (x22,y22,z22); fileds (U p); ... where (x1i, y1i, z1i) are the start and end of the first line, (x2i, y2i, z2i) are the start and end of the second line. Thanks. Bingchuan Last edited by bingchuan; December 19, 2017 at 03:47.

 December 15, 2017, 08:50 #2 New Member   Join Date: Oct 2017 Location: Germany Posts: 26 Rep Power: 5 Just extract the data of 2 different plots in .csv file and then import in excel. In excel, you can combine both the graphs in a single figure. Regards, Rajan

 December 15, 2017, 10:51 #3 Member   Bruno Lebon Join Date: Dec 2012 Posts: 31 Rep Power: 9 This is the sort of thing that can be easily implemented in Python. Read the outputs from multiple line graphs and concatenate them.

 December 19, 2017, 03:39 #4 New Member   Bingchuan Join Date: Dec 2017 Posts: 16 Rep Power: 4 Thanks Rajan. Thanks Bruno. Sorry, I didn't clarify my question clearly. I was doing an unsteady simulition. Since the computational dimain is three dimensional, so I am going to write the results of the whole computional domain in large time interval. But the results along some lines need to be monitored during small time interval (e.g. line 1 and 2 in the sketch). So it is improssblie to extract data from the whole domain like Rajan said. I planed to use the function objects singleGraph included by the "casedir/system/controlDict" , i.e. ... funcitons { #includeFunc singleGraph } ... as recommend by https://cfd.direct/openfoam/user-gui...hs-monitoring/. It works when sampling data along a line. However, I don't know how to sample data along a few lines just like line 1 and 2 in the sketch above. Bests, Bingchuan

 December 19, 2017, 03:42 #5 New Member   Bingchuan Join Date: Dec 2017 Posts: 16 Rep Power: 4 Sorry, I failed to upload the sketch. You can go to https://pan.baidu.com/s/1dEP3X7N

 December 19, 2017, 04:23 #6 Member   Bruno Lebon Join Date: Dec 2012 Posts: 31 Rep Power: 9 You need two simpleGraphs in your system directory. Just rename the template files to different file names, for example simpleGraph1 and simpleGraph2 and then include them in the controlDict. functions { #includeFunc singleGraph1 #includeFunc singleGraph2 } hwangpo, rakesh927, thalhah90 and 4 others like this.

December 19, 2017, 05:48
#7
New Member

Bingchuan
Join Date: Dec 2017
Posts: 16
Rep Power: 4
Quote:
 Originally Posted by blebon You need two simpleGraphs in your system directory. Just rename the template files to different file names, for example simpleGraph1 and simpleGraph2 and then include them in the controlDict. functions { #includeFunc singleGraph1 #includeFunc singleGraph2 }
It works.
Thank you Bruno.

Bests,
Bingchuan

 September 16, 2020, 11:08 fatal error with singleGraph1 #8 New Member   Join Date: Mar 2019 Location: Mexico Posts: 5 Rep Power: 3 I used the @blebon strategy but singleGraph1 is not a "type" that is allowed. Therefore, it is a fatal error. @Bingchuan you succeeded is your task? I'm trying to do the same thing.

 Tags line, singlegraph