Fahmida |
November 20, 2019 05:34 |
How to print the cell value row wise?
1 Attachment(s)
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");
}
Thank you
|