|
[Sponsors] |
Is there a way to access fvMesh of neighbor region from coupled pointPatch? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 16, 2012, 22:55 |
Is there a way to access fvMesh of neighbor region from coupled pointPatch?
|
#1 |
Member
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 64
Rep Power: 16 |
Hi,
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. |
|
December 16, 2012, 23:15 |
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
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.
|
|
December 17, 2012, 14:47 |
|
#3 | |
Member
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 64
Rep Power: 16 |
Quote:
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 vectorField:: operator=(sd);//locPatch const_cast<dynamicMultiRegionPointPatchCoupled&> ( nbrField ).vectorField:: operator=(sd);//nbrPatch // 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. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting access to mesh (fvMesh) via object registry | Chris Lucas | OpenFOAM Programming & Development | 18 | January 15, 2024 03:57 |
Coupled 1D/3D STAR-CD Training | CD adapco Group Marketing | Siemens | 1 | November 13, 2002 16:48 |