CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to read boudary conditon setting in functionObject? (https://www.cfd-online.com/Forums/openfoam-programming-development/199499-how-read-boudary-conditon-setting-functionobject.html)

fxzf March 7, 2018 12:56

How to read boudary conditon setting in functionObject?
 
Hi,

I am developing a functionObject, in which some part of function is dependent on boundary conditions' setting. For example, when It work on externalWallHeatFluxTemperature patch, I need to know this patch is setting as which mode (power, flux, or heatTransferCoeff).

So I will need some like the following
......
Temperature.boundary()[patchi].lookup......('mode')

However, it looks like these settings on boundary is not registried, so I don't know if there is a way to read it out in functionObject during simulation.

Can anyone help me on this?

Thanks very much.


All times are GMT -4. The time now is 18:10.