# Interpolation on a curved patch

 Register Blogs Members List Search Today's Posts Mark Forums Read

 September 5, 2012, 21:58 Interpolation on a curved patch #1 Senior Member   Fumiya Nozaki Join Date: Jun 2010 Location: Yokohama, Japan Posts: 217 Blog Entries: 1 Rep Power: 11 Hi, I want to calculate values at points on a patch by interpolation using only the boundaryField values (not using internalField values at all). My target patch is a *curved* surface (not a plane) and the values at the nodal points on this patch are known. Is it possible to do above interpolation in OpenFOAM? If so, which utility should I use? Regards, Fumiya

 September 6, 2012, 03:29 #2 Senior Member     Philip Cardiff Join Date: Mar 2009 Location: Dublin, Ireland Posts: 638 Rep Power: 23 Hi Fumiya, you could use the primitivePatchInterpolation class. This class allows interpolation of data from patch face centre to patch points (and vice-versa). Here is an example: Code: ```//- find label of patch label patchID = mesh.boundaryMesh().findPatchID("patchOfInterest"); if(patchID == -1) { FatalError << "Patch not found!" << exit(FatalaError); } //- create interpolator primitivePatchInterpolation myPatchInterpolator(mesh.boundaryMesh()[patchID]); //- perform interpolation of vectorField U from patch faces to points vectorField patchUAtPoints = myPatchInterpolator.faceToPointInterpolate ( U.boundaryField()[patchID] );``` Place the line #include "primitivePatchInterpolation.H" at the top of your program under #included "fvCFD.H". The primitivePatchInterpolation class uses the inverse-distance method to interpolate the data, so it is quite accurate on orthogonal grids but can have errors on meshes with considerably skewed/non-orthgonal faces/cells. Hope it helps, Philip

 September 11, 2012, 06:29 #3 Senior Member   Fumiya Nozaki Join Date: Jun 2010 Location: Yokohama, Japan Posts: 217 Blog Entries: 1 Rep Power: 11 Hi Philip, Thank you for your information. I'll give it a try. Thanks, Fumiya

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 04:04 Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38 ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34 adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19 Andrea CFX 2 October 11, 2004 05:12

All times are GMT -4. The time now is 21:13.