cellValues within a cellZone
Hi,
I am using OpenFOAM-8. I want to get a file printed out at the writeTime containing specific field values for every cell within a cellZone. I specifically want to get the CO2 concentrations of each cell within the zone to use in a performance metric. I have the cellZone and the CO2 source defined and I am able to get the average CO2 concentration for the cellZone but I am unable to get the CO2 values for each cell. Does anyone know how to achieve this? Is there a functionObject that allows me to print out the cellValues for certain fields for each cell in a cellZone? Kind regards, Ben |
Hi Ben Simpson,
Here is a piece of code that can help you Code:
BenSimpsonFunction |
All times are GMT -4. The time now is 18:34. |