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

How to access the field of weighting factor of interpolations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2012, 23:46
Default How to access the field of weighting factor of interpolations
  #1
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi,

I'd like to access and use the weighting factor used in interpolations.
When I use the setting "interpolate(U) linear", I'd like to access the
weighting factor w in the following equation:

U_f = w*U_P + (1-w)*U_N

Could you tell me how to access the field(maybe surfaceScalarField)
of the weighting factor for the interpolation schemes defined in fvSchemes?

Thanks in advance,
Fumiya
fumiya is offline   Reply With Quote

Old   November 16, 2012, 05:43
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
For linear interpolation "mesh.surfaceInterpolation::weights()" should work (surfaceScalarField).

Regards,


Lieven
Lieven is offline   Reply With Quote

Old   November 16, 2012, 08:33
Default
  #3
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Thank you for your reply. That works fine for linear interpolation.
Is there a more general way to access weighting factors for other
interpolation schemes different from the central differencing?

Thank you for your help,
Fumiya
fumiya 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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Performance of GGI case in parallel hannes OpenFOAM Running, Solving & CFD 26 August 3, 2011 04:07
Access to Domain Pressure Field or mesh ar_mofidi OpenFOAM 0 April 12, 2010 07:47
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 18:17.