How to adress boundary patch from another region in chtMultiRegionFoam?
Hello,
I am simulating a heat transfer model which includes one fluid region and one solid region, using the solver chtMultiRegionFoam in OFv8. The boundary condition codedFixedValue is used for the temperature setting of one fluid region patch A. I need to access the temperature feld of another fluid region patch B and the wallHeatFlux feld of one solid region patch C. It has worked wonderful with following code to read the temperature feld of patch B in fluid region: Code:
The question is:
Anyone has an idea how to solve this problem would be very appreciated, thanks. :) |
Hi there,
I managed to find a solution to the problem. (Tested with a fixedValue BC in region fluid). Basically you can access the mesh of a different region (i.e. solid) by creating a pointer: Code:
const fvMesh &solidFvMesh = Code:
const volScalarField &solidT = Code:
solidFvMesh.thisDb().lookupObject<IOdictionary>("thermophysicalProperties") |
All times are GMT -4. The time now is 23:35. |