|
[Sponsors] |
November 20, 2019, 05:34 |
How to print the cell value row wise?
|
#1 |
Member
FaRa
Join Date: Jul 2019
Posts: 33
Rep Power: 6 |
Hello everyone,
I want to print the volume fraction values (alpha) of each cell and print them in row wise. As fur as I know Openfoam calculates the whole domain during each iteration. But I want to have the values of 0.078x0.06 portion of the domain only during my simulation. Something in C programming like... Code:
for (i=0; i<0.078; i++) { for (j=0; j<0.06; j++) { printf("%f ", alpha[j]); } printf("\n"); } |
|
November 29, 2019, 00:15 |
|
#2 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15 |
Can you please specify what you mean. Do you want OpenFOAM to only calculate a certain region of the domain at each time step? Or do you want the values in a certain region be printed to the terminal? Or something else?
|
|
December 22, 2019, 12:00 |
|
#3 |
Member
FaRa
Join Date: Jul 2019
Posts: 33
Rep Power: 6 |
Thank you for your reply.
Actually I want the second case that you have mentioned. I want the values of a certain region, specifically for the area 0.078x0.06 for post processing only. |
|
December 22, 2019, 22:37 |
|
#4 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15 |
You can define a probe in each of the cells to get time histories of your alpha.
|
|
December 26, 2019, 19:24 |
|
#5 |
Member
FaRa
Join Date: Jul 2019
Posts: 33
Rep Power: 6 |
Thank you for your reply.
Can you please explain a bit more on how to implement it? |
|
December 27, 2019, 03:13 |
|
#6 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 15 |
Well, search this forum the tutorials and/or the user guide and you will find explanation there immediately.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set cell volume integrated field values to preserve integral | Diro7 | OpenFOAM Pre-Processing | 2 | June 3, 2018 10:44 |
Doubt about parallel processing | vishwesh | OpenFOAM Programming & Development | 0 | November 10, 2017 06:20 |
Partition: cell count = 0 | metmet | FLUENT | 1 | August 31, 2014 19:41 |
monitoring cell | Jane | Siemens | 2 | March 4, 2004 21:01 |
cell to cell relation | CMB | Siemens | 1 | December 4, 2003 04:05 |