|
[Sponsors] |
How to make a mapper that takes nearest vertex instead of interpolating? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 25, 2017, 06:10 |
How to make a mapper that takes nearest vertex instead of interpolating?
|
#1 |
New Member
Lukas Lebovitz
Join Date: Mar 2017
Location: Zürich, Switzerland
Posts: 25
Rep Power: 9 |
Hi Foamers
I'm modifying an InletGenerator that currently uses a mapper to interpolate values from a virtual Grid onto the mesh at the inlet. Code:
// mapper is created like this for mapping Virtual Field to Patch Field mapperVP_Ptr_.reset ( new pointToPointPlanarInterpolation ( virtualGridPoints_, this->patch().patch().faceCentres(), perturb_ ) ); // it is used like this uFluctFiltered = mapperVP_Ptr_().interpolate(virtualFilteredField_); Thanks so much! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
OpenFOAM with IBM AIX | matthias | OpenFOAM Installation | 20 | March 25, 2008 03:36 |
a way to make lots of money quick and easy no lies | Dob | Main CFD Forum | 0 | October 10, 2006 17:45 |
FOAM installation error gcc amp g | hanks | OpenFOAM Installation | 9 | January 26, 2006 15:14 |