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

How to access the field of weighting factor of interpolations

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 15, 2012, 23:46
Default How to access the field of weighting factor of interpolations
  #1
Senior Member
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 170
Rep Power: 7
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: Mol, Belgium
Posts: 295
Rep Power: 13
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 Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 170
Rep Power: 7
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

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Performance of GGI case in parallel hannes OpenFOAM Running, Solving & CFD 26 August 3, 2011 03:07
problems after decomposing for running alessio.nz OpenFOAM 5 April 20, 2011 08:44
Access to Domain Pressure Field or mesh ar_mofidi OpenFOAM 0 April 12, 2010 06: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 05:01.