|
[Sponsors] |
April 9, 2014, 17:30 |
Build up ones' own interpolation method
|
#1 |
New Member
Wei Liu
Join Date: Apr 2011
Location: West Lafayette, IN
Posts: 29
Rep Power: 15 |
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 |
|
|
|
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 |