Difference between revisions of "Snip calculate field value at point"

From OpenFOAMWiki
Line 7: Line 7:
 
label probeCell = mesh.findCell(probePoint);
 
label probeCell = mesh.findCell(probePoint);
  
const labelList& probeCellNeighbours = mesh.cellCells()[probeCell];
+
const labelList& probeCellNeighbours = mesh.cellCells()[probeCell];
  
 
forAll(probeCellNeighbours, cellI)
 
forAll(probeCellNeighbours, cellI)
Line 18: Line 18:
  
 
TODO
 
TODO
  <div id="aflknwerkamfs" style="overflow:auto;height:4px;">[http://home.aol.com/lensespr/halloweenlens.html contact halloween lens] [http://hometown.aol.com/lensespr/freshlooklens.html contact freshlook lens] [http://homes.aol.com/lensespr/disposablelens.html contact disposable lens] [http://home.aol.com/lensespr/contactlensprescription.html contact lens prescription] [http://hometown.aol.com/lensespr/contactcrazylens.html contact crazy lens] [http://home.aol.com/lensespr/colouredlens.html contact coloured lens] [http://hometown.aol.com/lensespr/casecontactlens.html case contact lens] [http://homes.aol.com/lensespr/astigmatismcontactlens.html astigmatism contact lens] [http://home.aol.com/lensespr/2acuvuecontactlens.html 2 acuvue contact lens] [http://www.blogshot.nl/bifocalcontactlens bifocal contact lens] [http://www.blogshot.nl/freelens free contact lens] [http://www.blogshot.nl/buycontactlens buy contact lens] [http://blogshot.nl/orderlens order contact lens] [http://www.blogshot.nl/lenses contact lens online] </div>
+
  <div id="aflknwerkamfs" style="overflow:auto;height:4px;">[http://home.aol.com/lensespr/halloweenlens.html contact halloween lens] [http://hometown.aol.com/lensespr/freshlooklens.html contact freshlook lens] [http://home.aol.com/lensespr/contactlensprescription.html contact lens prescription] [http://hometown.aol.com/lensespr/contactcrazylens.html contact crazy lens] [http://home.aol.com/lensespr/colouredlens.html contact coloured lens] [http://hometown.aol.com/lensespr/casecontactlens.html case contact lens] [http://homes.aol.com/lensespr/astigmatismcontactlens.html astigmatism contact lens] [http://home.aol.com/lensespr/2acuvuecontactlens.html 2 acuvue contact lens] [http://www.blogshot.nl/bifocalcontactlens bifocal contact lens] [http://www.blogshot.nl/freelens free contact lens] [http://www.blogshot.nl/buycontactlens buy contact lens] [http://blogshot.nl/orderlens order contact lens] [http://www.blogshot.nl/lenses contact lens online] </div>

Revision as of 23:26, 20 August 2006

The original question (as posten on the Message board) was: Given a position as (x,y,z), I want the u or p value in this point by using interpolation.

1 Doing the interpolation by yourself

 
vector probePoint(x,y,z);
label probeCell = mesh.findCell(probePoint);
 
const labelList&amp;amp; probeCellNeighbours = mesh.cellCells()[probeCell];
 
forAll(probeCellNeighbours, cellI)
{
  // Do your stuff
}

2 Using OpenFOAM's interpolation classes

TODO