CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

patchToPatch interpolation on 2D mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2017, 13:05
Default patchToPatch interpolation on 2D mesh
  #1
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9
dariodario32 is on a distinguished road
Hi,

I'm trying to use the patchToPatch interpolation to map fields in a FSI solver at the interface between a solid and fluid with non-conformed mesh. The problem is that the mesh of the structure is a 2D mesh, thus it can't be declared in OpenFOAM as it is. How I can get around this?

Thanks
dariodario32 is offline   Reply With Quote

Old   October 19, 2017, 11:12
Default
  #2
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9
dariodario32 is on a distinguished road
So far I managed to code the interpolator:

Quote:
patchToPatchInterpolation fromFluid_To_Solid_Interpolate
(
mesh.boundaryMesh()[fluidPatchID], // from patch
meshSolid.boundaryMesh()[fluidPatchID] // to patch
);
Then I started creating the solid interface patch:

Quote:
Foam::fvMesh meshSolid
(
Foam::IOobject
(
Foam::fvMesh::defaultRegion,
runTime.constant(),
runTime,
Foam::IOobject::NO_READ
)
);

meshSolid.points() == pointsSolid;
meshSolid.boundaryMesh()[solidPatchID] == cellsSolid;

by the way the points and cells in the "meshSolid" appear to be the same of the standard "mesh", even thought i set NO_READ in the constructor.
Could you give me an hint please?

Thanks
dariodario32 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Snappyhex mesh: poor inlet mesh Swagga5aur OpenFOAM Meshing & Mesh Conversion 1 December 3, 2016 16:59
Star CCM Overset Mesh Error (Rotating Turbine) thezack Siemens 7 October 12, 2016 11:14
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 23:35.