CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to access the field of weighting factor of interpolations (https://www.cfd-online.com/Forums/openfoam/109371-how-access-field-weighting-factor-interpolations.html)

fumiya November 15, 2012 22:46

How to access the field of weighting factor of interpolations
 
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

Lieven November 16, 2012 04:43

For linear interpolation "mesh.surfaceInterpolation::weights()" should work (surfaceScalarField).

Regards,


Lieven

fumiya November 16, 2012 07:33

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


All times are GMT -4. The time now is 09:27.