CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Build up ones' own interpolation method

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

LinkBack Thread Tools Display Modes
Old   April 9, 2014, 17:30
Default Build up ones' own interpolation method
New Member
Wei Liu
Join Date: Apr 2011
Location: West Lafayette, IN
Posts: 28
Rep Power: 8
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!

mathslw is offline   Reply With Quote


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
addCmptAvBoundaryDiag method santiagomarquezd OpenFOAM Programming & Development 2 March 21, 2014 07:36
Pressure Velocity Coupling using Moment Interpolation method gerardosrez Main CFD Forum 2 January 18, 2011 13:31
Implicit iterative Gauss-Seidel method dearboy Main CFD Forum 5 November 29, 2010 10: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 21:03

All times are GMT -4. The time now is 17:04.