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

Build up ones' own interpolation method

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2014, 17:30
Default Build up ones' own interpolation method
  #1
New Member
 
Wei Liu
Join Date: Apr 2011
Location: West Lafayette, IN
Posts: 29
Rep Power: 15
mathslw is on a distinguished road
Dear Foamers,

As I know, if I want to interpolate the value at an arbitrary point inside a cell, I can use:

dictionary interpolationDict = mesh.solutionDict().subDict("interpolationSchemes" );
autoPtr<interpolation<vector> > Uinterp = interpolation<vector>::New(interpolationDict, U);
vector UU = Uinterp->interpolate(pos, cellindex)

where pos is the position of the point and cellindex is cell index.
To do this, we can define the interpolation method such as cellPoint, cellPointFace in the fvSolution file.

My question is, can I build up my own interpolation method and make it usable in OpneFOAM?

Thanks in advance!

Wei
mathslw 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
addCmptAvBoundaryDiag method santiagomarquezd OpenFOAM Programming & Development 3 December 26, 2020 08:29
Pressure Velocity Coupling using Moment Interpolation method gerardosrez Main CFD Forum 2 January 18, 2011 12:31
Implicit iterative Gauss-Seidel method dearboy Main CFD Forum 5 November 29, 2010 09:18
Multigrid method Suresh kumar Main CFD Forum 1 April 24, 2006 20:07
Interpolation for ghost cell help zonexo Main CFD Forum 0 March 11, 2006 20:03


All times are GMT -4. The time now is 15:19.