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

Interpolate face velocitys to points

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2014, 05:51
Default Interpolate face velocitys to points
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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();
But I get stuck on that. I also found that thread http://www.cfd-online.com/Forums/ope...polypatch.html but I did not get the point.

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
Tobi is offline   Reply With Quote

Old   December 16, 2014, 08:19
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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);
I refer to that page: http://www.cfd-online.com/Forums/ope...tml#post447552
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
[snappyHexMesh] crash sHM H25E OpenFOAM Meshing & Mesh Conversion 11 November 10, 2014 11:27
[mesh manipulation] face points functions virginie_e OpenFOAM Meshing & Mesh Conversion 0 March 23, 2009 10:39
Creating a face 100s of of vertex points? David Banks Main CFD Forum 0 July 6, 2007 04:45
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


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