Is there a way to access fvMesh of neighbor region from coupled pointPatch?
I'm trying to couple interface points by moving the points at the interface which is shared by two regions simultaneously. (Actually, the shared nodes are two group of nodes, just share the locations)
since I'm moving the nodes, start from the pointPatch will be easier. Now my problems is I cannot access the neighbor region's fvMesh from pointPatch.
turbulentTemperatureCoupledBaffleFvPatchScalarFiel d.H is a good example of doing similar work, but it is on fvPatch level.
Its probably better to do this at a higher level, so that fluxes, etc are calculated correctly. You can do that via the mesh.movePoints member. Look at patchToPatchInterpolation to see how it can be done.
I make it happen by giving the regions names through boundary conditions which will be used to find out meshes in neighbour regions as
const dynamicFvMesh & locMesh = mesh.objectRegistry:: parent().lookupObject<dynamicFvMesh>(locRegionName _);
const dynamicFvMesh & nbrMesh = mesh.objectRegistry:: parent().lookupObject<dynamicFvMesh>(nbrRegionName _);
// update boundary patches
// sd is the moving distance of those shared nodes
the test shows it works nice, and the local region's node locations are updated, but I found the node's location is not updated at all in the neighbour region.
|All times are GMT -4. The time now is 03:34.|