|
[Sponsors] |
December 16, 2014, 06:51 |
Interpolate face velocitys to points
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hey all,
as in the headings, I want to interpolate the face centre velocitys of a boundary to the boundary points. I know that there is the following function: Code:
faceToPointInterpolate(); What I have is a vectorField with the size of boundary points and I want to interpolate the face centred velocitys to the points. How can I do this? For those who wondering why I need it. Its easy because the "pointMotionU" need the velocitys on each point to move the mesh.
__________________
Keep foaming, Tobias Holzmann |
|
December 16, 2014, 09:19 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Done!
Code:
const volVectorField& U_ = this->db().lookupObject<volVectorField>("U"); //- PatchID const label patchID = U_.mesh().boundaryMesh().findPatchID("top"); //- set-up interpolator primitivePatchInterpolation patchInterpolator ( U_.mesh().boundaryMesh()[patchID] ); //- vectorField UFaceValues_ = U_.boundaryField()[patchID]; //- Perform interpolation vectorField UPointValues = patchInterpolator.faceToPointInterpolate(UFaceValues);
__________________
Keep foaming, Tobias Holzmann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] dynamicTopoFVMesh and pointDisplacement | RandomUser | OpenFOAM Meshing & Mesh Conversion | 6 | April 26, 2018 08:30 |
[snappyHexMesh] crash sHM | H25E | OpenFOAM Meshing & Mesh Conversion | 11 | November 10, 2014 12:27 |
[mesh manipulation] face points functions | virginie_e | OpenFOAM Meshing & Mesh Conversion | 0 | March 23, 2009 11:39 |
Creating a face 100s of of vertex points? | David Banks | Main CFD Forum | 0 | July 6, 2007 05:45 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |