CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

GGI weighted interpolation on fields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2019, 11:54
Default GGI weighted interpolation on fields
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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
celestial is offline   Reply With Quote

Old   July 24, 2019, 16:17
Default GGI weighted interpolation on fields
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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
celestial is offline   Reply With Quote

Reply


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


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


All times are GMT -4. The time now is 01:14.