|
[Sponsors] |
July 23, 2019, 11:54 |
GGI weighted interpolation on fields
|
#1 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
Hello everybody
GGI weighted interpolation seems to be used for fluxes on master and shadow patches on an interface but I would like instead to apply it to an electric field displaying a discontinuity at the interface. All I'm asking is where this function resides in the foam extend code so that I can call it using the electric field as parameter. Any response would be greatly appreciated. Best, Marc |
|
July 24, 2019, 16:17 |
GGI weighted interpolation on fields
|
#2 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
Well, after some detective work using Linux commands grep and find, I discovered that the Sutherland-Hodgman algorithm resides in file SutherlandHodgman.C in folder
./foam-extend-4.0/src/foam/algorithms/polygon/clipping/ and that file GGIInterpolation.C resides in folder /.foam-extend-4.0/src/foam/interpolations/GGIInterpolation/ that same file has 4 includes after the end of namespace Foam: # include "GGIInterpolationPolygonIntersection.C" # include "GGIInterpolationQuickRejectTests.C" # include "GGIInterpolationWeights.C" # include "GGIInterpolate.C" also residing in the same folder In GGIInterpolationPolygonIntersection.C , is a call to the Sutherland-Hodgman algorithm Hopefully, I should be very close to plugging in the desired electric field. Perhaps, somebody can now shed me some light in this quest Thanks, Marc |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GGI interpolation issues with foam-extend3.2 | BiomechanicsBath | OpenFOAM Running, Solving & CFD | 3 | September 21, 2019 01:26 |
steadyUniversalMRFFoam Tutorial fails in MixingPlane | HenrikJohansson | OpenFOAM Bugs | 0 | February 14, 2019 04:48 |
Create a GeometricField of a given type on given patch? | philippose | OpenFOAM Programming & Development | 4 | August 12, 2013 12:41 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 11:25 |
an odd(at least for me!) reconstructPar error on a field | immortality | OpenFOAM Running, Solving & CFD | 3 | June 3, 2013 22:36 |