|
[Sponsors] |
December 15, 2017, 04:49 |
how to output reslut along multiple lines
|
#1 |
New Member
Bingchuan
Join Date: Dec 2017
Posts: 16
Rep Power: 8 |
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 04:47. |
|
December 15, 2017, 09:50 |
|
#2 |
New Member
Join Date: Oct 2017
Location: Germany
Posts: 26
Rep Power: 9 |
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, 11:51 |
|
#3 |
Member
Bruno Lebon
Join Date: Dec 2012
Posts: 33
Rep Power: 13 |
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, 04:39 |
|
#4 |
New Member
Bingchuan
Join Date: Dec 2017
Posts: 16
Rep Power: 8 |
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, 04:42 |
|
#5 |
New Member
Bingchuan
Join Date: Dec 2017
Posts: 16
Rep Power: 8 |
||
December 19, 2017, 05:23 |
|
#6 |
Member
Bruno Lebon
Join Date: Dec 2012
Posts: 33
Rep Power: 13 |
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 } |
|
December 19, 2017, 06:48 |
|
#7 | |
New Member
Bingchuan
Join Date: Dec 2017
Posts: 16
Rep Power: 8 |
Quote:
Thank you Bruno. Bests, Bingchuan |
||
September 16, 2020, 12:08 |
fatal error with singleGraph1
|
#8 |
New Member
Join Date: Mar 2019
Location: Mexico
Posts: 8
Rep Power: 7 |
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. |
|
November 1, 2021, 11:27 |
Solution
|
#9 |
New Member
Join Date: Jul 2021
Posts: 1
Rep Power: 0 |
This was over two years ago, but for the future Bingchuan's solution does work if you have two files labeled singleGraph1 and singleGraph2 in your system directory. You can actually do this with infinitely many single graphs (I have tested up to 50).
|
|
Tags |
line, singlegraph |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
[General] paraview. plot selection over time. multiple lines | Svensen | ParaView | 0 | August 26, 2017 03:48 |
[OpenFOAM.org] Install openFOAM 3.0.1 in Ubuntu 16.04 LTS from Deb packs | Pier84 | OpenFOAM Installation | 4 | June 18, 2016 17:22 |
[PyFoam] what is the unused output? | leroyv | OpenFOAM Community Contributions | 4 | July 4, 2014 05:55 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |